Given the index i of a node in a heap, we can not computer:
Explanation
Solution:
Binary Heap ko array mein represent karte waqt, kisi node ke index i se hum uske relative nodes ki position toh nikal sakte hain, par pure structure ki limit nahi.
1. Calculable Values (Jo nikal sakte hain):
2. Non-Calculable Value (Jo nahi nikal sakte):
Heap Size (n) ek independent variable hai jo array ki total length ko darshata hai. Iska index i ke saath koi functional relation nahi hota:
Right Answer:
Heap size