John Mavrick's Garden

Search IconIcon to open search

Last updated Unknown

Status: Tags: #archivedCards/cmpt125/bigo Links: Big O Notation


Big O Notation Definition

Principles

?

Examples

Let f(N)  = 1.5N2 + 4N+ 3. Prove that f(N) = O(N3)​ ? Proof: Let C = 9. We want to prove that f(N) < $CN^3$ for all N >= 1.​

Example: Show f is not O(N) ?

  1. f(N) > CN for all N large enough
  2. Try c = 100; for all N>100, f(N) > 1.5 x 100 x N > CN
  3. At lim f(N)/g(N) > $1.5N^2/{N}$ = 1.5N → Infinity

Backlinks


References:

Created:: 2021-10-18 21:31


Interactive Graph