Order Comparison of Functions: f(n) < THETA(g(n)) for O(2^n) and O(3^n)

  • Thread starter Ad2d
  • Start date
In summary, the conversation discusses the order of two functions, f(n) = 2^n and g(n) = 3^n, which are O(2^n) and O(3^n) respectively. The question is whether f(n) < THETA(g(n)) and if O(2^n) < O(3^n) is correct. It is clarified that O(2^n) = O(3^n) in the usual abuse of notation sense, but the set of functions that are O(2^n) is a proper subset of the set of functions that are O(3^n). The concept of Theta is also discussed, with the idea that a function can be between the upper and lower bound, greater than the
  • #1
Ad2d
9
0
Hello All, I need help making sure I am right about this. Say for example I have these two functions: f(n) = 2^n and g(n) = 3^n.

Now the order is O(2^n) and O(3^n) respectfuilly. Now I need make sure I am right about this: based on the order, O(2^n) < O(3^n) therefore f(n) < THETA(g(n)).

Is this statement correct here when I say f(n) < THETA(g(n)) and that O(2^n) < O(3^n)?
 
Last edited:
Mathematics news on Phys.org
  • #2
Isn't O(2^n) = O(3^n)? Exponential functions differ by a multiplicative constant.
 
  • #3
Tac-Tics said:
Isn't O(2^n) = O(3^n)? Exponential functions differ by a multiplicative constant.

No?
The constant C does not exist such that [tex]C \cdot 2^x > 3^x[/tex] for all x.
 
  • #4
Ack. My intuition failed me. I was thinking of 2x^n versus 3x^n for a constant n. Sry.
 
  • #5
O(2^n) is O(3^n) in the usual abuse of notation sense. But the set of functions that are O(2^n) is a proper subset of the set of functions that are O(3^n). For example, 2.0001^n is not O(2^n).

"f(n) < THETA(g(n))" isn't defined -- O, o, Theta, and the others use only the element operator (or, by the abuse mentioned above, an equal sign). Do you perhaps mean that 2^n is o(3^n)? That would be correct, because lim 2^n/3^n = 0.
 
  • #6
Thank You all. I was able do what CRGreathouse with the limits which made more since to me. From what the professor was saying, I am thinking that Theta is a value that is I am between the upper and lower bound, and I need to show whether or not the functions where less than the upperbond (f(n) < theta (g(n)) ), greater than the lower bound (f(n) > theta (g(n)) ), or equal ((f(n) = theta (g(n)) )). I hope that make sense (I'm not a genius when it comes to wording in math). Just like to say thanks again for all your input. It helped.
 

FAQ: Order Comparison of Functions: f(n) < THETA(g(n)) for O(2^n) and O(3^n)

What is the purpose of "Need Help Make sure of Order"?

The purpose of "Need Help Make sure of Order" is to ensure that all items or tasks are in the correct order or sequence. This can be important in various fields such as manufacturing, research, and project management.

Why is it important to make sure of order?

Making sure of order is important because it helps to ensure efficiency, accuracy, and effectiveness in completing tasks or projects. It also helps to prevent mistakes, delays, and confusion that can occur when things are out of order.

What are some methods for ensuring order?

There are several methods for ensuring order, including creating a checklist or timeline, using visual aids such as flowcharts or diagrams, and implementing a system of organization or labeling. It can also be helpful to have clear communication and collaboration among team members.

How can technology be used to help make sure of order?

Technology can be used to help make sure of order in various ways, such as through project management software, scheduling tools, and automation. These tools can help to keep track of tasks, deadlines, and progress, making it easier to stay organized and on track.

What are the consequences of not making sure of order?

The consequences of not making sure of order can include mistakes, delays, and disorganization, which can lead to wasted time, resources, and even financial losses. It can also impact the quality and success of a project or task. Additionally, not making sure of order can create frustration and stress for individuals involved.

Similar threads

Replies
2
Views
1K
Replies
9
Views
1K
Replies
1
Views
826
Replies
1
Views
1K
Replies
2
Views
2K
Replies
7
Views
2K
Replies
1
Views
1K
Back
Top