aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2012 - Previous Question Paper Solution
  • The worst case running time to search for an element in a...
Multiple choice

The worst case running time to search for an element in a balanced binary search tree with n2n elements is

  1. $\theta$(n log n)
  2. $\theta$(n2n)
  3. $\theta$(n)
  4. $\theta$(log n)
Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The worst case search time in a balanced BST on 'x' nodes is logx. So, if x = n2n, then log(n2n) = logn + log(2n) = logn + n = $\theta$(n)

Keep practicing — related questions

  • What is the worst case run-time complexity of binary search algorithm?
  • A program takes as input a balanced binary search tree with n leaf modes and computes the value of a functi...
  • After insertion of n keys, worst case running time of the algorithm would be _______________ An iterative a...
  • What is the worst case big-oh (asymptotic) cost of searching an element in a Binany Search Tree of depth d?
  • What should be the treatment of debit balance of profit and loss account appearing in the balance sheet at ...
  • Which circuit makes use of a free running counter and connect the output of a free running binary counter t...
  • After successfully escaping by running from a fierce tiger that was running directly towards Raman, he paus...
  • Which of the following is a precondition of the binary search?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy