Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(c) The traveling salesperson problem (TSP) can be stated as: find the minimum-distance tour of N cities such that each city is visited once, and

image text in transcribed

(c) The traveling salesperson problem (TSP) can be stated as: find the minimum-distance tour of N cities such that each city is visited once, and the tour ends at the starting city. The problem can be represented as a fully connected graph with non-directed weighted edges where the vertices are cities and edge weights are the distances between cities. For example, the graph UL23/0214 shows road distances (rounded to the nearest ten miles) between Glasgow, Edinburgh, Cardiff and London. The tour GCELG has distance 390+400+380+ 410=1580 miles (i) Write a pseudocode algorithm that will search for an approximate optimal tour of an N-city TSP. [5 marks] (ii) Consider an algorithm that finds an optimum tour by exhaustive search. What is the time-complexity of this algorithm? [5 marks] (iii) With regard to your answer to (ii) above, and by comparison to the time complexities of algorithms you have studied in this module, what are the prospects for discovering a polynomial time solution to the TSP? [5 marks]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

=+j Understand different types of regions in the world.

Answered: 1 week ago