Which of the following data structures can be used to efficiently implement a…

2018

Which of the following data structures can be used to efficiently implement a priority queue?

Answer: D. Heap TreeA Heap Tree is the optimal choice for implementing a priority queue. It supports insertion and extraction in O(log n) time, unlike arrays or linked lists…

  1. A.

    Array

  2. B.

    Single Linked List

  3. C.

    Circular Linked List

  4. D.

    Heap Tree

Attempted by 717 students.

Show answer & explanation

Correct answer: D

A Heap Tree is the optimal choice for implementing a priority queue. It supports insertion and extraction in O(log n) time, unlike arrays or linked lists which require O(n). This efficiency makes heaps the standard structure for priority management.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…