Usage examples of greedy algorithms?

Antonio Barra picture Antonio Barra · Feb 1, 2011 · Viewed 30.2k times · Source

What is the use of greedy algorithms? An real example?

Answer

Sanjit Saluja picture Sanjit Saluja · Feb 1, 2011

Minimum Spanning Tree - Prim's algorithm and Kruskal's algorithm

Shortest Path Calculation - Dijkstra's algorithm

More: (Fractional Knapsack Problem, Huffman Coding, Optimal Merging, Topological Sort).