11. What is the main advantage of using a binary heap for implementing a priority queue?
12. In a min-heap, what happens when you decrease the value of a node?
13. Which operation is used to extract the minimum element from a min-heap?
14. What is the time complexity of extracting the maximum element from a max-heap?
15. How are heaps commonly used in algorithms?
16. In a binary heap, which of the following operations is O(log n) in time complexity?
17. What is the main difference between a binary heap and a binary search tree?
18. How do you restore the heap property after extracting the maximum element from a max-heap?
19. Which property does not apply to a min-heap?
20. What is the time complexity of decreasing a key value in a min-heap?
Read More Section(Heaps)
Each Section contains maximum 100 MCQs question on Heaps. To get more questions visit other sections.
