In an array based representation of a complete binary tree,which of the following represents the parent of node tree[i]?
A) tree[i-2]
B) tree[(i-1) /2]
C) tree[2*i-1]
D) tree[2*i-2]
Correct Answer:
Verified
Q28: All trees are hierarchical in nature.
Q29: The minimum height of a binary tree
Q30: The array based representation of a binary
Q31: In a general tree,the leftmost child of
Q32: A data element within a record is
Q34: In an array based representation of a
Q35: In an array based representation of a
Q36: The root of a tree has one
Q37: A full binary tree with height 4
Q38: The root of a tree is at
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents