GO-V.ORG
As seen in

Hamiltonian path problem

The Hamiltonian path problem is a topic discussed in the fields of complexity theory and graph theory.[src] It decides if a directed or undirected graph, G, contains a Hamiltonian path, a path that visits every vertex in the graph exactly once.[src] The problem may specify the start and end of the path, in which case the starting vertex s and ending vertex t must be identified.[src] The Hamiltonian cycle problem is similar to the Hamiltonian path problem, except it asks if a given graph contains a Hamiltonian cycle.[src] This problem may also specify the start of the cycle.[src] The Hamiltonian cycle problem is a special case of the travelling salesman problem, obtained by setting the distance between two cities to one if they are adjacent and two otherwise, and verifying that the total distance travelled is equal to n.[src] If so, the route is a Hamiltonian cycle.[src] The Hamiltonian path problem and the Hamiltonian cycle problem belong to the class of NP-complete problems, as shown in Michael Garey and David S.[src] Johnson's book Computers and Intractability: A Guide to the Theory of NP-Completeness and Richard Karp's list of 21 NP-complete problems.[src]

The Hamiltonian path problem is a topic discussed in the fields of complexity theory and graph theory.[src] It decides if a directed or undirected graph, G, contains a Hamiltonian path, a path that visits every vertex in the graph exactly once.[src] The problem may specify the start and end of the path, in which case the starting vertex s and ending vertex t must be identified.[src] The Hamiltonian cycle problem is similar to the Hamiltonian path problem, except it asks if a given graph contains a Hamiltonian cycle.[src] This problem may also specify the start of the cycle.[src] The Hamiltonian cycle problem is a special case of the travelling salesman problem, obtained by setting the distance between two cities to one if they are adjacent and two otherwise, and verifying that the total distance travelled is equal to n.[src] If so, the route is a Hamiltonian cycle.[src] The Hamiltonian path problem and the Hamiltonian cycle problem belong to the class of NP-complete problems, as shown in Michael Garey and David S.[src] Johnson's book Computers and Intractability: A Guide to the Theory of NP-Completeness and Richard Karp's list of 21 NP-complete problems.[src] ==Algorithms== ==Complexity== The problem of finding a Hamiltonian cycle or path is in FNP; the analogous decision problem is to test whether a Hamiltonian cycle or path exists.[src] The directed and undirected Hamiltonian cycle problems were two of Karp's 21 NP-complete problems.[src] They remain NP-complete even for special kinds of graphs, such as: bipartite graphs, undirected planar graphs of maximum degree three, directed planar graphs with indegree and outdegree at most two, bridgeless undirected planar 3-regular bipartite graphs, 3-connected 3-regular bipartite graphs, subgraphs of the square grid graph, cubic subgraphs of the square grid graph.[src] However, for some special classes of graphs, the problem can be solved in polynomial time: 4-connected planar graphs are always Hamiltonian by a result due to Tutte, and the computational task of finding a Hamiltonian cycle in these graphs can be carried out in linear time by computing a so-called Tutte path.[src] Tutte proved this result by showing that every 2-connected planar graph contains a Tutte path.[src] Tutte paths in turn can be computed in quadratic time even for 2-connected planar graphs, which may be used to find Hamiltonian cycles and long cycles in generalizations of planar graphs.[src] Putting all of these conditions together, it remains open whether 3-connected 3-regular bipartite planar graphs must always contain a Hamiltonian cycle, in which case the problem restricted to those graphs could not be NP-complete; see Barnette's conjecture.[src] In graphs in which all vertices have odd degree, an argument related to the handshaking lemma shows that the number of Hamiltonian cycles through any fixed edge is always even, so if one Hamiltonian cycle is given, then a second one must also exist.[src] However, finding this second cycle does not seem to be an easy computational task.[src] Papadimitriou defined the complexity class PPA to encapsulate problems such as this one.[src]

28 sentences · 28 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Hamiltonian path problem." encyclopegia.org, 2026, https://encyclopegia.org/wiki/hamiltonian-path-problem. Accessed 04 December 2026.

Chicago

"Hamiltonian path problem." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/hamiltonian-path-problem.

APA

encyclopegia.org. (2026). Hamiltonian path problem. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/hamiltonian-path-problem

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

promise problem

stub · references available

Open Shortest Path First

stub · references available

two emperor problem

stub · references available

On the Path

stub · references available

Cyprus problem

stub · references available

symbol grounding problem

stub · references available

Hamiltonian function

stub · references available

Hamiltonian mechanics

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1368356858 · 0.5 · snapshot enwiki-001368356858

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.