adplus-dvertising
frame-decoration

Question

The running time of building MAX – HEAP is

a.

O(n log n)

b.

O(log n)

c.

O(n²)

d.

O(n)

Answer: (b).O(log n)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The running time of building MAX – HEAP is

Similar Questions

Discover Related MCQs

Q. Which of the following sorting algorithm has average sorting behaviour

Q. The implementation of priority queue is

Q. If there are n elements in the heap, what is the time complexity of inserting new element in the heal in worst case?

Q. If a binary search tree traversed in order then numbers of the nodes will printed in

Q. In binary search tree which traversal is used for getting ascending order values?

Q. Building of heap operation will

Q. Which of the following is generally used to implement an almost complete binary tree?

Q. Which of the following is not an application of binary search trees?

Q. Consider the following statements:

I. An algorithm is a no.of steps to be performed to solve a problem
II. An algorithm is a no.of steps as well as the implementation using any language to a given Problem
III. To a given problem there may be more than one algorithm

Which one of the following is true?

Q. Which one of the following is true?

I. aⁿ = O(n²) (small oh) a>0
II. an²=O(n²) (big oh) a>0
III. an² O(n²) (small oh) a>0

Q. If the array is sorted the complexity is

Q. If the array is in reverse sorted order, then time complexities will be

Q. What be the time complexity for any typical array order?

Q. Quick sort gives O(n log n) worst case performances if the pivot is selected as

Q. T (n) = (2n/3)+1 then T(n) is equal to

Q. A language developed to assist children in learning geometric shapes and computing aspects is

Q. Search tables used by compilers for efficient searching generally use

Q. A complete binary tree with 10 leaves

Q. Which of the following is not correct?

Q. Maximum possible height of an AVL tree with 7 nodes is