Download presentation

Presentation is loading. Please wait.

Published byEllie Ormerod Modified over 3 years ago

1
6.8 The Cheapest-Link Algorithm

2
The Cheapest-Link Algorithm Pick the edge with the smallest weight and mark it Pick the next edge with the smallest weight available and mark it Continue doing that following these rules –Do not pick an edge that will close a circuit –Do not pick an edge that will create 3 edges coming out from a single vertex Connect the last two vertices to close the circuit

3
Apply the Cheapest-Link Algorithm to find the Hamilton circuit. Write the circuit starting and ending at A Pick BD = 10 Pick CB = 15 Can not pick AB, so pick AD = 30 Can not pick CD, so pick AC = 70 to close the circuit Therefore the best route is C, A, D, B, C or A, D, B, C, A = 125

4
Apply the Cheapest-Link Algorithm to find the Hamilton circuit. Write the circuit starting and ending at A Pick AC = 119 Pick EC = 120 Can not pick CB nor AE so the next edge is BD = 150 Pick AD = 152 Can not pick CD, can not pick AB, can not pick ED so the last edge is EB =200 which will close the circuit Therefore: the route is A, C, E, B, D, A = $741

5
Apply the Cheapest-Link Algorithm to find the Hamilton circuit. Write the circuit starting and ending at B The circuit is: B, A, D, C, B with a total of 17

6
Apply the Cheapest-Link Algorithm to find the Hamilton circuit. Write the circuit starting and ending at A A B C DE F The Hamilton circuit: A, D, B, C, F, E, A with a total weight of 35

7
Apply the Cheapest-Link Algorithm to find the shortest way to go to the bank, dry cleaner, post office, and wegmans starting and ending at home. The mileage chart is shown below. HOME B D P W Shortest way using the C.Link Home, Post Office, Dry Cleaner, Bank, Wegmans, then Home Total: 16 miles

8
Apply the Cheapest-Link Algorithm to find the shortest way to go to the bank (B), candy store (C), and the airport (A) to pick up a friend starting and ending at home. Each block is exactly 1 mile. B A C H 6 5 12 10 9 7 Home, Bank, Airport, Candy Store, Home Total: 28 miles

Similar presentations

OK

Geometry: Plane Figures Chapter. point A point marks a location. A A B B line segment the part of the line between 2 points endpoints.

Geometry: Plane Figures Chapter. point A point marks a location. A A B B line segment the part of the line between 2 points endpoints.

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Ppt on marie curie high school Ppt on busy accounting software Ppt on conservation of environment images Ad mad show ppt on tv Ppt on satellite orbit map Ppt on history of prime numbers Ppt on networking related topics about computer Ppt on gujarati culture and traditions Ppt on save tigers in india free download Ppt on genetically modified crops