What is the first step in Prim’s Algorithm?
Choose any vertex
What is the first step in Krushkal’s Algorithm?
Choose the shortest edge
What is the second step in Prim’s Algorithm?
Choose the shortest connected edge
What is the second step in Kruskal’s Algorithm?
Choose the next shortest edge (does not have to be connected)
What’s the difference between Kruskal and Prim?
Prim- Any Vertex—–Krushkal- Smallest Vertex
Prim- Connected edge—– Krushkal- Any edge