3 ms·
What does O(10) mean?
by NewsaHackO 8mo ago
What does O(10) mean?
- PaulHoule 8mo ago"about 10"
- nahumfarchi 8mo agoMathematically, it means that the number of lines read is bounded by 10*M, where M is some constant. So it's basically equivalent to saying that it's O(1). I'm guessing that intention was to say "around 10 lines", though it kind of stretches the definition if we're being picky.
- PaulHoule 8mo agoSee https://en.wikipedia.org/wiki/Big_O_notation https://en.wikipedia.org/wiki/Big_O_notation
- hansvm 8mo agoI normally see that from engineers using "O(x)" as "approximately x" whenever it's clear from context that you're not actually talking about asymptomatic complexity.
- jcgrillo 8mo agoI've always thought it was like this, maybe I'm wrong: O(some constant) -- "nearby" that constant (maybe "order of magnitude" or whatever is contextually convenient) O(some parameter) -- denotes the asymptotic behavior of some parametrized process O(some variable representing a small number) -- denotes the negligible part of something that you're deciding you don't have to care about--error terms with exponent larger than 2 for example
- wizzwizz4 8mo agoThose last two notations are, formally, the same. To call a part negligible, we say it's asymptotically bounded above by a constant multiple of this expression, which obviously goes away as we approach the limit. The first one is a colloquial alternative definition that would probably be considered "wrong" in formal writing.
- jcgrillo 8mo agoAgreed
- unfunco 8mo agoI think the O means order of magnitude. It looks like Big O notation, but O(10) would collapse to O(1) and OP is not talking about efficiency anyway.