(c) The traveling salesperson problem (TSP) can be stated as: find the minimum-distance tour of N...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(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 390 G C 410 400 50 150 Page 5 of 7 E 380 L 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. (1) 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] (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 390 G C 410 400 50 150 Page 5 of 7 E 380 L 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. (1) 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]
Expert Answer:
Answer rating: 100% (QA)
ii The timecomplexity of an exhaustive search algorithm for finding an optimum tour in an Ncity TSP is ON iii The timecomplexity of an exhaustive sear... View the full answer
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Posted Date:
Students also viewed these programming questions
-
A tubular MF system treating an industrial wastewater is operated with an influent flow rate of 120 L/min, a flux of 45L/m2 h, and a recovery of 95%. Each membrane module contains 3.0m2 of membrane....
-
Assume that a security is selling at INR 217 and American call and American put options are available on the stock with 3 months maturity and an exercise price of INR 210. The call is selling at INR...
-
Kelso Electrical's inventory records for industrial switches indicate the following at November 30, 2014: Nov. 1 Beginning inventory .......................... 14 units at $160 8 Purchase...
-
You have read that adding NaCl to water can both increase its boiling point and decrease its freezing point. A friend of yours explains it to you like this: The ions prevent freezing by blocking the...
-
When the Concepcions went to AT&T to get a phone, they were confused as to why they were paying money for the phone when it was advertised as being free. They had to pay sales tax on the full normal...
-
Boise Bike Corp. manufactures mountain bikes and distributes them through retail outlets in Montana, Idaho, Oregon, and Washington. Boise Bike Corp. had declared the following annual dividends over a...
-
Use the below table to answer the following questions. Selling Price $43.00 = Sales Volume Variable 2,200 3,200 Fixed Cost Cost 4,200 Profitability 5,200 6,200 $47,200 15 $14,400 $42,400 $70,400...
-
Many computer manufacturers now include tools or simulators that allow you to measure the instruction set usage of a user program. Among the methods in use are machine simulation, hardware-supported...
-
Consider a region that has four accelerometer stations: A , B , C , and D . Each station is equipped with an on - site earthquake early warning system that can alarm based on processing 3 seconds...
-
the vast majority of state workers compensationlaws are: Elective, obsolete, compulsory, or situational?
-
What are some issues or factors that can increase or decrease the likelihood of a positive treatment outcome with a family dealing with a member who has a substance use disorder? Describe one or two...
-
"Leadership and Ethics" Please respond to the following: Use the Internet to research someone you believe to be an ethical leader of a company. Focus on his or her actions of ethical leadership that...
-
Visit your local Illinois county or Illinois state health department's website. Research and analyze the morbidity, mortality, and risk of disease data for a specific population or geographical area....
-
Need an example of an organization with ethical leadership Please give a detailed and proper example of ethical leadership in an organization
-
The Prompt Corporation purchases product from two suppliers, A and B. Supplier A is located in Austin, TX, and supplier B in Carthage, TN. Supplier A supplies component a and supplier B supplies...
-
On July 1, 2011, Flashlight Corporation sold equipment it had recently purchased to an unaffiliated company for $480,000. The equipment had a book value on Flashlights books of $390,000 and a...
-
Which of the following is true? a) Tracing shows sequence of execution. b) Tracing helps you debug a program. c) Tracing highlights errors in loop initialization and termination. d) All of the above.
-
Consider the heading for any main method: public static void main(String[] args) What kind of a thing is args?
-
Given the following code fragment, and assuming that n is an int, write an expression for the total number of lines of output as a function of n. What is the smallest value of n that produces some...
-
Answer the following questions: 1. Name at least five industries that might be affected by weather. 2. Is it appropriate for the forensic accountant/fraud examiner to examine the effect of weather?...
-
Discuss why collusive frauds, especially when perpetrated among related parties, is particularly difficult to detect?
-
In what year was the original company formed?
Study smarter with the SolutionInn App