Back to all Math AI topics
Topic 3.16Math AI HL16 flashcards

Route algorithms (HL only)

Practice Flashcards

Flip cards to reveal answers
Card 1 of 163.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 Flashcards in Topic 3.16

Below are all 16 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.

3.16.18 cards

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.

3.16.28 cards

Card 9concept
Question

What does the Chinese postman (route inspection) problem find?

Answer

The shortest CLOSED walk that uses every EDGE at least once and returns to the start.

Card 10concept
Question

When can the postman traverse every edge exactly once?

Answer

When every vertex has even degree (an Eulerian circuit exists); then the answer is just the sum of all edges.

Card 11concept
Question

Route-inspection method with odd vertices?

Answer

Pair the odd-degree vertices so the total of the shortest paths between the pairs is least; add that to the sum of all edges.

Card 12formula
Question

CPP length formula?

Answer

Sum of all edges + minimum pairing of the odd-degree vertices' shortest paths.

Card 13concept
Question

What does the travelling salesman problem (TSP) find?

Answer

The shortest CLOSED route visiting every VERTEX exactly once and returning to the start (a Hamiltonian cycle).

Card 14concept
Question

How do you get an upper bound for the TSP?

Answer

Nearest-neighbour algorithm: from the start, always go to the nearest unvisited vertex, then return to start. Its length is an upper bound.

Card 15concept
Question

How do you get a lower bound for the TSP (deleted-vertex method)?

Answer

Delete a vertex; find the MST of the rest; add the two cheapest edges from the deleted vertex back.

Card 16concept
Question

Edge problem or vertex problem?

Answer

Route inspection covers every EDGE; travelling salesman visits every VERTEX. Pick by what must be covered.

Want smart review reminders?

Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.

Start Free
IB Math AI HL Topic 3.16 Flashcards | Route algorithms (HL only) | Aimnova | Aimnova