In a priority queue, which data structure is typically used to ensure efficient access to the highest (or lowest) priority element?
In a priority queue, which data structure is typically used to ensure efficient access to the highest (or lowest) priority element? a) Stack b) Queue c) Binary Heap d) Hash Table Answer: c) Binary Heap Explanation: A binary heap is commonly used to implement a priority queue. In a binary heap, the highest (or lowest) […]