Re:A beginner's guide to Big O notation (2009)
by roywiggins on Thursday May 05, 2016 @02:57PM
(#11638825)
Big-O describes an upper limit in itself. Something that is O(N) is also O(2^N). No less-than needed, it's included in the definition of big-O.
[ Parent
| on HN ]
Re:A beginner's guide to Big O notation (2009)
by justinlardinois on Thursday May 05, 2016 @06:30PM
(#11640162)
Yes, but context matters; Big O is often used informally. The interviewer's going to look at you weird when you tell him the O(N) algorithm is O(2^N).
Re:A beginner's guide to Big O notation (2009)
by schoen on Thursday May 05, 2016 @07:14PM
(#11640427)
We have the same problem with things being "in NP". It's clear that all of P is in NP, but not clear whether all of NP is in P. But people often say "NP" with the implication of "(apparently, as far as we know) not in P", which is not actually correct based on the meanings of those terms.
(In this case the problem is probably made worse by the mental interpretation of "NP" as "Not Polynomial", when it really means "Nondeterministic machine can solve in Polynomial time", and if a deterministic machine can solve something in polynomial time, a nondeterministic machine can do so as well!)