Is x^3 O(x^4) but x^4 not O(x^3)?

  • Thread starter Thread starter nicnicman
  • Start date Start date
  • Tags Tags
    Proof Relationship
Click For Summary
SUMMARY

The discussion confirms that x^3 is O(x^4) while x^4 is not O(x^3). To establish this, it is necessary to find constants C and k such that |f(x)| <= C|g(x)| for x > k. The proof demonstrates that for x^3 <= C(x^4), this holds true for any C > 0 when x ≥ 1/C. Conversely, x^4 <= C(x^3) cannot be satisfied for any positive C, confirming that x^4 is not O(x^3).

PREREQUISITES
  • Understanding of Big-O notation and its mathematical implications.
  • Familiarity with limits and asymptotic analysis.
  • Basic algebraic manipulation skills.
  • Knowledge of real numbers and inequalities.
NEXT STEPS
  • Study the formal definition of Big-O notation in detail.
  • Learn how to find witnesses C and k for various functions.
  • Explore examples of functions that demonstrate Big-O relationships.
  • Investigate other asymptotic notations such as Big-Theta and Big-Omega.
USEFUL FOR

Students in computer science or mathematics, particularly those studying algorithms and complexity analysis, will benefit from this discussion.

nicnicman
Messages
132
Reaction score
0

Homework Statement


To establish a big - O relationship, find witnesses C and k such that |f(x)| <= C|g(x)| whenever x > k.

Show that x^3 is O(x^4) but that x^4 is not O(x^3).


Homework Equations


If f(x) is O(g(x)) then there is a C such that f(x) <= Cg(x).


The Attempt at a Solution



If f(x) is O(g(x)) then there is a C such that f(x) <= Cg(x).
Thus, if x^3 is O(x^4), then x^3 <= C(x^4).
This is true for all C > 0 when C is a real number.

Similarly, if x^4 is O(x^3) then
x^4 <= Cx^3.
x <= C (divide both sides by x^3)
However, x <= C can not be true for any C. Thus x^4 is not O(x^3).

I'm not sure about this proof because I didn't provide witnesses C and k as the instructions called for. Big-O problems confuse me and I'm not sure if this proof is correct. Any suggestions are appreciated.
 
Physics news on Phys.org
Any suggestions?
 
nicnicman said:
If f(x) is O(g(x)) then there is a C such that f(x) <= Cg(x).
Thus, if x^3 is O(x^4), then x^3 <= C(x^4).
This is true for all C > 0 when C is a real number.
What is true? x3≤Cx4 if and only if x ≥ 1/C. Perhaps this can help you to find some values of k and C.
 

Similar threads

Replies
6
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
8
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K