Question

1 pts Question 1 What would the cost array contain immediately after Dijkstras algorithm discovers with certainty the least-cost path from A to C but just before this path is used to update the cost estimates of Cs neighbors in the graph shown below? 14 10 11 6 15 A. 0 7 9 oo oo 14 F A B C D B. 0 7 9 14 14 A B C D E F C 0 7 9 22 14 A B C D E F D. 0 7 9 20 21 11
media%2F50d%2F50d33d98-a3fd-43bf-bdde-a1
media%2Fb38%2Fb38f9cb0-d1d5-4e5b-818c-f4
media%2F51f%2F51f36b29-c650-4126-8fa6-fb
media%2F7c0%2F7c0c5b4d-8acc-4cf2-a84f-af
media%2F65b%2F65b8eb68-db91-4f5f-b0d4-83
media%2Fcad%2Fcadc6c14-9887-4867-85c5-cc
media%2F09c%2F09cd5bb5-1364-43a3-8471-ff
media%2Fadd%2Fadd38a9f-d7f8-4be4-8347-9e
Can anybody help me with these questions? Plz...
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1:
Pass 1:
0 inf inf inf inf inf

Pass 2:
0 7 9 inf inf 14

Pass 3:
0 7 9 22 inf 14

Pass 3:
0 7 9 20 inf 11

So B is the correct answer

Answer 2:
A is the correct answer
since for enqueuer, we insert at 2nd position and update n as 2nd node
for dequeuer, we simply remove the 2nd node. So both taking O(1) time.

Answer 3:
A is the correct answer again.
(If you need reasons please ping me through comments below.)

Answer 5:
A is correct since Starting from node B, it first visits immediate neighbours A, E, and C. After visiting this path, it visits F and D

Answer 6:
B is the correct answer, since it contains no cycles and Items with added in ascending order.

Answer 7:
C is the correct answer since after adding edge 1, edge 2 cannot be added to the tree

Answer 8:
A is the correct answer since for all i Heap(i) > Max(heap(i*2 +1), heap(i*2+2))

Here are the answers champ. By the way, we are only allowed to answer 4 questions, so please post less numbers questions from next time. If you are facing any problem with the answers, please feel free to comment below. I shall be glad to answer you.

Add a comment
Know the answer?
Add Answer to:
Can anybody help me with these questions? Plz... 1 pts Question 1 What would the cost...
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