Question

1. (25) [Single-source shortest-path: algorithm tracing] Show the tracing of Dijkstras shortest path search algorithm on the

please answer one of the two

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

Algorithm Step 1: Take distance Vector Carray) and Eritilize it to Enfinity previous vector and Critialize it to t Take TakeSingle-source shortest path: algorithm traving. b 6 3 H 8 2 5 3. 6 е с c & starting with a Distance Veetoh to Centralizing Difind the veater with distance minimum = (verter with minimum distance) Condition to update dretance. zi if dist Li] > dist [mNext minimum ☺ 3 lub % distance [c] > distance (6] + weight (b, c) 5 > 3+1 update drerance [c] distance [c] o distance [6] +of distance [e] > distance [e] + aright (c, e) 4t 6 distance 03 4 8 10 destance [e] to e a 5 с c d prev [e] ec prev -1 а a b2 Starting See the figure 1 for reference distance Os Od a b с c d e prev -1-1 b c d e 6. visited o o 0 O b c d e fource u =destance 3 O distance [d] =8 prev [d]=e a b c с d e previous е e 1 е e d au b с e visited ololo oli a b с d e min = 3 u= a ifMinimum u= b distance [d] > dutancu (6] + weight (6, d) 8 > 6+ 6 y distance [c] > distance [ 6] + + auright (b, c) 8 > 6+1 dib Shortest path distanu 3 e a 5 e → ab eta be ed 8 Z

Add a comment
Know the answer?
Add Answer to:
please answer one of the two 1. (25) [Single-source shortest-path: algorithm tracing] Show the tracing of...
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