Which data structure is typically used to implement a priority queue with efficient extraction of the minimum element?
-
A
Linked List
-
B
Binary Heap
Correct answer
-
C
Hash Table
-
D
Binary Search Tree
Correct answer
B. Binary Heap
15 views
Explanation
Binary heaps provide O(log n) time for insertion and extraction of the minimum element.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ