aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2008 - Previous Question Paper Solution
  • We have a binary heap on n elements and wish to insert n ...
Multiple choice

We have a binary heap on n elements and wish to insert n more elements (not necessarily one after another) into this heap. The total time required for this is

  1. $\Theta(\log n)$
  2. $\Theta(n)$
  3. $\Theta(n\log n)$
  4. $\Theta(n^2)$
Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Keep practicing — related questions

  • Consider the process of inserting an element into a Max Heap, where the Max Heap is represented by an array...
  • Let the binary heap has depth equal to d. What is the minimum number of nodes in the heap?
  • Let the binary heap has depth equal to d. What is the minimum number of nodes in the heap?
  • Consider the process of inserting an element into a Max Heap, where the Max Heap is represented by an array...
  • In a binary max heap containing n numbers, the smallest element can be found in time
  • In a binary max heap containing n numbers, the smallest element can be found in time
  • The number of elements that can be sorted in $Θ(\log n)$ time using heap sort is
  • The elements 32, 15, 20, 30, 12, 25, 16 are inserted one by one in the given order into a max Heap. The res...
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