Content deleted Content added
No edit summary |
No edit summary |
||
Line 22:
===Algorithm ===
Let us say we have an array of n elements. We choose , the gap we intend to
give. Then we would have a final array of size (1 + ε)n. The algorithm works
in log n rounds. In each round we insert as many elements as there are in
the final array already, before rebalancing the array. For finding the position
|