Back to Topic 3.16 — Route algorithms (HL only)
3.16.1Math AI HL8 flashcards

Spanning trees & shortest path

Practice Flashcards

Flip to reveal answers
Card 1 of 83.16.1
3.16.1
Question

What is a minimum spanning tree (MST)?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 8 Flashcards — Spanning trees & shortest path

Sign up free to track progress and get spaced-repetition review schedules.

Card 1concept

Question

What is a minimum spanning tree (MST)?

Answer

The set of edges connecting every vertex with the least total weight and no cycle. On n vertices it has exactly n − 1 edges.

Card 2formula

Question

How many edges does a spanning tree on n vertices have?

Answer

Exactly n − 1, and it contains no cycle.

Card 3concept

Question

State Kruskal's algorithm.

Answer

Sort all edges from cheapest to dearest; add them one at a time, skipping any edge that would create a cycle, until all vertices are connected.

Card 4concept

Question

State Prim's algorithm.

Answer

Start at any vertex; repeatedly add the cheapest edge that joins a new (un-included) vertex to the tree, until all vertices are included.

Card 5concept

Question

Do Prim's and Kruskal's give the same answer?

Answer

They always give the same total weight (and the same tree when all edge weights are distinct).

Card 6concept

Question

What does Dijkstra's algorithm find?

Answer

The shortest path (least total weight) from a start vertex to a target vertex — not the whole connecting tree.

Card 7concept

Question

In Dijkstra's, how is a vertex's label updated?

Answer

new label = min(old label, permanent value of current vertex + edge to this vertex). The smallest temporary label becomes permanent next.

Card 8concept

Question

MST vs Dijkstra — when do you use each?

Answer

MST (Prim/Kruskal): connect ALL vertices cheaply. Dijkstra: shortest route between TWO specific vertices.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free