ALGORITHM ARTICLE
Held-Karp subset dynamic programming
Problem. Exact symmetric travelling-salesman tour.
Core idea. The best partial tour is identified by visited subset and final vertex.
Procedure
- Initialize the depot subset.
- Extend each state to an unseen vertex.
- Close and reconstruct the minimum cycle.
Certificate. Complete subset recurrence and minimum final return.
Data structures and API
from optfin_orlab.tsp import TSP
solver = TSP()
result = solver.solve(...)Complexity. O(2ⁿn²) time; O(2ⁿn) memory
Limits. Exponential memory restricts instance size.
OPTFIN AUDIT CHECKS
What has to reconcile before this method is trusted.
- DefinitionProblem, objective, inputs and output are explicit.
- Data structureThe public API and canonical source path are identified.
- CorrectnessComplete subset recurrence and minimum final return.
- ComplexityO(2ⁿn²) time; O(2ⁿn) memory
- Operational limitExponential memory restricts instance size.
- ReproductionSource, executable test and evidence route remain linked.
LUNA ACADEMIC
Continue this algorithm in one research conversation.
Ask for the paper trail, executable test, source explanation, or a reproducibility plan for Held-Karp subset dynamic programming.
Open Luna for this algorithm