For this exercise, you'll need to take the code from the TSP Held-Karp and TSP Local Search exercises. This can be your own implementation or somebody else's. You will now do an empirical analysis of the implementations, comparing their performance. Both the Held-Karp and the Local Search algorithms solve the same problem, but they do so in completely different ways. This results in different solutions, and in different times required to get to the solution.
Investigate the implementations' empirical time complexity, i.e. how the runtime
increases as the input size increases. Measure this time by running the code
instead of reasoning from the asymptotic complexity (this is the empirical
part). Create inputs of different sizes and plot how the runtime scales (input
size on the
In addition to the measured runtime, plot the tour lengths obtained by both implementations on the same input distance matrices. The length of the tour that Held-Karp found should always be less than or equal to the tour length that Local Search found. Why is this?
Add the code to run your experiments, graphs, and an explanation of what you did to this markdown file.