Minimum Spanning Trees Flashcards

1
Q

What is a Minimum Spanning Tree?

A

A Minimum Spanning Tree:

  • connects all nodes
  • minimises the weight of the edges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does the Greedy Algorithm for creating Minimum Spanning Trees work?

A

Begin with A = empty_set

while A is not an MST:

  find a safe edge E for A


  add E to A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the complexity of Kruskal’s Algorithm?

A

O( E * log(V) )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the complexity of Prim’s Algorithm?

A

O( E + V * log(V) )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly