MHB Determing when f(x) and g(x) are in theta of h(x)

  • Thread starter Thread starter Lepros
  • Start date Start date
  • Tags Tags
    Theta
Click For Summary
If f(x) is in theta of h(x) and g(x) is in theta of h(x), then f(x) + g(x) is also in theta of h(x). The addition of the two functions does not affect their growth rates relative to h(x). A formal proof should begin by applying the definitions of theta notation for both f(x) and g(x). It's important to note that the functions involved are not limited to polynomials, which broadens the applicability of the result. This discussion is relevant to Discrete Mathematics, particularly in analyzing algorithmic resource consumption.
Lepros
Messages
3
Reaction score
0
If f(x) is in theta of h(x) and g(x) is in theta of h(x), then is f(x)+g(x) in theta of h(x)?

My initial thoughts on this are yes since the addition of the two functions shouldn't impact the value of the largest degree in both functions, as they would if they were multiplied, but I'm wondering what sort of proof technique I could use to prove this in a more mathematically sound way.
 
Mathematics news on Phys.org
You are right about the answer. However, you can't talk about the largest degree because f(x) and g(x) are not necessarily polynomials. To prove the statement formally, start by writing what $f(x)\in\Theta(h(x))$ and $g(x)\in\Theta(h(x))$ means by definition.

I believe this answer is suitable for the Discrete Mathematics section of this forum because $\Theta$ is often used in measuring discrete resources consumed by algorithms.