Re:O(n^2), again, now in Windows Management Instrumentation
by enedil on Monday December 09, 2019 @06:40PM
(#21747931)
It's a subset, but also a superset.
Re:O(n^2), again, now in Windows Management Instrumentation
by thaumasiotes on Monday December 09, 2019 @06:46PM
(#21748001)
Yes? But to replace O(2n) with O(n), you only need that it's a subset.
O(2n) is not an abuse of notation. It's just as well defined as O(n). The fact that O(2n) is a subset of O(n) is a theorem, not part of the definition of the notation.