What is the use of greedy algorithms? An real example?
What is the use of greedy algorithms?
Greedy algorithms is choosing the best/optimal solution in each stage. Look at wikipedia article
An real example?
Minimum spanning tree algorithms are greedy algorithms
The famous Dijkstra's Algorithm is also greedy algorithm