Exact TSP · branch-and-bound · full validation run
Does shell-based branch ordering make an exact travelling-salesman solver faster — and does it hold up against Concorde? Every figure below is recomputed from the raw run records, paired per instance, with timeouts counted separately rather than folded in as finite times.
Inside the prototype, shell ordering makes no measurable difference. It runs 0.981× the no-shell ordering in geometric mean across 750 instances both solvers finished (95% CI [0.924, 1.04]), winning on 49% of them — the 95% interval straddles parity, so this run cannot distinguish it from the plain ordering at all.
Against Concorde, it is not close. On the instances both finished, P2 runs 0.139× Concorde — i.e. Concorde is 7× faster — and Concorde finished every run inside the limit, while the two prototypes timed out 6 times between them.
Both readings point the same way. The ordering heuristic does not pay for itself against its own baseline, and the coefficient sweep picks c = 0 as its best value — which is the heuristic switched off. The prototype is also orders of magnitude off a production cutting-plane solver. Nothing in this run supports the idea that shell ordering helps.
These are ordered because each depends on the one before it: nothing is timed until the correctness gates pass, and the coefficient is chosen on the train split before it is ever measured on the held-out split.
| Stage | Artefact | Status |
|---|---|---|
| 1 Build | build/tsp_bench | pass |
| 2 Concorde | third_party/concorde/TSP/concorde | pass |
| 3 Correctness gates | 9/9 passing | pass |
| 4 P1 ordering ablation | 3,000 runs | pass |
| 5 Coefficient sweep — train | 7,500 runs | pass |
| 6 Coefficient sweep — held out | 2,250 runs | pass |
| 7 P2 component ablation | 750 runs | pass |
| 8 Three-way timed benchmark | 122 runs | pass |
Timing a wrong answer is worthless, so every gate runs in --full mode before anything is measured. Each one checks a property that would silently corrupt the benchmark if it broke: bounds that never exceed the optimum, propagation that never removes an optimal edge, and byte-identical results across repeated runs.
| Gate | Status | Reported |
|---|---|---|
| correctness | pass | correctness: 38400 solver runs checked, 0 failures |
| bound_validity | pass | degree bound violations (de-duplicated) : 0 |
| reproducibility | pass | reproducibility: 0 failures |
| crossing_propagation | pass | crossing_propagation: 10000 instances, 366785 conflicting pairs, 0 failures |
| shell_cut_propagation | pass | shell_cut_propagation: 49501536 tours, 119746 edge/cut memberships, 0 failures |
| one_tree_bound | pass | one_tree_bound: 170000 checks, 32668 tight, 0 violations |
| shell_lagrangian_bound | pass | shell bound beat same-pi classical : 40412 (1.58%), max gain 9999520.0 |
| forced_edge_state | pass | propagation unsoundness : 0 |
| prototype2_correctness | pass | prototype2_correctness: 72800 P2 runs, 0 failures |
Same solver, same bounds, same instances — only the order in which branches are explored changes. Speedups are paired per instance and only counted where both orderings proved optimality, so a timeout can never masquerade as a win.
| Baseline | Paired | Geomean | 95% CI | Median | Win rate | Worst case | Node ratio |
|---|---|---|---|---|---|---|---|
| noshell | 750 | 0.981× | [0.924, 1.04] | 0.982× | 49% | 0.0259× | 1× |
| nearest | 750 | 1.01× | [0.955, 1.08] | 0.969× | 48% | 0.0292× | 0.991× |
| random | 750 | 1.03× | [0.965, 1.1] | 1.02× | 52% | 0.0452× | 1.28× |
Search-tree size is the honest check on an ordering heuristic: shell explores 1× the nodes of no-shell, and on 694 of 750 instances the two explore an identical number of nodes. Where node counts match, any wall-clock difference is ordering overhead, not better pruning.
The shell coefficient was swept on seeds 1–25 and then measured again on seeds starting at 1001, which were never used for tuning. A curve that peaks sharply on train and flattens on held-out data is a tuning artefact, not a result.
| Coefficient | Train geomean | Train median time | Held-out geomean | Held-out median time |
|---|---|---|---|---|
| c = 0 | 1× | 19.9 ms | 1× | 19.1 ms |
| c = 0.005 | 0.959× | 20.4 ms | — | — |
| c = 0.01 | 0.986× | 20.9 ms | — | — |
| c = 0.02 | 0.951× | 21.8 ms | — | — |
| c = 0.04 | 0.991× | 20.7 ms | 1.01× | 17.9 ms |
| c = 0.08 | 0.931× | 21.4 ms | — | — |
| c = 0.16 | 0.97× | 20.8 ms | — | — |
| c = 0.5 | 0.981× | 20.5 ms | — | — |
| c = 2 | 0.956× | 21 ms | 1.01× | 18.6 ms |
| c = 10 | 0.946× | 22.5 ms | — | — |
The second prototype adds shell cuts on top of the P1 search. Run across the same ten families at n = 16, 18, 20 it proved optimality on 743 of 750 instances, median 31.3 ms, p90 341 ms.
10 instances from each of 1 family at every size, each run serially and pinned to one core so wall time means something, with a 60-second limit per run. Concorde is the reference implementation of exact TSP; this is the comparison that decides whether the prototypes matter outside their own ablation.
Partial run. This stage was stopped early: only the random family of the ten planned produced runs, so every figure in this section rests on 122 of the 1,500 planned runs. Read it as an indication, not as the finished comparison.
| Solver | n = 20 | n = 25 | n = 30 | n = 40 | n = 50 |
|---|---|---|---|---|---|
| P1 inflation B&B | 87.9 ms | 336 ms | 1.52 s | 35.6 s 4 t/o | all timed out |
| P2 shell-cut | 42.2 ms | 155 ms | 433 ms | 8.48 s 1 t/o | all timed out |
| Concorde | 37.1 ms | 36 ms | 47.1 ms | 76.6 ms | 155 ms |
| Comparison | Paired | Geomean | 95% CI | Median | Win rate | Timeouts (ref / test) |
|---|---|---|---|---|---|---|
| P2 shell-cut vs Concorde | 39 | 0.139× | [0.0701, 0.274] | 0.194× | 18% | 0 / 2 |
| P1 inflation B&B vs Concorde | 36 | 0.0572× | [0.0276, 0.119] | 0.0575× | 14% | 0 / 4 |
| P2 shell-cut vs P1 | 36 | 3.03× | [1.96, 5.03] | 2.74× | 75% | 4 / 1 |
Every instance both a prototype and Concorde finished agreed on the optimal tour cost. Speedups are only computed over those agreeing pairs.
Reproduce everything with ./scripts/run_full_validation.sh.
| Instances | 10 families — random, clustered, circle, grid, rings, line, symmetric, clustered_k, hull_heavy, grid_perturbed — generated from a fixed PRNG, written as TSPLIB EXPLICIT integer matrices |
| Pairing | speedups computed per instance, only where both solvers proved optimality and agreed on the optimum; timeouts reported as counts, never as times |
| Statistics | geometric mean and median with 4,000-sample bootstrap 95% CIs; arithmetic mean never reported alone |
| Timing | stage 8 runs serially, pinned with taskset; solver order alternates per instance so no solver always gets a cold cache |
| Held-out split | seeds 1–25 tune, seeds 1001+ verify; the held-out split was never used to choose the coefficient |