Aspire Faculty ID #12119 · Topic: CUET 2025 · Just now
CUET 2025

Given the index i of a node in a heap, we can not compute: 
1. Parent () 
2. Heap size 
3. Left (i) 
4. Right (i)

Solution

In a binary heap (array representation):

Parent(i) = \(\left\lfloor \tfrac{i}{2} \right\rfloor\),   Left(i) = \(2i\),   Right(i) = \(2i+1\)

All three can be computed directly from the index i.

But the heap size depends on the total number of elements \((n)\), which cannot be determined from i alone.

\(\therefore\) Correct Answer: (2) Heap size

Previous 10 Questions — CUET 2025

Nearest first

Next 10 Questions — CUET 2025

Ascending by ID
Ask Your Question or Put Your Review.

loading...