marshallmattah
marshallmattah
02.03.2020 • 
Mathematics

Consider an ordinary binary heap data structure with n elements that supports the instructions Insert and Extract-Min in O(log n) worst- case time. Give a potential function Φ such that the amortized cost of Insert is O(log n) and the amortized cost of Extract-Min is O(1), and show that it works.

Solved
Show answers

Ask an AI advisor a question