News for hackers. Stuff that matters.
Re:Using Python's Bisect Module by Spivak on Sunday November 22, 2020 @09:51AM (#25177856)
Short answer is no because we’re talking about asymptotic behavior and n dominates log n.

Long answer is yes because O notation is commonly written this way to be more illustrative of what’s happening in an algorithm and that were smushing to algorithms together.

If you can be more precise then feel free to write it down. For example O notation hides a constant factor but if you happen to actually know it exactly you might see O(7n) in the wild.

There are no comments on this comment yet.