Spanning Trees and Minimal Spanning Trees with Applications Flashcards

1
Q

What is a spanning tree?

A

A subset of edges in a connected undirected graph that connects all vertices without cycles.

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

How many edges does a spanning tree have?

A

|V| - 1, where V is the number of vertices.

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

What is a minimal spanning tree (MST)?

A

A spanning tree where the sum of edge weights is as small as possible.

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

What is the purpose of an MST?

A

To connect all vertices with minimum total edge weight, removing cycles and reducing redundancy.

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

Why are cycles bad in networks?

A

They cause repeated transmissions and bandwidth waste during routing.

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

What is flooding in networking?

A

A simple routing strategy where a node sends incoming messages to all outgoing ports except the source.

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

How does an MST prevent flooding?

A

Each node forwards messages along a unique path, avoiding repeated broadcasts.

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

What is the MST cycle property?

A

If an edge not in the MST is added, it forms a cycle; its weight must be ≥ all edges in that cycle.

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

What are the two main MST algorithms?

A

Prim’s Algorithm and Kruskal’s Algorithm.

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

How does Prim’s Algorithm work?

A

Starts with one node and grows the MST by adding the lightest edge connecting to an unseen node.

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

How does Kruskal’s Algorithm work?

A

Sorts all edges by weight and adds them if they don’t form a cycle.

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

What data structure is used in Kruskal’s Algorithm?

A

Disjoint Set (Union-Find).

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

What kind of graphs suit Prim’s Algorithm?

A

Dense graphs.

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

What kind of graphs suit Kruskal’s Algorithm?

A

Sparse graphs.

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

What is a routing table in MST routing?

A

A table at each node mapping destinations to the next hop along the MST.

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

What happens if a link in the MST fails?

A

A backup edge (not in the MST) may be reactivated to maintain connectivity.

17
Q

Why is the term ‘minimal’ preferred over ‘minimum’?

A

Because there can be multiple spanning trees with the same minimal total weight.

18
Q

What are real-world applications of MST?

A

Network routing, road/cable cost optimization, and approximation algorithms.

19
Q

What condition must a graph satisfy to have a spanning tree?

A

It must be connected (no isolated vertices or components).

20
Q

What is the weight of an MST?

A

The total sum of the weights of its edges.