Balanced Trees: AVL and Red-Black Trees - Numerical Applications

Download Q&A
Q. How many rotations are needed to balance an AVL tree after an insertion?
  • A. At most one.
  • B. At most two.
  • C. At most three.
  • D. No rotations are needed.
Q. What is the color property of a Red-Black tree?
  • A. Every node is either red or blue.
  • B. Every node is either red or black.
  • C. Every node is either black or white.
  • D. Every node is either green or red.
Q. Which of the following operations is not O(log n) in an AVL tree?
  • A. Insertion
  • B. Deletion
  • C. Searching
  • D. Traversal
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely