Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Project: The Travelling Salesman Problem (TSP)

Project Specification

Your group will design and implement an algorithm (or algorithms) for finding the best tour you can. TSP is not a problem for which you will be able to easily find optimal solutions. It is difficult. Your goal is to find the best solution you can in a certaintime frame. You may want to start with some local search heuristics. There is much literature on methods to "solve" TSP please cite any sources you use. Use any programming language you want that runs on flip2.engr.oregonstate.edu.

Your program must:

• Accept problem instances on the command line

• Name the output file as the input file's name with .tour appended (for example input
tsp_example_1.txt will output tsp_example_1.txt.tour)

• Compile/Execute correctly and without debugging on flip2.engr.oreognstate.eduaccording to specifications and any documentation you provide.

Input specifications:

• A problem instance will always be given to you as a text file.

• Each line defines a city and each line has three numbers separated by white space.

o The first number is the city identifier
o The second number is the city's x-coordinate
o The third number is the city's y-coordinate.

Output specifications:

• You must output your solution into another text file with n + 1 line, where n is the number of cities.

• The first line is the length of the tour your program computes.

• The next n lines should contain the city identifiers in the order they are visited by your tour.

o Each city must be listed exactly once in this list.

o This is the certificate for your solution and your solutions will be checked. If they are not valid you will not receive credit for them.

Example instances: We have provided you with three example instances. They are available on Canvas and are provided according to the input specifications.

• tsp_example_[*].txt Input files

• tsp_example_[*].txt.tour Example outputs corresponding to these three input cases. The optimal tour lengths for example instances 1, 2, and 3 are 108159, 2579 and 1573084, respectively. Clearly these do not match the values in the tour files. You should use these values to evaluate your algorithm. For full credit it is required that the ratio of

(Your solution)/(optimal solution) <= 1.25.

Testing

A testing procedure tsp-verifier.py is given that we will use to verify your solutions. Usage to test example an instance is: (NOTE: requires TSPAllVisitied.py)

python tsp-verifier.py inputfilename solutionfilename

You should test that your outputs are correct. By "correct" we mean that the distances have been computed correctly not that the solution is optimal.

Competition

We will hold a completion. The competition will require your program to find the best solution possible to one or more test instances within a fixed amount of time (e.g. 3 minutes). The competition instances will be available on Monday 5/30/16 at 8:00 am PST. You will not be told the optimal tour length for these instances. You will post your results to the competition instances tothe competition discussion board.

Project Report

You will submit a project report containing the following:

• A description of at least three different methods/algorithms for solving the Traveling Salesman Problem. Summarize any research you did.

• A verbal description of your algorithm(s) as completely as possible. You may select more than one algorithm to implement.

• A discussion on why you selected the algorithm(s).

• Pseudo code

• Your "best" tours for the three example instances and the time it took to obtain these tours.

• Your best tours for the competition test instance(s).

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91803640

Have any Question?


Related Questions in Computer Engineering

Eleven people have eleven different favorite numbers from 2

Eleven people have eleven different favorite numbers from 2 to 12. They all agree to participate in a 10,000-roll dice game where they bet $1 on their favorite number for each roll of two standard (fair) dice. A donor ki ...

Computer sciencewhat is required of an organization to

Computer Science What is required of an organization, to implement and maintain IT Governance? What outside resources are available to assist technology managers in the implementation and maintenance process?

Suppose two nodes a and b are attached to opposite ends of

Suppose two nodes, A and B, are attached to opposite ends of an 800 m cable, and that they each have one frame of 1, 500 bits (including all headers and preambles) to send to each other. Both nodes attempt to transmit at ...

Question squareroot write a function to determine the

Question : squareroot Write a function to determine the squareroot of a number. The squareroot of a number can be approximated by repeated calculation using the formula NG = 0.5(LG + N/LG) where NG stands for the next gu ...

Recursive algorithms help c programmingquestion create an

Recursive algorithms help C++ programming: question: Create an ADT that contains a fixed-size array that holds 20 integers (i.e., int array[20]; ) and the following member functions: A default constructor that initialize ...

What happens when volatility increases what does volatility

What happens when volatility increases? What does volatility percentage mean?

Maureen has preferences for two goods to be consistent with

Maureen has preferences for two goods to be consistent with the utility function. The price of good 1 is $4 each, and the price of good 2 is $12 each. For what incomes will good 1 be normal?

A marketing research firm was hired to estimate the mean

A Marketing Research firm was hired to estimate the mean prime-lending rate for banks located in the western region of the United States. A random sample of n = 50 banks was selected from within the region, and the prime ...

Suppose you insert 125 integer keys into a hash table with

Suppose you insert 125 integer keys into a hash table with an initial capacity of 25 and load factor threshold of 2. THe hash code is the key itself,and the function key mod table_capacity is used to map a key into a tab ...

Ellen is an anthropologist who has been working at olduvai

Ellen is an anthropologist who has been working at Olduvai Gorge in Tanzania for the past six months. She has been conducting research on the Internet. She finds a Web site with an article that proposes a revolutionary t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As