1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alexxandr [17]
3 years ago
15

Show that if f(n) is O(g(n)) and d(n) is O(h(n)) then f(n) + d(n) is O(g(n) + h(n)).

Mathematics
1 answer:
GaryK [48]3 years ago
3 0
f(n)\in\mathcal O(g(n)) is to say

|f(n)|\le M_1|g(n)|

for all n beyond some fixed n_1.

Similarly, d(n)\in\mathcal O(h(n)) is to say

|d(n)|\le M_2|h(n)|

for all n\ge n_2.

From this we can gather that

|f(n)+d(n)|\le|f(n)|+|d(n)|\le M_1|g(n)|+M_2|h(n)|\le M(|g(n)|+|h(n)|)

where M is the larger of the two values M_1 and M_2, or M=\max\{M_1,M_2\}. Then the last term is bounded above by

M(|g(n)|+|h(n)|)\le2M\max\{|g(n)|,|h(n)|\}

from which it follows that

f(n)+d(n)\in\mathcal O(\max\{g(n),h(n)\})
You might be interested in
18. 50 - [7 + (32 - 2)]
Nataly_w [17]

Answer:

13

Step-by-step explanation:

32-2=30

30+7=37

50-37=13

7 0
3 years ago
Read 2 more answers
Find the median of these numbers 5,9,13,7,5,7
Troyanec [42]

Answer:

The mean is 7

Step-by-step explanation:

5,5,7,7,9,13

9-7 is going to get 7

3 0
3 years ago
Which expression is equivalent to 3x – 5?
Scrat [10]

the equation 2x-4-1+x would be the answer

Because 2x+x = 3x and -4-1 = 5, the result would be 3x-5

6 0
2 years ago
Read 2 more answers
What is 805 thousandths in a decimal form
Elenna [48]
805 thousandths in a decimal form is 0.805. 
5 0
3 years ago
Aiden and gia went to a clothing store where all the items had a 7% sales tax added to their cost. before the tax was added aide
pshichka [43]

Answer:

a. $34.24

b. $33

Step-by-step explanation:

Hope this helps

5 0
3 years ago
Read 2 more answers
Other questions:
  • Katie wants to collect over 100100100 seashells. She already has 343434 seashells in her collection. Each day, she finds 121212
    13·2 answers
  • Find the volume of this cylinder. Give your answer to one decimal place.
    9·1 answer
  • What is the answer ;_;
    5·2 answers
  • Original price: $325.50; Markdown; 15%
    9·2 answers
  • What is the solution of the equation? W-2 = -3<br> a. -3/2<br> b. -5<br> c. -1<br> d. 0
    9·1 answer
  • I have a couple more questions and I don’t have time to answer them all lol, my science class starts in 15 minutes.
    10·2 answers
  • What is the value of x??? plzzz help
    6·1 answer
  • Can you help me with this please
    13·1 answer
  • PLEASE HELP!!!!!!!!!!!!! ​
    15·2 answers
  • Please help will give brainliest.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!