-4

I can easily understand how to proof a simple big o notation like n5 + 3n3 ∈ O(n5).

But how can I proof something more complex like 3n or 2n ∉ O(nk)?

Dieter Brow
  • 17
  • 1
  • 4

1 Answers1

2

Use a proof by contradiction.

Let's prove that 2n ∉ O(n2). We assume the opposite, and deduce a contradiction from a consequence.

So: assumption: there exists M and n0 such that 2n < M n2 for all n >= n0.

Let x be an number such that x > 5, and x > n0 and 2x > 4 M. Do you agree that such a number must exist?

Finish off the proof by deducing a contradiction based on the inequality that 22x < 4 M x2 by assumption.

Now do the analogous proof for k = 3. Then do it for k = 4. Then generalize your result for all k.

Eric Lippert
  • 647,829
  • 179
  • 1,238
  • 2,067