An introduction to lockless algorithms
An introduction to lockless algorithms
Posted Mar 11, 2021 9:56 UTC (Thu) by anselm (subscriber, #2796)In reply to: An introduction to lockless algorithms by dtlin
Parent article: An introduction to lockless algorithms
It has a closed-form solution but that does not make it O(1).
If your platform only supports integers up to a certain maximum (say 2^64-1), 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.
