Greedy Approach Vs Dynamic Approach Theory