teeline · algorithms/popmusic
POPMUSIC — exact windows on a cyclic tour
POPMUSIC cuts short contiguous windows out of a cyclic tour and re-optimizes each exactly with a fixed-endpoint Held–Karp path DP. This storyboard is simplified for teaching: it pins a teaching window R = 6, while production uses R = 14.
Seed Tourframe 1/16
Seed tour of 16 cities, total length 900.132. POPMUSIC improves an existing tour — a pipeline warm start, or a nearest-neighbour tour when there is none.
offset 0
Scan mode
Activate a window slot to inspect it.
splice — the DP found a strictly shorter open path unchanged — the DP returned the identity order within eps — a different order that does not beat current − eps
pass
—
offset
—
active window
—
current
—
candidate
—
Δ
—
eps
—
verdict
—
splices
0
total length
900.132
teaching R = 6 (4 · 2^4 = 64 DP states) · production R = 14 (12 · 2^12 = 49152 states)
Stage 1 of 5, Seed Tour. Seed tour of 16 cities, total length 900.132. POPMUSIC improves an existing tour — a pipeline warm start, or a nearest-neighbour tour when there is none.