I have this project where I have to come up with Java source code implementing the Hamiltonian cycle. I searched on google and at least now I know what a Hamiltonian cycle is, path that passes through all vertices just once except the starting vertex because it's also the last vertex (tell me if I'm wrong). The problem is I don't know how to implement it. Basically, my questions are:
- How, where do you implement a Hamiltonian cycle?
- What is the application of a Hamiltonian Cycle (so that it helps to understand why it's so important)