Question

Juliet lives in a small town in Wisconsin called Verona. A stylized map of Verona is presented as a directed graph N(V, A) in

0 0
Add a comment Improve this question Transcribed image text
Answer #1

4) Dijkstra’s shortest-path algorithm to compute the shortest path from “1” to all network nodes is as follows

Step D(4) P(4) D(5) P(5) D(6) P(6) D(7) P(7) D(8) P(8) D(9) P(9) D(10) P(10) D(3) P(3) 3,1(min) 3,1 3,1 Vertex/ D(1) P(1) Nod

Step 0: Initially we take 1 as a minimum Weight and highlight that value
Step 1: In this we consider the minimum weight other than Node 1 that is at Node 3 we have minimum weight so highlight that value
Step 2: In this we consider the minimum weight other than Nodes 1 & 3 that is at Node 2 we have minimum weight so highlight that value
Step 3: In this we consider the minimum weight other than Node 1,2 & 3 that is at Node 5 we have minimum weight so highlight that value
Step 4: In this we consider the minimum weight other than Node 1,2,3 & 5 that is at Node 6 we have minimum weight so highlight that value
Step 5: In this we consider the minimum weight other than Node 1,2,3,5 & 6 that is at Node 4 we have minimum weight so highlight that value

Step 6: In this we consider the minimum weight other than Node 1,2,3,4,5 & 6 that is at Node 8 we have minimum weight so highlight that value

Step 7: In this we consider the minimum weight other than Node 1,2,3,4,5,6 & 8 that is at Node 9 we have minimum weight so highlight that value

Step 8: In this we consider the minimum weight other than Node 1,2,3,4,5,6,8 & 9 that is at Node 10 we have minimum weight so highlight that value

Step 9: In this we consider the minimum weight other than Node 1,2,3,4,5,6,8,9 & 10 that is at Node 7 we have minimum weight so highlight that value

Edge 1 - 2 1 - 3 1 - 4 1 - 5 1 - 6 1 - 7 1 - 8 1 - 9 1 - 10
Cost 5 3 8 6 7 15 9 12 14

The shortest path tree from the above routing table.

1586030266109_blob.png

1) Dijkstra's algorithm to compute the shortest travel time from Juliet's place (vertex 1) to all liquor stores (vertex 4 and vertex 6) is 8 and 7 respectively

2) Dijkstra's algorithm to compute the shortest travel time from every liquor store (vertex 4 and vertex 6) to the party location (vertex 10) is
from Vertex 4 to vertex 10 is 6 (4-8-10)
from Vertex 5 to vertex 10 is 9 (6-5-4-8-10)

3) Combine parts (1) and (2) to solve Juliet's problem, i.e., to find what her path to the party should be 10(1-3-5-4-8-10)

Add a comment
Know the answer?
Add Answer to:
Juliet lives in a small town in Wisconsin called Verona. A stylized map of Verona is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT