News for hackers. Stuff that matters.
Re:Gaming CS Interviews by orlp on Wednesday September 28, 2022 @06:23AM (#33006389)
O(1) indexing into an array is a much bigger lie in practice than relying on single-word hash values. It breaks down much, much sooner which is why we have multiple levels of caches to try and hide this.

In reality random indexing is O(sqrt(n)) for 2D memory chips, and at best O(cbrt(n)) in our 3D physical world.

Re:Gaming CS Interviews by Joker_vD on Wednesday September 28, 2022 @08:28AM (#33007113)
And adding two numbers is also O(m+n) where m, n is their length in bits, sure.