Section 2: Trees Flashcards

1
Q

Cycle in a graph G

A

a subgraph of G isomorphic to Ck
for some k ≥ 3.

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

Forest

A

a graph that contains no cycles

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

Tree

A

connected acyclic graph

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

Spanning tree for a connected graph G

A

a spanning subgraph of G that is a tree

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

Spanning forest

A

a subgraph of G that is a forest

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

Cayley’s Formula

A

A complete graph with n vertices
has n^(n−2) (labelled) spanning trees.

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

Kruskal’s Algorithm

A

a) Set T = (V, ∅).
b) Let E’ be the subset of edges e ∈ E such that
* e is not already in T, and
* adding e to T does not create a cycle;
add to T the edge in E’
that has the smallest weight.
c) If T is not connected, go to step 2.
d) Output T.

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

Theorem about Kruskal’s algorithm

A

Given any weighted connected graph G = (V, E) as input, Kruskal’s algorithm will output a spanning tree of minimum weight

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

Prim’s Algorithm

A

a) Set T = (V, ∅).
b) Add an edge of minimum weight to T.
c) Let E’ be the subset of edges e in E such that
* e is not already in T,
* adding e to T does not create a cycle, and
* e is incident with an edge already in T;
add to T the edge in E’
that has the smallest weight.
d) If T is not connected, go to step 3.
e) Output T.

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