Binary Heaps: GATE CS previous year questions
Binary Heaps is part of Programming and Data Structures in the GATE CS syllabus. This page lists 17 past-paper questions on it from official GATE CS papers.
Binary heaps
- Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the…
- Which one of the following sequences when stored in an array at locations A[1], …, A[10]…
- Consider the following statements: I. The smallest element in a max-heap is always at a…
- Consider a max heap, represented by the array: 40, 30, 20, 10, 15, 16, 17, 8, 4. Array…
- A priority queue is implemented as a Max-Heap. Initially, it has 5 elements. The…
- The height of any rooted tree is defined as the maximum number of edges in the path from…
- An algorithm performs (log N)^(1/2) find operations, N insert operations, (log N)^(1/2)…
- Let H be a binary min-heap consisting of n elements implemented as an array. What is the…
- An operator delete(i) for a binary heap data structure is to be designed to delete the…
- Consider a complete binary tree where the left and the right subtrees of the root are…
- Consider the array representation of a binary min-heap containing 1023 elements. The…
- A meld operation on two instances of a data structure combines them into one single…
- Let A be a priority queue for maintaining a set of elements. Suppose A is implemented…
- A complete binary min-heap is made by including each integer in [1,1023] exactly once…
- Consider the following array of elements. ⟨ 89, 19, 50, 17, 12, 15, 2, 5, 7, 11, 6, 9…
- The number of possible min-heaps containing each value from {1, 2, 3, 4, 5, 6, 7}…
- Let n be an odd number greater than 100. Consider a binary minheap with n elements…
More Programming and Data Structures chapters
- Programming in C
- Recursion
- Arrays
- Stacks and Queues
- Linked Lists
- Trees and Binary Search Trees
- Graphs (Data Structure)
Frequently asked questions
How many GATE CS questions are there on Binary Heaps?
PrepWiser has 17 past-paper questions on Binary Heaps from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.