✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
We work with dynamic tables and we use the following common heuristic: When the table is full, double the existing table size. The load factor of a table is at least 1/2 and The amount of wasted space never exceeds half the total space in the table.
Let
NUMi = number of items stored after the ith operationSIZEi = size of the table after the ith operation.
Which potential function (function phi) do you define: