Determining the order of a function with big Oh

  • Thread starter Thread starter ZERO_COOL
  • Start date Start date
  • Tags Tags
    Function
AI Thread Summary
The discussion focuses on determining the order of three functions using Big O notation. The proposed orders are Θ(n^3) for Ta(n), Θ(n^2) for Tb(n), and Θ(n^2log10(n)) for Tc(n). It is noted that Tb(n) is the most efficient for large values of n, as it ranks higher in the Big O hierarchy. Participants express confidence in the accuracy of these classifications after some verification. The conversation emphasizes the importance of correctly interpreting function growth rates in algorithm analysis.
ZERO_COOL
Messages
17
Reaction score
0

Homework Statement



Give the order of the following functions,

1. Ta(n) = 20^2 + (n + 4)^3

2. Tb(n) = (6n + 4)^2 + 3nlog2(n)

3. Tc(n) = (7n + 1)^2log10(n)


Homework Equations





The Attempt at a Solution



I got the following orders:-

1. Θ(n^3)

2. Θ(n^2)

3. Θ(n^2log10(n))

Number 2 is the most effecient for very large values of n because it is higher up the Big Oh ranking table.
 
Last edited:
Physics news on Phys.org
ZERO_COOL said:

Homework Statement



Give the order of the following functions,

1. Ta(n) = 20^2 + (n + 4)^3

2. Tb(n) = (6n + 4)^2 + 3nlog2(n)

3. Tc(n) = (7n + 1)^2log10(n)


Homework Equations





The Attempt at a Solution



I got the following orders:-

1. Θ(n^3)

2. Θ(n^2)

3. Θ(n^2log10(n))

Number 2 is the most effecient for very large values of n because it is higher up the Big Oh ranking table.
Do you have a question?
 
Looks ok to me.

EDIT: HAHAHA! Seems as if we're going for exactly the same threads tonight Mark!
 
Last edited:
Yep LOL,

I was hoping someone could verify my answers, the brackets have me doubting my answers and I'm a bit dubious about my response to the third one.
 
I don't see anything wrong with any of them.
 
Thanks Mark and phyzmatix.

I was about 80% confident in my answers now I'm 100% :)
 

Similar threads

Back
Top