Already Discussed O N Algorithm Heapify Class Argue Algorithm Asymptotically Optimal Heapi Q37109198

We have already discussed an O(n) algorithm for Heapify inclass. Argue that this algorithm is asymptotically optimal; thatis, Heapify has a problem complexity of Ω(n). Make your argument inthe context of a minheap (a similar argument should work for a maxheap).

Hint: you do not need a problem reduction for this argument;Ω(n) is a trivial lower bound.


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.