Question: Suppose that, over a network connection, a very high number of integers is being sent to Bob. Bob wishes to keep track of the minimum

 Suppose that, over a network connection, a very high number of

Suppose that, over a network connection, a very high number of integers is being sent to Bob. Bob wishes to keep track of the minimum among all integers he has seen so far, so he stores each integer in a binary min heap (like what you saw during discussion section). Then, whenever Bob wishes to check the current minimum, he simply checks the value at the root of the heap. Is this an ideal online algorithm? If not, then explain how to make the algorithm ideal? If it is already ideal, then explain why Bob cannot make a better online algorithm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!