Question

For the problem below it deals with finding the Upper Bound of equation T(n), what do these 3 lines mean? And how does this problem show us the Upper Bound?

T(n) = O(n2)

T(n) is O(n2)

T(n) €O(n)

The actual problem:

x Thn) = pn²tqnth pq, r o I we know that n<h² T(n)=ph² tantr bu defn Tin) < Pr²tqn²trn? 10 = T(m) = (ptq+n) n² Thn)= 0Cha) T

0 0
Add a comment Improve this question Transcribed image text
Answer #1

By definition of big O complexity :

f(n) = O(g(n)) if there exists a positive integer n0 and a positive constant c, such that f(n)≤c.g(n) ∀ n≥n0

Here , f(n) = p*n2 + q*n + r and g(n) = n2

As stated by you we can easily show that

f(n) <= c*g(n) where c = (p + q + r )

The three lines that you've mentioned actually refers to same thing that is the upper bound of T(n) is n2   

Talking about the question that what is the meaning of upper bound.

If we plot the graph of (p + q + r) * n2 vs p*n2 + q*n + r , the latter will lie below the former for all values of n.In other words,   (p + q + r) * n2 >= p*n2 + q*n + r   ∀ n

________________________________________________________

Please comment in case you have any doubt or anything is left unclear in my answer.

Add a comment
Know the answer?
Add Answer to:
For the problem below it deals with finding the Upper Bound of equation T(n), what do...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • That h(mn ) h ( m)n, h ( ) and that if m < n then h ( m ) < n ( n ) = . Exercise 2.7.4. [Used in ...

    that h(mn ) h ( m)n, h ( ) and that if m < n then h ( m ) < n ( n ) = . Exercise 2.7.4. [Used in Theorem 2.7.1.] Complete the missing part of Step 3 of the proof of Theorem 2.7.1. That is, prove that k is surjective. Exercise 2.7.5. [Used in Theorem 2.7.1.] Let Ri and R2 be ordered fields that satisf We were unable to transcribe this imageWe were unable to transcribe this...

  • For each problems segment given below, do the following: Create an algorithm to solve the problem...

    For each problems segment given below, do the following: Create an algorithm to solve the problem Identify the factors that would influence the running time, and which can be known before the algorithm or code is executed. Assign names (such as n) to each factor. Identify the operations that must be counted. You need not count every statement separately. If a group of statements always executes together, treat the group as a single unit. If a method is called, and...

  • Please help with solving Question 1 (A-C) Thank you! Unless otherwise specified in the problem, you...

    Please help with solving Question 1 (A-C) Thank you! Unless otherwise specified in the problem, you may assume that all solutions are at 25°C. 1. 50.0 mL of a pH 6.00 carbonic acid buffer is titrated with 0.2857 M NaOH, requiring 17.47 mL to reach the second equivalence point. a. Calculate the molarity of carbonic acid and bicarbonate in the original buffer. Carbonic acid: Bicarbonate: b. Calculate the pH of the solution after a total of 100.0 mL of 0.2857...

  • It is based on the multiple-choice question pasted below. Use the current 21 percent tax rate....

    It is based on the multiple-choice question pasted below. Use the current 21 percent tax rate. (28) in the current year, Acom, Inc., had the following items of income and expense! Sales $500,000 Cost of sales 250,000 Dividends received 25,000 The dividends were received from a corporation of which Acom owns 30%. In Acom's current yoar income tax rotum, what amount should be reported as income before special deductions? A. $525.000 B. $508,750 C. $275,000 D. $250.000 The correct answer...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT