In class, we saw how to maintain a dynamic table supporting insert and delete operations such that
Fantastic news! We've Found the answer you've been seeking!
Question:
In class, we saw how to maintain a dynamic table supporting insert and delete operations such that the load factor is no less than 1/4.
Suppose instead that we want to maintain a load factor of no less than 1/3.
Explain when to expand and when to shrink and show your technique has O(1) amortized cost using the accounting method described.
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: