Is f(n) an Upper or Lower Bound of g(n)?

  • Thread starter Thread starter asd1249jf
  • Start date Start date
  • Tags Tags
    Bound Upper bound
Click For Summary
SUMMARY

In the discussion, two functions are analyzed to determine if f(n) serves as an upper or lower bound for g(n). For the first case, f(n) = n - 100 is definitively an upper bound of g(n) = n - 200, as f(n) > g(n) for all n. In the second case, f(n) = log(2n) is a lower bound of g(n) = log(3n) for n > 0, since ln(2) < ln(3) ensures that f(n) < g(n) for all n > 0. The conclusion is that f(n) is an upper bound in the first case and a lower bound in the second.

PREREQUISITES
  • Understanding of asymptotic notation (Big O, Big Omega)
  • Knowledge of logarithmic functions and properties
  • Graphing functions to analyze their behavior
  • Basic calculus concepts related to limits and continuity
NEXT STEPS
  • Study asymptotic notation in depth, focusing on upper and lower bounds.
  • Learn about the properties of logarithmic functions, particularly their growth rates.
  • Practice graphing functions to visually interpret bounds and relationships.
  • Explore the implications of limits in calculus, especially regarding function behavior at critical points.
USEFUL FOR

Students in computer science, mathematicians, and anyone studying algorithm analysis or function behavior in mathematics.

asd1249jf

Homework Statement



1.
f(n) = n - 100
g(n) = n - 200

2.
f(n) = log(2n)
g(n) = log(3n)

n >= 0 in all cases
Find out if f(n) is an upperbound, lowerbound or both of g(n)

Homework Equations





The Attempt at a Solution



in case of 1, f(n) has to be an upperbound of g(n) because when graphed together, f(n) has to be an upperbound of g(n).

For 2, solution does not exist at n = 0. Otherwise, f(n) is a lower bound of g(n). Does this mean that f(n) is a lower bound or both?
 
Physics news on Phys.org
l46kok said:

Homework Statement



1.
f(n) = n - 100
g(n) = n - 200

2.
f(n) = log(2n)
g(n) = log(3n)

n >= 0 in all cases
Find out if f(n) is an upperbound, lowerbound or both of g(n)

Homework Equations





The Attempt at a Solution



in case of 1, f(n) has to be an upperbound of g(n) because when graphed together, f(n) has to be an upperbound of g(n).
Too vague. What you should say is "200> 100 so -100> -200 and n- 100> n- 200 for all n. Since f(n)> g(n) for all n, f is an upper bound of g."

For 2, solution does not exist at n = 0. Otherwise, f(n) is a lower bound of g(n). Does this mean that f(n) is a lower bound or both?
Is suspect that should not be "n\ge 0 for both cases" but only n> 0 for the second. As you point out, ln(0) is not defined so the problem makes no sense for n= 0.

ln(2)< ln(3) so ln(n)+ ln(2)< ln(n)+ ln(3) for all n> 0. ln(2n)< ln(3n) for all n> 0.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K