5.3 Prims Algorithm Flashcards

1
Q

What is a (minimum) spanning tree of a graph

A
  • Spanning tree = Tree with all vertices of a graph
  • Minimum spanning tree = minimum total weight
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a minimum Steiner tree

A
  • Introducing phantom vertices to decrease total weight
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the core idea behind Prim’s algorithm

A

Since includes all vertices working greedily produces an optimal result

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

What is the formal mathematical definition of Prim’s algorithm

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

Why does Prim’s algorithm work

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

Prim’s algorithm proof exchange argument

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

Prim’s algorithm psuedocode and time complexity

A

Can be improved to O(|E| + Vlog|V|) with Fibonacci heap

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