Question

CAN SOMEONE PLEASE HELP ME WITH THIS RECITATION QUESTION (both related). PLEASE PROVIDE EXPLANATION. THUMBS UP WILL BE GIVEN. THANKSSS!

1. Step through Dijkstras algorithm to calculate the order in which the vertices are visited from vertex A to all other vertices in the undirected graph given below. Then to calculate (a) the shortest path distance from A to all other vertex and (b) the corresponding path taken. 2 12 7 2 3 10 2. With an example show that Dijkstra doesnt work with negative edge weights.

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

DİİKStsas Ayoðrth.rn to t;nd Shoo test al oteun Venties Path Aom Nertex A to lous lo mimum 2. B 8, 8 5+3),clo, A 3, B 2,L 8, B 5 C 2, B 2. В R, E E ,

Edge

A - B A - C A - D A - E A - F A - G
Cost 1 2 7 5 7 3

The Shortest Path Tree as follows

2) Let us consider the Following Negative Edge Graph

So the above Dijkstra's Algorithm does not gives exact solution

Add a comment
Know the answer?
Add Answer to:
CAN SOMEONE PLEASE HELP ME WITH THIS RECITATION QUESTION (both related). PLEASE PROVIDE EXPLANATION. THUMBS UP...
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