What is Big-O, why do we drop constants, and when does Big-O mislead you?
Short answer
Big-O tells how fast cost grows as n gets bigger. Constants are dropped because for large n the growth rate decides.
3 points to say:
- Say time or memory, and which case.
- Amortized: an average over the whole sequence.
- For small n, constants and cache can win.
Keep reading the deep dive
Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.