0 votes 0 votes The operation HEAP-DELETE$(A, i)$ deletes the item in node $i$ from heap $A$. Give an implementation of HEAP-DELETE that runs in $O(lg\ n)$ time for an $n-$element max-heap. Algorithms cormen algorithms binary-heap descriptive + – akash.dinkar12 asked Jun 27, 2019 akash.dinkar12 526 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Heap_Delete(A,i) { A[i] = A[A.heapsize] A.heapsize-- Max_heapify(A,i) } ShrutiS answered Sep 14, 2019 ShrutiS comment Share Follow See all 0 reply Please log in or register to add a comment.