An introduction to lockless algorithms
An introduction to lockless algorithms
Posted Mar 11, 2021 19:28 UTC (Thu) by nybble41 (subscriber, #55106)In reply to: An introduction to lockless algorithms by anselm
Parent article: An introduction to lockless algorithms
> … it is O(1) because it is straightforward to create a lookup table for all n where F(n) < 2^64 and use that rather than the recursive definition.
If you strict permissible inputs to a predetermined finite range then every algorithm becomes O(1). That's not a very useful definition, though. And while a 93-entry table suffices to represent all Fibonacci numbers less than 2^64, many languages have built-in arbitrary-precision integer types limited only by available memory.
