GATE CS 2002 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0246

A weight-balanced tree is a binary tree in which for each node, the number of nodes in the let 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 furthest leaf) of such a tree on n nodes is best described by which of the following ?
  1. A
    \(log_{2}n\)
  2. B
    \(log_{4/3}n\)
  3. C
    \(log_{3}n\)
  4. D
    \(log_{3/2}n\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/842/gate2002-2-12

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com