Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

binary heap

GATE CSE & IT · Data Structures - Heaps · 2001-2026

10
PYQs
100%
keyed
1
elite explanations
9
years appeared

Study anchor

Source-book anchor pending for this concept.

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2026 PYQ

Let $n$ be an odd number greater than 100 . Consider a binary minheap with $n$ elements stored in an array $P$ whose index starts from 1. Which of the following indices of $P$ do/d...

mediumanswer keyelite explanation
2024 Q43

Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values o...

mediumanswer key
2016 PYQ

An operator $$delete(i)$$ for a binary heap data structure is to be designed to delete the item in the $$i$$-th node. Assume that the heap is implemented in an array and i refers t...

easyanswer key
2011 PYQ

A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?

easyanswer key
2011 PYQ

A max-heap is a heap where the value of each parent is greater than or equal to the value of its children. Which of the following is a max-heap?

easyanswer key
2008 PYQ

We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is

mediumanswer key
2006 PYQ

An array X of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is 0. If only the root node does not satisfy the heap proper...

easyanswer key
2005 PYQ

Let G(V, E) an undirected graph with positive edge weights. Dijkstra's single-source shortest path algorithm can be implemented using the binary heap data structure with time compl...

easyanswer key
2004 PYQ

The elements 32, 15, 20, 30, 12, 25, 16, are inserted one by one in the given order into a max Heap. The resultant max Heap is

easyanswer key
2001 PYQ

Consider any array representation of an n element binary heap where the elements are stored from index 1 to index n of the array. For the element stored at index i of the array $$\...

easyanswer key