Tavelling salesman tsp problem on the l1-metric plane

Assignment Help Application Programming
Reference no: EM13347662

TRAVELLING SALESMAN (TSP) PROBLEM ON THE L1-METRIC PLANE

  • Problem description: A travelling salesman wants to make a tour of the cities and returns back to the starting point. What is the minimum length tour?
  • Formal Definition:

o Input: A set S = {P1, P2, ..., Pn} of n points representing the locations of n cities. The coordinates of Pi is (xi, yi). For simplicity, the coordinates xi and  yi are integers in [0..1000), i.e.,  0  ≤ xi, yi  ≤ 999, i= 1,2,..,n. The distance between Pi and Pj is defined as |xi- xj|+|yi- yj|.

o Output: A TSP tour that starts from P1, visit all the cities (Pi, i=2,3..,n) and return back to starting point P1

o Objective: Minimize the total length of the TSP tour.

HEURISTICS

  • Minimum Spanning Tree (MST) Based Heuristic

o Construct a MST, T, for the points in S from starting point P1;

o Traverse around T to get the initial TSP tour for S;

o Exploit the triangular inequality and remove unnecessary visits in the TSP tour.

o Compute the length of the tour.

  • Nearest Neighbour Heuristic

o current position ← P1;

o Loop for n-1 steps

- At each step, choose to visit next the city that is closest to the current position;

- Update the current position;

o Including the closing edge (back to P1) in the tour;

o Compute the length of the tour.

TASKS

1. Implement the MST Based Heuristic;

2. Implement the Nearest Neighbour Heuristic;

3. Implement a function, randomSetGenerator that will generate a set of random points on the L1-metric Plane.

4. Conduct the following experiment for n=100

o Repeat the following for 10 times

- Call randomSetGenerator to generate a set S of n random points.

  • Feed S to the MST Based Heuristic. Record the length of the tour and the execution time.
  • Feed S to the Nearest Neighbour Heuristic. Record the length of the tour and the execution time.

o Compute the average length of the tour and the average execution time for the MST Based Heuristic.

o Compute the average length of the tour and the average execution time for the Nearest Neighbour Heuristic.

5. Repeat the above experiments for n = 200, 300, 400, 500, 600, 700, 800, 900 and 1000. Collect the statistics (average length of the tour and average execution time) from the experiments. Compare the two heuristics in term of the average length of the tour and average execution time.

Reference no: EM13347662

Questions Cloud

Prepare an assembly program that reads in a number of cents : prepare an assembly program that reads in a number of cents. the program will write out the number of dollars and cents
1 given the following code and the assembler equivalent to : 1. given the following code and the assembler equivalent to the rightfor i999 igt0 i-- xixiyiloopnbspnbsp
Question 1 a mary is celebrating her 30th birthday she has : question 1 a mary is celebrating her 30th birthday she has decided that as from her 31st birthday she must start to
Background informationchris white was a forestry technician : background informationchris white was a forestry technician who had been searching for several years for a business
Tavelling salesman tsp problem on the l1-metric plane : travelling salesman tsp problem on the l1-metric plane problem description a travelling salesman wants to make a tour
Industrial designindustrial design differs from : industrial designindustrial design differs from conventional design engineering in terms of largely aesthetic and
Background informationeileen timmons was a registered nurse : background informationeileen timmons was a registered nurse living in salmon river newfoundland. a single parent with
We want to divide n students into m groups of the same size : we want to divide n students into m groups of the same size where each student is a member of exactly one group. the
You will need to model each population in terms of a nite : you will need to model each population in terms of a ?nite number of individuals which can increase or decrease each

Reviews

Write a Review

Application Programming Questions & Answers

  In this project you will create an application to run in

in this project you will create an application to run in the amazon ec2 service and you will also create a client that

  Imagine that your company has decided to expand to the web

imagine that your company has decided to expand to the web. you want to reuse some data entry code that has been

  1 here is a short program it prints out the value of a

1. here is a short program. it prints out the value of a variable x. ernie and bert disagree about what will be printed

  If the user wants to read the input from a file then the

if the user wants to read the input from a file then the output will also go into a different file. if the user wants

  Question 1we are given the following knowledge base of

question 1we are given the following knowledge base of travel informationnbspbycaraucklandhamilton.

  Basic requirementsscreen one has three edittext views and

basic requirementsscreen one has three edittext views and one button.the edittext views allow you to enter a students

  Create a application using the mvc architecture no

create a application using the mvc architecture. no scripting elements are allowed in jsp

  Rtl sa is a company which develops bespoke solutions for

rtl sa is a company which develops bespoke solutions for the rubber industry. they produce both rubber compound which

  Design a program that models the worms behavior in the

design a program that models the worms behavior in the subsequent scenarioa worm is moving toward an apple. each time

  Problem build a class for a type called fractionnbspthis

problem build a class for a type called fraction.nbspthis class is used to show a ration of two integers.nbsp include

  Part - 1 object-oriented designwrite a program that allows

part - 1 object-oriented designwrite a program that allows an instructor to keep a grade book. each students has scores

  Soda vending machine designnbsp design a soda vending

soda vending machine designnbsp design a soda vending machine that can deliver three kinds of soda a b and c. allnbsp

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd