Professional Documents
Culture Documents
Math 7
Math 7
5 WEIGHTED GRAPHS
NAME:
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 haircut. You want to do
all these things while minimizing the total distance traveled.
The distance (in meters) between each of the locations of your errands are shown below.
Draw the edges and weights that connect two errands below
1300
______________
1. Use the Greedy Algorithm to determine a time-saving route that starts and ends
at the market.
Market → Pharmacy → Hair Cut → School → Friend → Market
32-33 3.5 WEIGHTED GRAPHS
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.
__________________________
3
5
1
4
2