21. In a binary heap, what is the typical time complexity of deleting an arbitrary element?
22. What is the primary use of heaps in graph algorithms?
23. How is the parent node index computed in a zero-based indexed binary heap array?
24. What happens if you increase the value of a node in a max-heap?
25. Which of the following operations is not directly supported by a binary heap?
26. In a binary heap represented as an array, what is the index of the left child of the node at index i?
27. What is the space complexity of a binary heap when stored in an array?
28. Which operation involves moving a node to maintain the heap property after insertion in a binary heap?
29. In a max-heap, what is the time complexity to find the second largest element?
30. What kind of binary heap is used to efficiently support priority queues with the smallest element at the root?
Read More Section(Heaps)
Each Section contains maximum 100 MCQs question on Heaps. To get more questions visit other sections.