Menu

Trees Questions

MCQ
61.
Which of the following statements is/are correct ?
forum Discussion
MCQ
62.
A-2-3 tree is a tree such that 1. All internal nodes have either 2 or 3 children. 2. All paths from root to the leaves have the same length. The number of internal nodes of a 2-3 tree having 9 leaves could be
forum Discussion
MCQ
63.
Is the below tree representation of 50,100,400,300,280 correct way to represent cartesian tree?

forum Discussion
MCQ
64.
What are the operations that can be performed on weight balanced tree?
forum Discussion
MCQ
65.
Consider a weight balanced tree such that, the number of nodes in the left sub tree is at least half and at most twice the number of nodes in the right sub tree. The maximum possible height (number of nodes on the path from the root to the farthest leaf) of such a tree on k nodes can be described as
forum Discussion
MCQ
66.
Why the below pseudo code where x is a value, wt is weight factor and t is root node can
forum Discussion
MCQ
67.
What does the below definations convey?i. A binary tree is balanced if for every node it is gonna hold that the number of inner nodes in the left subtree and the number of inner nodes in the right subtree differ by at most 1.ii. A binary tree is balanced if for any two leaves the difference of the depth is at most 1.
forum Discussion
MCQ
68.
Elements in a tree can be indexed by its position under the ordering of the keys and the ordinal position of an element can be determined, both with good efficiency.
forum Discussion
MCQ
69.
What is the special property of red-black trees and what root should always be?
forum Discussion
MCQ
70.
Why do we impose restrictions like. root property is black. every leaf is black. children of red node are black. all leaves have same black
forum Discussion