What are the children for node ‘w’ of a complete-binary tree in an array representation?

Q & ACategory: Data StructureWhat are the children for node ‘w’ of a complete-binary tree in an array representation?
Admin Staff asked 4 years ago

What are the children for node ‘w’ of a complete-binary tree in an array representation?
a) 2w and 2w+1
b) 2+w and 2-w
c) w+1/2 and w/2
d) w-1/2 and w+1/2

1 Answers
Admin Staff answered 4 years ago

a) 2w and 2w+1