The maximum number of elements in a heap of height h is
a) 2h+1 -1 b) 2h c) 2h -1 d) 2h -1
a) 2h+1 -1 b) 2h c) 2h -1 d) 2h -1
a) Internal nodes b) External nodes c) Root nodes d) None
a) Pre-order b) In-order c) Post-order d) None
a) 2, 252, 401, 398, 330, 344, 397, 363 b) 924, 220, 911, 244, 898, 258, 362, 363 c) 925, 202, 911, 240, 912, 245, 258, 363 d) 2, 399, 387, 219, 266, 382, 381, 278, 363
A. ABFCDE B. ADBFEC C. ABDECF D. ABDCEF
A. Data B. Location and left child C. Right child address D. Null value
A. Info B. Root C. Threads D. Child
A. Right tree is empty B. Left tree is empty C. Both left & right sub trees are empty D. Root node is empty
A. O(1) B. O(log n) C. O(n) D. O(n log n) 15. E. O(n2 )
(A) Preorder (B) Inorder (C) Postorder (D) Level order
(A) Preorder (B) Inorder (C) Postorder (D) Level order
(A) Preorder and Inorder (B) Preorder and Postorder (C) Inorder and Postorder (D) None of the Above
(A) d e b f g c a (B) e d b g f c a (C) e d b f g c a (D) d e f g b c a
(A) Root is visited before right subtree (B) Left subtree is always visited before right subtree (C) Root is visited after left subtree (D) All of the above (E) None of the above