Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What N?

Floating point operations might be limited in precision (and range to some extend), but pretty much any you'll normally encounter will be O(1). Unless you require arbitrary precision.



By exactly the same reasoning, every algorithm is O(1) because your computer is a finite object and so the size of the data is bounded.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: