Little-o Notation
Tags: #◇CCDSALG #◇Algorithms #◇Computer Science #◇Computational Complexity #◇Efficiency #◇Algorithm Design Paradigms #◇Data Structures #◇Time Complexity #◇Space Complexity
◇Overview
f(n) = o(g(n)) means f(n) grows strictly slower than g(n).
◇Details / Theory
◇Strict Upper Bound.
f(n) = o(g(n)) means f(n) grows strictly slower than g(n). lim (n→∞) f(n)/g(n) = 0.
Example: n² = o(n³). n² is not o(n²).
◇Complexity
| Operation | Time | Space |
|---|---|---|
◇Common Pitfalls
Confusing little-o with Big-O — little-o is strictly less than, while Big-O allows equality. Forgetting that means , not just .
◇Summary
TL;DR — Little-o () gives a strict upper bound: means grows strictly slower than . Unlike Big-O, equality of growth rates is excluded.
◇Links
Related: Source / Reference:
◇References & Navigation
- Previous Topic: ◇Lesson 1- Analysis of Algorithms
- Next Topic: ◇Little-omega Notation
- Related Notes: ◇Asymptotic Notation, ◇Big-O Notation
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
What does mean?
What is the limit definition for little-o notation?
Is a valid statement?
What is the primary difference between Big-O and little-o?
In the example given, which relationship is true?