by varjag · 1y ago · 0 comments
Specifically, as you resize the table, you need a function with a bigger output space to give you more places to store the item. To have a bigger output space, you unavoidably have to do more computations. If you go from a function with n possible outputs to one with 2n possible outputs, as n goes to infinity, you eventually have to use a function with more steps.
[1] elaborated on in this earlier discussion: https://news.ycombinator.com/item?id=9807739
Specifically this comment about the extra assumptions: https://news.ycombinator.com/item?id=9813524
All of the points you raise are valid if you want to have a good understanding of actual runtime cost of an algorithm.
None of it is relevant if you want to compare algorithms according to big-O, in order to find one which doesn't lead to failure[1] when faced with large amounts of data.
Perhaps you should define your own big-R notation for what you're after.
[1]: https://arstechnica.com/information-technology/2013/12/expon...