aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2013 - Previous Question Paper Solution
  • Which one of the following is the tightest upper bound th...
Multiple choice

Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?

  1. O(1)

  2. O(log n)

  3. O(n)

  4. O(n log n)

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

For skewed binary search tree on n nodes, the tightest upper bound to insert a node is O(n).

Keep practicing — related questions

  • Which of the following statements is/are true? 1. The time complexity for searching an element in binary se...
  • The worst case running time to search for an element in a balanced binary search tree with n2n elements is
  • The following SAS program is submitted: data work.test; array agent{4} $ 12 sales1 – sales4; run; Which one...
  • 01 WS-N PIC 9(2) VALUE ZERO.A-PARA MOVE 5 TO WS-N. PERFORM B-PARA WS-N TIMES. B-PARA. MOVE 10 TP WS-N. How ...
  • What will be the output of the following JSP code snippet at run-time when it is accessed the third time? <...
  • What is the value of k after the following code fragment? int k = 0; int n = 12 while (k < n) { k = k + 1; }
  • Which one of the following statements about system testing is NOT true?
  • There are 4 divisions in a cobol program. Which of the following is not one of them?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy