Assignment SMA
Assignment SMA
1. Construct the minimum spanning tree (MST) for the given graph using Prim’s Algorithm
Since all the vertices have been included in the MST, so we stop.
1. A full of time traveler visits counties in England such as Berkshire, Bristol, Cheshire, Cornwall,
Derbyshire and Essex. He planned to begin the journey and ends at Bristol. The traveler used taxi to
reach his respective destination. The estimated travel time, in minutes, on the taxi stops at each
counties is given in Table 1.
Berkshire - 60 85 69 23 97
Bristol 60 - 42 61 69 98
Cheshire 85 42 - 55 34 81
Cornwall 69 61 55 - 67 54
Derbyshire 23 69 34 67 - 104
Essex 97 98 81 54 104 -
Δ Δ minutes
Greedy Algorithm
1. A group adventurist went to Village Camping Marina di Venezia for some adventure trips. At the
village, they found it has 5 checkpoints. So, they had a game between each other, who can reach all
the checkpoints earlier and also has reached to all checkpoints with prove. Use the greedy algorithm
to find a route and find the estimated time required to travel this route.
SMA 1034
Group C
Assignment 2
Group members :
Name Registration Number
SHATISHWARAN A/L E20181022465
NADERAJAN
BARAN RAO AHNUMANTHU E20181020553
RAO