Results 1 to 2 of 2

Math Help - Big Oh notation

  1. #1
    Junior Member
    Joined
    Aug 2009
    Posts
    37

    Big Oh notation

    Give a classification of T(n) as O(f(n)) for a suitable function f in the hierarchy of Big Oh.

    T(n) = 5 + T(n - 1) (n > 0) *THIS IS PART OF THE RECURRENCE SYSTEM.
    T(n) = 5 + 5N. *THIS IS THE FORMULA FOR THE TIME COMPLEXITY FUNCTION. WORKED OUT BY SOLVING THE RECURRENCE SYSTEM.

    I've got confused, not sure if I give a classification of the formula that I worked out by solving the recurrence system or of the recurrence system.
    I think it is the formula T(n) = 5 + 5n. In which case I *think* it's a no brainer because the only term is 5n and so,

    T(n) = 5n is (O^2) and also it is O(n). Thus T(n) = 5n is of order n. Which means 5n is BIG THETA O(n).

    Would appreciate ir if someone could verify I'm on the right track with this.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by RedKMan View Post
    Give a classification of T(n) as O(f(n)) for a suitable function f in the hierarchy of Big Oh.

    T(n) = 5 + T(n - 1) (n > 0) *THIS IS PART OF THE RECURRENCE SYSTEM.
    T(n) = 5 + 5N. *THIS IS THE FORMULA FOR THE TIME COMPLEXITY FUNCTION. WORKED OUT BY SOLVING THE RECURRENCE SYSTEM.

    I've got confused, not sure if I give a classification of the formula that I worked out by solving the recurrence system or of the recurrence system.
    I think it is the formula T(n) = 5 + 5n. In which case I *think* it's a no brainer because the only term is 5n and so,

    T(n) = 5n is (O^2) and also it is O(n). Thus T(n) = 5n is of order n. Which means 5n is BIG THETA O(n).

    Would appreciate ir if someone could verify I'm on the right track with this.
    Yes T(n)=5+5n \in \Theta(n)

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: March 10th 2011, 02:23 AM
  2. nCr notation
    Posted in the Discrete Math Forum
    Replies: 2
    Last Post: August 30th 2010, 10:51 AM
  3. Notation
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: June 4th 2010, 11:36 AM
  4. Replies: 1
    Last Post: August 26th 2009, 12:40 PM
  5. Notation
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: March 27th 2009, 08:26 PM

Search Tags


/mathhelpforum @mathhelpforum