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