ALGORITHM ARTICLE
Cycle contraction and patching
Problem. Reconnect a cycle cover into one Hamiltonian tour.
Core idea. Enumerate cycle order and entry points while measuring bridge deltas exactly.
Procedure
- Validate disjoint cycles.
- Enumerate admissible orders and entries.
- Return the least-cost feasible patch.
Certificate. Hamiltonian-tour validation and recomputed patch cost.
Data structures and API
from optfin_orlab.exact import TspCycleContractionSolver
solver = TspCycleContractionSolver()
result = solver.solve(...)Complexity. Exponential in cycle count and entry choices
Limits. Intended for small exact repair instances.
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.
- CorrectnessHamiltonian-tour validation and recomputed patch cost.
- ComplexityExponential in cycle count and entry choices
- Operational limitIntended for small exact repair instances.
- 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 Cycle contraction and patching.
Open Luna for this algorithm