Assignment 3.4 (Page 31-32)
Assignment 3.4 (Page 31-32)
You had several errands one day: go to the market, submit an assignment in school, visit a sick friend,
buy medicine from the pharmacy, and have a hair cut. You want to do all these things while minimizing
the total distance traveled.
The distances (in meters) between each of the locations of your errands are shown below.
1. Use the Greedy Algorithm to determine a time-saving route that starts and ends at the market.
2. Use the Edge-Picking Algorithm to determine a time-saving route that starts and ends at the
market.In the diagram below, draw the edges that you “picked", and label them 1, 2, 3, 4, 5, on the
order with which you drew them.