Step 1: Understanding Heap Properties.
- **Parent(i)**: We can compute the parent of node \( i \) using the formula \( \text{parent}(i) = \frac{i-1}{2} \), which gives the index of the parent node in a binary heap.
- **Left(i)**: We can compute the left child of node \( i \) using the formula \( \text{left}(i) = 2i + 1 \).
- **Right(i)**: We can compute the right child of node \( i \) using the formula \( \text{right}(i) = 2i + 2 \).
Step 2: Heap Size.
We cannot compute the heap size directly from the index of a node. The heap size is generally known from external information or passed along with the heap structure.
Step 3: Conclusion.
Thus, the correct answer is **(2) Heap size**.
Match List-I with List-II.
| List-I | List-II |
|---|---|
| A. AND | I. Output 1 only if both inputs are 1 |
| B. OR | II. Output 1 if any input is 1 |
| C. NAND | III. Output 0 only if both inputs are 1 |
| D. NOR | IV. Output 1 only if both inputs are 0 |
Choose the correct answer from the options given below:
Match List-I with List-II:
| List-I (Personalities/Public Figures) | List-II (Bodies/Institutions) | ||
|---|---|---|---|
| (A) | Sanjay Malhotra | (I) | National Human Rights Commission |
| (B) | Om Prakash Rawat | (IV) | Election Commission of India |
| (C) | Justice V. Ramasubramanian | (III) | Supreme Court of India |
| (D) | Justice Deepak Misra | (II) | Reserve Bank of India |