Tree Data Structures questions

Q41

GATE CS 2024 CS-1Tree Data StructuresMCQ2 marks−2/3 if wrong
An array [82, 101, 90, 11, 111, 75, 33, 131, 44, 93] is heapified. Which one of the following options represents the first three elements in the heapified array?
Show answer without attempting

Answer: D

Q43

GATE CS 2024 CS-1Tree Data StructuresMCQ2 marks−2/3 if wrong
Consider a binary min-heap containing 10510^5 distinct elements. Let kk be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values of kk is
Show answer without attempting

Answer: A

Q39

GATE CS 2024 CS-2Tree Data StructuresMCQ2 marks−2/3 if wrong
You are given a set VV of distinct integers. A binary search tree TT is created by inserting all elements of VV one by one, starting with an empty tree. The tree TT follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into TT, and you do not have access to TT.

Which one of the following statements is TRUE?
Show answer without attempting

Answer: A

0/30 correct0 marks

Related topics in Programming and Data Structures