A priority queue can efficiently implemented using which of the following data structures? Assume that the number of insert and peek (operation to see the current highest priority item) and extraction (remove the highest priority item) operations are almost same.
(A) Array
(B) Linked List
(C) Heap Data Structures like Binary Heap, Fibonacci Heap
(D) None of the above
Answer: (C)
Explanation: See http://en.wikipedia.org/wiki/Priority_queue
Recommended Posts:
- Data Structures | Queue | Question 6
- Data Structures | Queue | Question 11
- Data Structures | Linked List | Question 4
- Data Structures | Stack | Question 3
- Data Structures | Queue | Question 8
- Data Structures | Heap | Question 12
- Data Structures | Linked List | Question 17
- Data Structures | Balanced Binary Search Trees | Question 13
- Data Structures | Balanced Binary Search Trees | Question 12
- Data Structures | Linked List | Question 16
Writing code in comment? Please use ide.geeksforgeeks.org, generate link and share the link here.

