Understanding Of Greedy Approach