GATEverse
← GATE CSE 2023

Q36

MCQ2 marks, −0.67

Let AA be a priority queue for maintaining a set of elements. Suppose AA is implemented using a max-heap data structure. The operation EXTRACT-MAX(A)\text{EXTRACT-MAX} (A) extracts and deletes the maximum element from AA. The operation INSERT⁡(A,key)\operatorname{INSERT}(A, key ) inserts a new element keykey in AA. The properties of a max-heap are preserved at the end of each of these operations. When AA contains nn elements, which one of the following statements about the worst case running time of these two operations is TRUE?\text{TRUE}?

Sign in to save attempts.

Loading…