Question

8.1: Show what the arrays will look like after Djikstra's

algorithm completes processing the graph shown in Figure 8.9 on Page 407.

Note that almost all the information you need can be inferred from Figure 8.9e

(show the contents of all three arrays: fringeWgt, parent, and status arrays).

A (partially-filled) example of the parent array is shown in Figure 8.5

at the top of Page 398. HOWEVER, this example array is for Prim's algorithm,

not Dijkstra's. Dijkstra uses a similar set of arrays, but with the important

difference described on Page 410: fringeWgt[v] is now not just the weight of

the single edge ending in v, but the weight of the entire path from s to v.

The following is a screenshot of the textbook

8.3 Single-Source Shortest Paths 407 Tree g Fringe 4 d(A, B) W(BC) 6 Select AG next. (a) The graph (b) An intermediate step ree Friage d(A, G)+WGH) 10 Select GI next (c) An intermediate step: C H was considered but not chosen, to replace GH as a candidate Unseen Tree Fringe Fringe ree (d) Gl is selected. (e) AF was replaced by IF as a candidate Figure 8.9 Anexample for Dijkstras shortest-path algorithm: The problem is to find a shortest path from A to H.

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:
8.1: Show what the arrays will look like after Djikstra's algorithm completes processing the graph shown...
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