Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the travelling salesman problem with five cities. The cities are called A, B, C, D, and E. A cycle is a sequence of cities

image text in transcribed
Consider the travelling salesman problem with five cities. The cities are called A, B, C, D, and E. A cycle is a sequence of cities that has the following properties: . The first and last city is the same. . Every other city appears exactly once in the sequence. Therefore, AECBDA is a cycle, while ABDEDCA and ABCED are not. Here is the mileage chart for the cities. A B C D E A 185 119 152 133 B 121 150 200 C 174 120 199 E (a) Complete the chart. (b) Start at city A and use the greedy algorithm to find a cycle. In this context, greedy algorithm means you pick the cheapest link at each step. The length of the cycle should be 773. (c) Start at city B and use the greedy algorithm to find a cycle (722). Explain why this gives a cycle starting at A. (Sketch a picture for Pete's sake!) (d) Repeat the previous question using city C, city D, and city E as starting points. (e) What is the shortest cycle you have found? (It should be 722.) (f) Is shortest cycle 722? If so, explain why. If not, find a shorter cycle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus Early Transcendentals

Authors: James Stewart

7th edition

538497904, 978-0538497909

More Books

Students also viewed these Mathematics questions