

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
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
1 / 2
This page cannot be seen from the preview
Don't miss anything!
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.
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.
(a) Find a route and its length using the nearest neighbor algorithm.
(b) Find a route and its length using the greedy algorithm.