Big-O, Little-O, Big-Theta Question

  • Thread starter Thread starter PAR
  • Start date Start date
Click For Summary
SUMMARY

The discussion revolves around finding functions f and g that satisfy the conditions f ∈ O(g), f ∉ Θ(g), and f ∉ o(g). The participant explored various mathematical functions, including logarithms, exponents, and polynomials, but struggled to find a suitable pair. The solution involves identifying a function that has an upper bound of g without being overtaken by any constant multiple of g, while also not being overtaken by any constant multiple of f. The participant ultimately resolved the problem independently and requested to close the thread.

PREREQUISITES
  • Understanding of Big-O notation
  • Familiarity with Big-Theta and Little-o notation
  • Knowledge of mathematical functions and their growth rates
  • Basic concepts of asymptotic analysis
NEXT STEPS
  • Study the definitions and properties of Big-O, Big-Theta, and Little-o notations
  • Explore examples of oscillating functions in asymptotic analysis
  • Learn about advanced mathematical functions that can illustrate upper and lower bounds
  • Investigate the implications of constant factors in asymptotic notation
USEFUL FOR

Students and professionals in computer science, particularly those studying algorithms, complexity analysis, and mathematical foundations of computer science.

PAR
Messages
30
Reaction score
0

Homework Statement



Find functions f and g such that:

f belongs to O(g) AND f does not belong to \Theta(g) AND f does not belong to o(g).

Homework Equations


The Attempt at a Solution



Another way to phrase the question is replace the statement "f does not belong to \Theta(g)" with "f does not belong to \Omega(g)" simply by the definition of Big-Theta, and that f must belong to O(g). So the problem boils down to finding f such that it has an upperbound of g, but g is not so large that c*g (c is any constant) will always overtake f eventually, but g is not so small that it can be overtaken eventually by c*f where c is some constant.

I have tried logarithms, exponents and polynomials, but I can't find a solution. I also don't want to do a brute-force guess and check: guessing some f and some g. My only idea right now is to use some functions that oscillate, or act very strangely, but all of the examples I can think of don't fit the description of the problem, for example:

f(n) = 1 if n is odd and -1 if n is even

but I don't see how I can use that function in this problem.

Thanks.
 
Last edited:
Physics news on Phys.org
Just figured it out, you can close this thread.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
7K
  • · Replies 4 ·
Replies
4
Views
670
  • · Replies 6 ·
Replies
6
Views
6K
Replies
24
Views
7K
Replies
2
Views
1K