Small O Notation

Last updated

What is Small O Notation?

Small o notation, denoted as o(g(n)), defines an upper bound on the growth of a function f(n) that is not asymptotically tight. In simpler terms, f(n) is o(g(n)) if, for any positive constant c, there exists a value n₀ such that f(n) is strictly less than c*g(n) for all n greater than n₀. This means that g(n) grows strictly faster than f(n) as n approaches infinity.

Free resources to learn Small O Notation

More in stage 3: Asymptotic Notation

Small O Notation: common questions

Can I learn Small O Notation in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Small O Notation in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Small O Notation tutorial for beginners?

It is lesson 37 of 188 in the free Computer Science roadmap, in stage 3, Asymptotic Notation. If you are new to Computer Science, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me