PROJECTENGRAM

LITTLE-O NOTATION

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

OperationTimeSpace

◇Common Pitfalls

Confusing little-o with Big-O — little-o is strictly less than, while Big-O allows equality. Forgetting that f(n)=o(g(n))f(n) = o(g(n)) means f(n)/g(n)→0f(n)/g(n) \to 0, not just ≤\leq.

◇Summary

TL;DR — Little-o (oo) gives a strict upper bound: f(n)=o(g(n))f(n) = o(g(n)) means ff grows strictly slower than gg. Unlike Big-O, equality of growth rates is excluded.

Related: Source / Reference:

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

What does f(n)=o(g(n))f(n) = o(g(n)) mean?

Q2

What is the limit definition for little-o notation?

Q3

Is n2=o(n2)n^2 = o(n^2) a valid statement?

Q4

What is the primary difference between Big-O and little-o?

Q5

In the example given, which relationship is true?