When we have red-black trees and AVL trees that can perform most of operations in logarithmic times, then what is the need for splay trees?
A. no there is no special usage
B. In real time it is estimated that 80% access is only to 20% data, hence most used ones must be easily available
C. redblack and avl are not upto mark
D. they are just another type of self balancing binary search trees
Answer: Option B
A. O(1)
B. O(log n)
C. O(n)
D. O(n log n)
Which traversal method of a BST will produce a sorted sequence of node values?
A. Inorder
B. Preorder
C. Postorder
D. Level-order
What is the maximum number of children a node in a Binary Search Tree (BST) can have?
A. 1
B. 2
C. 3
D. Any number
How can you determine if a Binary Tree is a Binary Search Tree (BST)?
A. Verify if all nodes in the left subtree are less than the root and all nodes in the right subtree are greater than the root.
B. Check if the tree is balanced.
C. Ensure all nodes have exactly two children.
D. Verify the height of the tree.

Join The Discussion