GATEverse
← GATE CSE 2016 Set 1

Q37

MCQ2 marks, −0.67

An operator delete(i)(i) for a binary heap data structure is to be designed to delete the item in the ii-th node. Assume that the heap is implemented in an array and ii refers to the ii-th index of the array. If the heap tree has depth dd (number of edges on the path from the root to the farthest leaf ), then what is the time complexity to re-fix the heap efficiently after the removal of the element?

Sign in to save attempts.

Loading…