Question 1
2. The 2-opt algorithm for TSP
Begin by generating a MST of the graph:
Graph above is missing but it is considered.
Pre-order traversal: , cycle is .

Swap and : 21 -> 4 and 3 -> 10, hence -10.

Swap and : 21 -> 9 and 5->1, hence -16.

Question 2
Q2.1
- Go through all Hamiltonian paths
- There are paths to check, this step can be parallelised
- Checking one path is
Q2.2
This is important, needed for exam!!!
Question 3



This algorithm is polynomial time, [skeptical].