Question

What data structure is useful in improving performance of the Prims algorithm? A. Disjoint set B. Min-Heap C. Max-Heap D. Bi

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

Answer :- (B) Min-Heap

Because Prim’s algorithm is also a Greedy algorithm. Min heap contains vertex number and key value of the vertex. And we have to initialize Min Heap with first vertex as root so min-heap helps to improve performance of prim's algorithm.

Add a comment
Know the answer?
Add Answer to:
What data structure is useful in improving performance of the Prim's algorithm? A. Disjoint set B....
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