Explain about greedy technique
The greedy method suggests constructing a solution to an optimization problem by a sequence of steps, every expanding a partially constructed solution obtained so far, unless a complete solution to the problem is reached. On every step, the choice made must be feasible, locally optimal and irrevocable.