LLMpediaThe first transparent, open encyclopedia generated by LLMs

Held–Karp algorithm

Generated by GPT-5-mini
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Expansion Funnel Raw 49 → Dedup 7 → NER 4 → Enqueued 0
1. Extracted49
2. After dedup7 (None)
3. After NER4 (None)
Rejected: 3 (not NE: 3)
4. Enqueued0 (None)
Held–Karp algorithm
NameHeld–Karp algorithm
AuthorRichard M. Karp; Michael Held; Richard M. Karp
Introduced1962
ComplexityO(n^2 2^n) time, O(n 2^n) space
ProblemTraveling Salesman Problem

Held–Karp algorithm is a dynamic programming method for exactly solving instances of the Traveling Salesman Problem. Developed in the early 1960s, it exploits subproblem overlap and bitmasking to compute optimal tours using subset-based state enumeration. The algorithm is an important bridge between combinatorial optimization, exponential-time exact algorithms, and polynomial-time approximation theory.

Introduction

The Held–Karp algorithm addresses the Traveling Salesman Problem by decomposing a global tour into optimal subtours, using a state representation indexed by subsets of vertices. It connects ideas from dynamic programming roots exemplified by Richard Bellman and leverages complexity-theoretic insights associated with Richard M. Karp and Michael Held. The method underpins exact algorithms studied alongside work on the Hamiltonian path problem, reductions used in Cook's theorem, and analytical tools applied in operations research and computer science.

Algorithm Description

The core recurrence computes the minimum cost to reach a vertex v having visited a subset S of vertices, with transitions minimizing over predecessors u in S\{v}. States correspond to pairs (S, v), and base cases anchor at a distinguished start vertex. Implementation commonly employs bitmask representations for subsets and uses iterated relaxation across increasing subset sizes. Practical implementations use techniques from Donald Knuth's algorithm engineering, bit-level operations popularized in Intel Corporation architectures, and memoization patterns reminiscent of Edsger W. Dijkstra-style shortest-path relaxations. Optimizations exploit symmetry reductions familiar from studies of the Euclidean plane instances, and branch-and-bound integration draws on strategies from Jack Edmonds and Hermann Hagerup research streams.

Complexity and Optimality

Held–Karp runs in O(n^2 2^n) time and O(n 2^n) space for n cities under a straightforward implementation; these bounds are tight for the dynamic-programming approach without additional structural assumptions. The algorithm yields optimal tours, providing exact solutions where approximation schemes like the Christofides algorithm give bounded suboptimality. Its complexity situates the method within exponential-time exact approaches compared against polynomial-time heuristics studied in Princeton University and MIT research groups. The algorithm's optimality is relevant to hardness results stemming from Garey and Johnson and completeness notions central to NP-completeness theory.

Implementations and Variants

Implementations appear in textbooks and libraries influenced by authors such as Jon Kleinberg, Éva Tardos, and Thomas H. Cormen. Variants reduce memory via meet-in-the-middle strategies or compress state using techniques from Sparsification research and inclusion–exclusion transforms inspired by Noga Alon's work. Practical speedups use bit-parallel operations on ARM architecture and x86 processors, and parallel implementations map states to distributed-memory frameworks researched at Lawrence Livermore National Laboratory and Argonne National Laboratory. Hybrid algorithms integrate Held–Karp exact dynamic programming with heuristic components from Genetic algorithm frameworks and Simulated annealing pipelines to balance optimality and runtime in large instances.

Applications and Practical Use

Held–Karp is applied in domains requiring provably optimal cyclic orderings, such as routing in logistics studied at FedEx, sequencing tasks in Intel Corporation chip fabrication, and tour planning in National Geographic research projects. In bioinformatics, exact Hamiltonian cycle computations intersect with genome assembly problems examined at Broad Institute and European Bioinformatics Institute. The algorithm serves as a benchmark for heuristic assessment in academic competitions hosted by ACM International Collegiate Programming Contest and optimization challenges run by Mathematical Programming Society. For moderately sized instances, practitioners in Siemens and General Electric use Held–Karp to validate heuristic quality and to seed branch-and-cut solvers developed in conjunction with researchers at IBM.

History and Development

The algorithm traces to combinatorial optimization advances in the 1960s, where Michael Held and Richard M. Karp formalized the dynamic-programming recurrence and analyzed its computational behavior. Their work built on earlier foundations laid by Richard Bellman and intersected with complexity insights from Stephen Cook and Leonid Levin. Subsequent decades saw algorithm engineering refinements by researchers associated with Stanford University, Carnegie Mellon University, and University of California, Berkeley, and practical adoption in industrial research labs including Bell Labs and AT&T Laboratories. The Held–Karp approach remains a canonical reference point in surveys and courses taught at universities such as Harvard University and Princeton University for illustrating exact exponential algorithms and their interaction with complexity theory.

Category:Algorithms