Question 1121 – Nielit Scientist-B CS 22-07-2017
December 6, 2023
Question 8119 – Regular-Language
December 6, 2023
Question 1121 – Nielit Scientist-B CS 22-07-2017
December 6, 2023
Question 8119 – Regular-Language
December 6, 2023

Question 13006 – Data-Structures

If a complete binary tree with n nodes is represented sequentially using array then for any node with index i, 1 ≤ i ≤ n we have:

Correct Answer: B

Question 637 Explanation: 
Option B is the correct answer.Take some complete binary tree and check it.
A
Right-CHILD(i) is at 2i + L, if 2i + 1 ≤ n
B
Right-CHILD(i) is at 2i, if 2i ≤ n
C
Right-CHILD(i) is at 2i -1, if 2i -1 ≤ n
D
None of the above
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!