Greedy algorithms
Last updated
Was this helpful?
Last updated
Was this helpful?
The key feature of a greedy algorithm is that it makes a choice that seems best at the moment, without worrying about future consequences or whether that choice will lead to an optimal solution. This can often be a useful approach, as it is generally fast ans easy to implement, but it can also be risky, as it may not always produce the best possible solution.