Greedy Algorithms
Created by
Dr. Soham Sarkar
ECE dept., RCCIIT
Minimum Spanning Tree
Prim’s Algorithm
Kruskal’s Algorithm
Hence, with an efficient sorting algorithm, the time efficiency of Kruskal’s
algorithm will be in O(|E| log |E|).
Dijkstra’s Algorithm
This algorithm is applicable to undirected and directed graphs with nonnegative
weights only
Greedy algorithms
Greedy algorithms
Greedy algorithms
Greedy algorithms
Greedy algorithms
Greedy algorithms
Greedy algorithms

Greedy algorithms