Trivia ForgePlay free →

Which data structure is used in Prim's algorithm to efficiently select the next minimum-weight edge connecting to the growing MST?

Show answer

Priority Queue

Prim's algorithm uses a priority queue (often a binary or Fibonacci heap) to store vertices not yet in the MST, keyed by their minimum distance to any vertex currently in the MST.

Would you remember this in 6 months?

Trivia Forge uses spaced repetition so facts stick. Free, no signup needed.

Turn on Algorithms practice →

More Algorithms trivia

See all 83 →