Asymptotic Blunders: Should Say
Asymptotic Blunders: Should Say
Asymptotic Blunders: Should Say
MIT 6.042J/18.062J
“· = O(·)” defines a relation
Asymptotic
Don’t write O(g) = f.
Otherwise: x = O(x), so O(x) = x.
But 2x = O(x), so
Blunders therefore
2x = O(x) = x,
2x = x.
Nonsense!
Albert R Meyer, April 10, 2013 Ohblunder.1 Albert R Meyer, April 10, 2013 Ohblunder.2
Of course really:
should say n
∑ i = Θ(n2
)
n2 = O(f) i=1
Albert R Meyer, April 10, 2013 Ohblunder.3 Albert R Meyer, April 10, 2013 Ohblunder.4
1
Big Oh Mistakes
n
False Lemma:
∑ i = O(n)
false proof: i=1
0 = O(1), 1 = O(1), 2 = O(1),…
So each i = O(1). So
n
2
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.