Finding the shortest Hamiltonian cycle in a complete graph

  • Context: MHB 
  • Thread starter Thread starter Adhil
  • Start date Start date
  • Tags Tags
    Graphs Relationships
Click For Summary
SUMMARY

The discussion centers on finding the shortest Hamiltonian cycle in a complete graph, specifically addressing the traveling salesman problem (TSP). The TSP is a computationally hard problem that requires evaluating all possible permutations of vertices to determine the shortest cycle. In this case, the complete graph consists of five vertices, leading to 120 possible Hamiltonian cycles. The shortest cycle was calculated to have a length of 23.3.

PREREQUISITES
  • Understanding of graph theory concepts, specifically Hamiltonian cycles
  • Familiarity with the traveling salesman problem (TSP)
  • Basic programming skills to implement a brute-force search algorithm
  • Knowledge of permutations and combinatorial mathematics
NEXT STEPS
  • Learn about advanced algorithms for solving the traveling salesman problem, such as dynamic programming approaches
  • Explore graph theory literature focusing on Hamiltonian cycles and their properties
  • Implement a brute-force search algorithm in Python to find Hamiltonian cycles
  • Investigate heuristics and approximation algorithms for TSP to improve efficiency
USEFUL FOR

Students studying graph theory, computer science enthusiasts tackling combinatorial optimization problems, and programmers looking to implement algorithms for solving the traveling salesman problem.

Adhil
Messages
13
Reaction score
0
[SOLVED]

Okay so I have an assignment to do with only 1 question left incomplete because we have not covered this section yet, non the less it is due soon and I can't find any helpful resources on how to do this question. I know it has something to do with graphs but I'm still lost. So if anyone can give me some helpful resources to learn about this topic I'd really appreciate it, if you can answer it whilst explaining why, it'd be even more helpful. If you are going to answer it please only do 1.1 and nothing more https://uploads.tapatalk-cdn.com/20180427/321a0fea1a560f81f05517632eef038c.jpg
 
Last edited:
Physics news on Phys.org
If I understand the terms "ring" and "full loop" correctly, they mean a Hamiltonian cycle in the terminology of graph theory, that is, a path that begins and ends at the same vertex and visits each each vertex exactly once. When edges have lengths, finding the shortest Hamiltonian cycle is known as the traveling salesman problem. This problem is computationally hard, and no solution is known that is more efficient than a brute-force search through all cycles. Maybe that's why the problem was assigned without giving you any specific method of solving it. Since the graph is complete (i.e., each pair of vertices is connected by an edge), each permutation of the five vertices gives a Hamiltonian cycle. Perhaps you can write a program that searches through all $5!=120$ such permutations and finds the shortest cycle. According to my calculations, the length of the shortest cycle is 23.3.
 
Evgeny.Makarov said:
If I understand the terms "ring" and "full loop" correctly, they mean a Hamiltonian cycle in the terminology of graph theory, that is, a path that begins and ends at the same vertex and visits each each vertex exactly once. When edges have lengths, finding the shortest Hamiltonian cycle is known as the traveling salesman problem. This problem is computationally hard, and no solution is known that is more efficient than a brute-force search through all cycles. Maybe that's why the problem was assigned without giving you any specific method of solving it. Since the graph is complete (i.e., each pair of vertices is connected by an edge), each permutation of the five vertices gives a Hamiltonian cycle. Perhaps you can write a program that searches through all $5!=120$ such permutations and finds the shortest cycle. According to my calculations, the length of the shortest cycle is 23.3.
Thank you Evgeny after hours of research I've finally managed to do it. The Hamiltonian cycle was the key word
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
9K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
10
Views
4K