Tree Data Structures questions

Q5

GATE CS 2020 CSTree Data StructuresMCQ1 mark−1/3 if wrong
The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19.

Which one of the following is the postorder traversal of the tree?
Show answer without attempting

Answer: B

Q41

GATE CS 2020 CSTree Data StructuresMCQ2 marks−2/3 if wrong
In a balanced binary search tree with nn elements, what is the worst case time complexity of reporting all elements in range [a,b][a, b]? Assume that the number of reported elements is kk.
Show answer without attempting

Answer: B

Q47

GATE CS 2020 CSTree Data StructuresNAT2 marks
Consider the array representation of a binary min-heap containing 1023 elements. The minimum number of comparisons required to find the maximum in the heap is __________.
Show answer without attempting

Answer: 511

0/30 correct0 marks

Related topics in Programming and Data Structures