Question: Add the attribute n to each proto-vEB structure, giving the number of elements currently in the set it represents, and write pseudocode for PROTO-VEB-DELETE that
Add the attribute n to each proto-vEB structure, giving the number of elements currently in the set it represents, and write pseudocode for PROTO-VEB-DELETE that uses the attribute n to decide when to reset summary bits to 0. What is the worst-case running time of your procedure? What other procedures need to change because of the new attribute? Do these changes affect their running times?
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
We would keep the same as before but insert immediately after the else a check of whether n 1n1 If ... View full answer
Get step-by-step solutions from verified subject matter experts
