Search: in
Hamiltonian path problem
Hamiltonian path problem Encyclopedia
  Tutorials     Encyclopedia     Dictionary     Directory  
Hamiltonian_path_problem Email this to a friend      Hamiltonian_path_problem

Hamiltonian path problem

In the mathematical field of graph theory the Hamiltonian path problem and the Hamiltonian cycle problem are problems of determining whether a Hamiltonian path or a Hamiltonian cycle exists in a given graph (whether directed or undirected). Both problems are NP-complete. The problem of finding a Hamiltonian cycle or path is in FNP.

There is a simple relation between the two problems. The Hamiltonian path problem for graph G is equivalent to the Hamiltonian cycle problem in a graph H obtained from G by adding a new vertex and connecting it to all vertices of G.

The Hamiltonian cycle problem is a special case of the traveling salesman problem, obtained by setting the distance between two cities to a finite constant if they are adjacent and infinity otherwise.

The directed and undirected Hamiltonian cycle problems were two of Karp's 21 NP-complete problems. Garey and Johnson showed shortly afterwards in 1974 that the directed Hamiltonian cycle problem remains NP-complete for planar graphs and the undirected Hamiltonian cycle problem remains NP-complete for cubic planar graphs.

Contents


Randomized algorithm

A randomized algorithm for Hamiltonian path that is fast on most graphs is the following: Start from a random vertex, and continue if there is a neighbor not visited. If there are no more unvisited neighbors, and the path formed isn't Hamiltonian, pick a neighbor uniformly at random, and rotate using that neighbor as a pivot. Then, continue the algorithm at the new end of the path.

See also

External links

References

de:Hamiltonkreisproblem es:Problema del ciclo hamiltoniano ja:????????? sr:??????? ???????????? ???? zh:????????





Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article



Related Links in Hamiltonian path problem

Search for Hamiltonian path problem in Tutorials
Search for Hamiltonian path problem in Encyclopedia
Search for Hamiltonian path problem in Dictionary
Search for Hamiltonian path problem in Open Directory
Search for Hamiltonian path problem in Store
Search for Hamiltonian path problem in PriceGig


Help build the largest human-edited directory on the web.
Submit a Site - Open Directory Project - Become an Editor

Advertisement

Advertisement



Hamiltonian path problem
Hamiltonian_path_problem top Hamiltonian_path_problem

Home - Add TutorGig to Your Site - Disclaimer

©2008-2009 TutorGig.com. All Rights Reserved. Privacy Statement