Q2 — TSP Branch-and-Bound: Refine Order and the 434 Tour

Queue simulation gives the refine order b1,c2,b2,c3 — then d3 pops as the 434 tour over five forced cities.

The Question

TSP BnB snapshot at the moment the optimal tour is discovered. XY = include, ~XY = exclude; numbers = lower bounds; reference numbers break ties.

#QuestionOfficial answer
2.12nd–5th nodes refinedb1,c2,b2,c3
2.2Optimal tour noded3
2.3Optimal cost434
2.4Number of cities5
2.5Tour from AA,B,D,E,C

The Topic in 60 Seconds

Refine = pop the cheapest open node, insert its two children. Childless snapshot nodes are tours. Stop when a tour pops with no cheaper open node.

Deep-dive: Reading BnB Trees, Branch and Bound.

2.1 — Refine order → b1,c2,b2,c3

PopQueue (min first)Action
1a1 : 375refine → b1(375), b2(414)
2b1 : 375, b2 : 414refine b1 → c1(418), c2(410)
3c2 : 410, b2 : 414, c1 : 418refine c2 → d3(434), d4(468)
4b2 : 414, c1 : 418, d3 : 434, d4 : 468refine b2 → c3(414), c4(452)
5c3 : 414, c1 : 418, d3 : 434, c4 : 452, d4 : 468refine c3 → d5(414), d6(572)

2.2 & 2.3 — Optimal tour → d3, 434

Queue continues: pop d5(414) → e1(436), e2(472); pop c1(418) → d1(456), d2(548). Now d3 : 434 is the minimum and a leaf — a tour. Everything else ≥ 436 → d3 = optimal, 434 ✓

2.4 — Cities → 5

Path root→d3: BD in, ~CD, AB in. Degrees: A–1, B–2 (full), C–0, D–1. D can't use CD → D–E. C needs two: C–A and C–E. Forced tour: A–B–D–E–C–A → 5 cities ✓

2.5 — Tour from A → A,B,D,E,C

The forced cycle above ✓ (reverse A,C,E,D,B equivalent).

Interactive queue simulation — gray = already refined, blue = waiting in OPEN, green = the winning tour:

1 / 8
Refine a1 → insert children. OPEN = { b1(375), b2(414) }
popping nowwaiting in OPENalready refinedoptimal tour node

The last step also traces the winning decisions BD in · ~CD · AB in: B is full (AB + BD), so D's second edge cannot be CD — it must be D–E; C then closes the cycle via C–A and C–E. Forced tour: A–B–D–E–C–A, 5 cities, cost 434.

Tricks & Tips

Answers: 2.1 b1,c2,b2,c3 · 2.2 d3 · 2.3 434 · 2.4 5 · 2.5 A,B,D,E,C