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% :)
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Back
Top