A path that uses every vertex of the graph exactly once. Hamiltonian Path A path that uses every vertex of the graph exactly once.
Hamiltonian Circuit A path that begins and ends at the same vertex and uses every vertex of the graph once.
Which graphs have Hamiltonian circuits?
Which graphs have Hamiltonian circuits?
Sorted Edges Algorithm Sort the edges from lowest to highest. Add edges to your circuit, one at a time, in order of increasing cost. Skip edges that would cause you to have 3 edges at one single vertex or close the circuit without all the vertices.
First, sort the edges from lowest to highest
Then, add edges one at a time starting from the lowest.
Then, add edges one at a time starting from the lowest.
Nearest Neighbor Algorithm Start at a vertex Travel to a vertex that you haven’t been to yet that has the smallest weight. Continue until you have travelled to all vertices. Travel back to your starting vertex.
Compare and contrast Euler circuits and Hamiltonian circuits Compare and contrast Euler circuits and Hamiltonian circuits. Include an example of both. (At least 2 COMPLETE sentences)