GR3: MST Flashcards

1
Q

Difference b/t tree and forest

A

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

Kruskal’s Algorithm runtime

A

O(m logn)

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

Kruskal’s Algorithm summary

A
  1. Sort edges in ascending weight
  2. for each edge in E
  3. if edge doesn’t create cycle
  4. add edge to set
  5. return set
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

definition of a graph cut

A

a set of edges that partitions the graph into two subgraphs

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

a tree on n vertices has exactly ____ edges

A

n-1

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

which edge is considered when we are attempting to create a MST?

A

the edge with the minimum edge across the cut

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