Big O: Clarifying Prime Obsession Concepts

  • Context: Undergrad 
  • Thread starter Thread starter 2710
  • Start date Start date
Click For Summary
SUMMARY

The discussion clarifies the concept of Big O notation as presented in "Prime Obsession" by John Derbyshire. It establishes that if function A is bounded by function B, then A is Big O of B, specifically stating that f(x) = O(g(x)) as x approaches infinity. The conversation also confirms that any multiple of a function that is Big O of another function remains Big O of that function. For example, both y = sin(x) and y = 2sin(x) are Big O of y = 1.

PREREQUISITES
  • Understanding of Big O notation
  • Familiarity with limits in calculus
  • Basic knowledge of trigonometric functions
  • Concept of asymptotic analysis
NEXT STEPS
  • Study the formal definition of Big O notation in detail
  • Learn about asymptotic notation and its applications in algorithm analysis
  • Explore the relationship between limits and Big O notation
  • Investigate examples of functions and their classifications in Big O terms
USEFUL FOR

Mathematicians, computer scientists, and students studying algorithms who seek to deepen their understanding of Big O notation and its implications in performance analysis.

2710
Messages
16
Reaction score
0
hi,

I am reading Prime Obsession and john talks about Big o. He goes if Function A is trapped within + and - of function B then F(A) is Big O of F(B)

So, y=Sin x is Big O of Y = 1 right?

He also goes that if F(A) is Big O of F(B) then so is any multiple of F(A).

so y=2sinx is also big O of Y=1? Even though is breaks the limit infinite amount of times?

Any clarification appreciated. Thanks!
 
Physics news on Phys.org
Yes, so the definition is not: "A is trapped between + and - the value of B", but "A is trapped between + and - a multiple of the value of B".

Technically speaking, we say that
f(x) = \mathcal O(g(x)) \qquad (x \to \infty)
if there exists some number M > 0 and some value x0 such that
x > x_0 \implies |f(x)| < M |g(x)|

If you have f(x) = c sin(x), then you can easily show that f(x) = O(c), where c is the constant function which takes value c everywhere.
Note that even g(x) = c sin(x) / xn is O(c) (for all n > 1), because for x > 1 we have |g(x)| < |f(x)| < c.

Analogously to the definition of limit as x goes to infinity vs. limit as x goes to some finite number a, we can also define
f(x) = \mathcal O(g(x)) \qquad (x \to a)
if there exists some number M > 0 and some value \delta &gt; 0 such that
|x - a| &lt; \delta \implies |f(x)| &lt; M |g(x)|
 
oh yeh, forgot about that. Thanks! :D
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
11
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K