Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(10) Consider the graph given above. Use the nearest neighbor algorithm to find

ID: 3029590 • Letter: #

Question

(10)

Consider the graph given above. Use the nearest neighbor algorithm to find the Hamiltonian circuit starting at vertex J.

a. List the vertices in this Hamiltonian circuit in the order they are visited. Do not forget to include the starting vertex at both ends.

b. What is the total weight along this Hamiltonian circuit?

Now use the sorted edges algorithm to find a Hamiltonian circuit.

c. List the weights in this Hamiltonian circuit in the order they are chosen by the algorithm.

d. What is the total weight along this Hamiltonian circuit?

Explanation / Answer

a) as per nearest neighbour algorithm

route is

J-O-L-N-K-M-J

b)Total weight along hamiltonian circuit =142

c)By sorted edges algorithm

order is J-O-N-M-L-K-J

d) 105

Thank you