Question

In: Computer Science

Explain why 5x2 = Θ(2x2) is true and 5x2 ~ 2x2 is not true

Explain why 5x2 = Θ(2x2) is true and 5x2 ~ 2x2 is not true

Solutions

Expert Solution

The main idea of asymptotic analysis is to have a measure of efficiency of algorithms in terms of time and space complexity that doesn’t depend on machine specific constants(no matter how big they are), and doesn’t require algorithms to be implemented and time taken by programs to be compared. We have worst case, best case and average case time complexity. We will talk about the average case time complexity.

Θ Notation: The theta notation bounds a functions from above and below, so it defines exact asymptotic behavior.

Θ(g(n)) = {f(n): there exist positive constants c1, c2 and n0 such 
                 that 0 <= c1*g(n) <= f(n) <= c2*g(n) for all n >= n0}

So here 2 and 5 while measuring the asymptotic behaviour can be ignored and 5x2 and 2x2 can be treated as asymptotically equal as thy will have the same growth rate, their value does not depend on constants. So we can say that 5x2= Θ(2x2) = Θ(x2) = Θ(1000x2) the term that determines the growth rate is x2. we cannot write 5x2=Θ(1000000x), 1000000x will always be asymptotically smaller than 5x2 as machines run for a large values of x, neither can we write 5x2=Θ(x3) as theta bounds the function from above and below, but x3 binds 5x2 from above only. But 5x2= Θ(2x2) = Θ(x2) = Θ(1000x2) holds, ignoring constants.

But mathematically 5x2 and 2x2 are not equal, 2x2 is 5/2 times smaller than 5x2. But asymptotically they are same, i.e. they have same time/space complexity.


Related Solutions

Consider the following linear program. Maximize z= 5x1+ 3x2 subject to 3x1+ 5x2≤15 5x1+ 2x2≤10 –...
Consider the following linear program. Maximize z= 5x1+ 3x2 subject to 3x1+ 5x2≤15 5x1+ 2x2≤10 – x1+ x2≤2 x2≤2.5 x1≥0, x2≥0 a. Show the equality form of the model. b. Sketch the graph of the feasible region and identify the extreme point solutions. From this representation find the optimal solution. c. Analytically determine all solutions that derive from the intersection of two constraints or nonnegativity restrictions. Identify whether or not these solutions are feasible, and indicate the corresponding objective function...
Indicate the best answer and then explain (if true why it is true; if false provide...
Indicate the best answer and then explain (if true why it is true; if false provide a counter-example). [True, False or Uncertain] Part of the recent “Great Recession” was terribly high inflation rates approaching 10%.
Consider the following linear programming problem Maximize $4X1 + $5X2 Subject To 2X1 + 5X2 ≤...
Consider the following linear programming problem Maximize $4X1 + $5X2 Subject To 2X1 + 5X2 ≤ 40 hr Constraint A 3X1 + 3X2 ≤ 30 hr Constraint B X1, X2 ≥ 0 Constraint C if A and B are the two binding constraints. (Round to ONLY two digits after decimal points) a) What is the range of optimality of the objective function?   Answer ≤ C1/C2  ≤  Answer b) Suppose that the unit revenues for X1 and X2 are changed to $100 and...
Consider the following linear programming problem Maximize $4X1 + $5X2 Subject To 2X1 + 5X2 ≤...
Consider the following linear programming problem Maximize $4X1 + $5X2 Subject To 2X1 + 5X2 ≤ 40 hr Constraint A 3X1 + 3X2 ≤ 30 hr Constraint B X1, X2 ≥ 0 Constraint C if A and B are the two binding constraints. (Round to ONLY two digits after decimal points) a) What is the range of optimality of the objective function?   .......... ≤ C1/C2  ≤  ............ b) Suppose that the unit revenues for X1 and X2 are changed to $100 and...
Determine if each of the following statements is true or false. If it’s true, explain why....
Determine if each of the following statements is true or false. If it’s true, explain why. If it’s false explain why not, or simply give an example demonstrating why it’s false. (A correct choice of “T/F” with no explanation will not receive any credit.) (a) If a system has more equations than variables, its RREF must have a row of 0’s. (b) If a consistent system has more variables than equations, then it must have infinitely many solutions. (c) Consider...
Is this statement true or false? Explain why it is true or false. Two firms, 1...
Is this statement true or false? Explain why it is true or false. Two firms, 1 and 2, can control their emissions of a pollutant according to the following marginal cost equations: MC1 = $1*q1 and MC2 = $1/2*q2, where q1 and q2 are the amount of emissions controlled by firm 1 and firm 2, respectively. In addition, each firm is currently emitting 100 units of pollution and neither firm is controlling its emissions. Assuming the control authority has concluded...
Indicate if the following questions are True or False. Explain “Why” your answer is True or...
Indicate if the following questions are True or False. Explain “Why” your answer is True or False. 1. Marginal costs tend to increase faster than average variable costs as firms produce more. Why? 2. Competitive firms try to become monopolistic firms. Why? 3. For a monopoly, marginal revenue is less than average revenue or demand for any given level of firm production except for its first production unit. Why? 4. Some oligopolistic firms try to collude. Why?
Briefly explain the following statements(ie, are they true? Why and why not?) The stock of a...
Briefly explain the following statements(ie, are they true? Why and why not?) The stock of a company with a single zero-coupon bond issue is a call option on the assets, "The claim of the bondholders, which is subject to default, can be viewed as a default -free bond and a short put on the assets. The bondholders have implicitly written the stockholders a put on the assets.”
True/False (3 pts each) Indicate whether the statement is true or false. If true, explain why...
True/False (3 pts each) Indicate whether the statement is true or false. If true, explain why it is true and/or give examples to support it. If false, explain why it is false. 2.​An increase in plasma osmolality will cause more secretion of ADH.
True or False. If false explain why it is false and explain what is meant by...
True or False. If false explain why it is false and explain what is meant by all parts of the statement. The nuclear localization is a post-translational modification.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT