Question

Please explain why this is the answer.

If we use the attached Dijkstra algorithm on the following graph starting at vertex 1: II4, 5], [3,5,6], [2,4,5, 6], [1,3,5], [1,2,3,4]. [2,3,7], [6]] (a drawing is attached) with edge weights min(i.j for an edge between vertices numbered i and j, where the vertices are numbered 1 to 7; then after 4 iterations of the while loop, the distance estimate to vertex 3 will be and that to vertex 6 will be Answer Key:4,5Algorithm 1 Dijkstra function DIJKSTRAĢiu, A, W) = empty lis dlv add to Q for eachv EV do end for while Q is not empty do Find v in Q with min d[v] (if two vertices have same dv)it picks the one with lower number) Remove v from Q for each neighbour x of v where r is still in Q do if alt 〈 d[x] then d[x] = alt end if end for end while Return d and pl end functionone four five two three SIX sevenone four five two three SIX seven

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Please explain why this is the answer. If we use the attached Dijkstra algorithm on the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

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