3 Replies - 1199 Views - Last Post: 12 October 2010 - 06:49 PM

#1 megglz   User is offline

  • D.I.C Regular
  • member icon

Reputation: 11
  • View blog
  • Posts: 414
  • Joined: 22-August 08

big oh notation help

Posted 10 October 2010 - 12:04 PM

can anyone explain to me how n0 is 5 and c is 4 pleeease
http://bit.ly/a3bmCr

(i should know this, blah) :/
Is This A Good Question/Topic? 0
  • +

Replies To: big oh notation help

#2 mostyfriedman   User is offline

  • The Algorithmi
  • member icon

Reputation: 729
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: big oh notation help

Posted 12 October 2010 - 02:15 AM

by definition
f(x) = O(g(x)) if and only if there exists n0 and c such that for all n > n0, f(x) <= cg(x), so if you substitute c=4 and n0=5 the relationship should hold, you can verify it by induction.
Was This Post Helpful? 1
  • +
  • -

#3 mojo666   User is offline

  • D.I.C Addict
  • member icon

Reputation: 409
  • View blog
  • Posts: 885
  • Joined: 27-June 09

Re: big oh notation help

Posted 12 October 2010 - 10:32 AM

4*2^5=128
2^5 + 5^6 + 17 = 15674
The relation does not hold for n0 and c both being that small. I think this is a typo.
Was This Post Helpful? 1
  • +
  • -

#4 mostyfriedman   User is offline

  • The Algorithmi
  • member icon

Reputation: 729
  • View blog
  • Posts: 4,473
  • Joined: 24-October 08

Re: big oh notation help

Posted 12 October 2010 - 06:49 PM

well i dunno, i didnt plug in the numbers, i just told her how to do it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1