Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Mat 117 Worksheet: Traveling Salesperson Problem - Prof. Tan Zhang, Assignments of Mathematics

This worksheet from mat 117 involves solving the traveling salesperson problem using two different algorithms - nearest neighbor and greedy. The problem statement includes mileage between cities for a car trip and a pizza delivery scenario with deliveries to be made at exact locations. Students are required to find the optimal routes and lengths for both scenarios.

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-8om
koofers-user-8om 🇺🇸

5

(1)

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Worksheet #12 Mat 117
Name........................................
Name........................................
Name........................................
Please show your work clearly and neatly. NO work NO credit! Your group size may have
AT MOST 3 people. You will lose points if more than three names are on this worksheet.
1. (Pg 398 #17) A person starting in Wichita must visit Kansas City, Omaha, and St.
Louis, and then return home to Wichita in one car trip. The road mileage between the
cities is shown below:
Kansas City Omaha St. Louis Wichita
Kansas City 201 256 190
Omaha 201 449 298
St. Louis 256 449 447
Wichita 190 298 447
(a) Draw a weighted graph corresponding to this situation next to the above chart.
(b) Use the nearest neighbor algorithm to find an approximate solution to the traveling
salesperson problem for a circuit staring at Wichita, and find the length of this circuit.
(c) Use the greedy algorithm to find an approximate solution to the traveling salesperson
problem for a circuit staring at Wichita, and find the length of this circuit.
1
pf2

Partial preview of the text

Download Mat 117 Worksheet: Traveling Salesperson Problem - Prof. Tan Zhang and more Assignments Mathematics in PDF only on Docsity!

Worksheet #12 Mat 117

Name........................................

Name........................................

Name........................................

Please show your work clearly and neatly. NO work – NO credit! Your group size may have AT MOST 3 people. You will lose points if more than three names are on this worksheet.

  1. (Pg 398 #17) A person starting in Wichita must visit Kansas City, Omaha, and St. Louis, and then return home to Wichita in one car trip. The road mileage between the cities is shown below:

Kansas City Omaha St. Louis Wichita Kansas City 201 256 190 Omaha 201 449 298 St. Louis 256 449 447 Wichita 190 298 447

(a) Draw a weighted graph corresponding to this situation next to the above chart.

(b) Use the nearest neighbor algorithm to find an approximate solution to the traveling salesperson problem for a circuit staring at Wichita, and find the length of this circuit.

(c) Use the greedy algorithm to find an approximate solution to the traveling salesperson problem for a circuit staring at Wichita, and find the length of this circuit.

  1. A pizza delivery man must deliver pizzas to the five locations on the following graph labeled A, B, C, D, and E. The weight of an edge between two vertices is the distance between the corresponding locations measured in blocks that must be traveled along the roads. All of the blocks are of equal size. The pizza shop is located at the spot labeled S. The deliveries must be made along a route that begins and ends at the pizza shop and includes visits to each delivery location EXACTLY once.

(a) Find a route and its length using the nearest neighbor algorithm.

(b) Find a route and its length using the greedy algorithm.