Greedy Algorithms works step-by-step, and always chooses the steps which provide immediate profit/benefit.
Greedy algorithms may not always lead to the optimal global solution, because it does not consider the entire data. The choice made by the greedy approach does not consider the future data and choices.
Comments
Post a Comment