To represent hierarchical relationship between elements, Which data structure is suitable?
A) Dequeue B) Priority C) Tree D) Graph
A) Dequeue B) Priority C) Tree D) Graph
a) n leaf node b) n internal nodes c) n-1 leaf nodes d) n-1 internal nodes
The number of the node in the left sub-tree and right sub-tree of the root, respectively, is a) (4, 7) b) (7, 4) c) (8, 3) d) (3, 8)
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