Question

In: Computer Science

In computer science, when is the right time to find the Upper bound, Lower bound, and...

In computer science, when is the right time to find the Upper bound, Lower bound, and Tight bound? And what does Tight Bound show us?

Solutions

Expert Solution

Upper bound (big-O)-  This notation bounds the growth of the running time of an algorithm only from above. The right time to find upper bound, when we want to bound the running time from above only or need worst-case running time.

It gives the worst-case running time.

This notation provides an asymptotic upper bound and we can say that an algorithm takes at most a certain amount of time.

Formal Definition :

O(g(n)) = { f(n): there exist positive constants c and n0 such that 0 <= f(n) <= c*g(n) for all n >= n0}

Lower bound (big-Ω)- This notation bounds growth of the running time of an algorithm only from below. The right time to find lower bound, when we want to bound the running time from below only or need best-case running time.

It gives the best-case running time.  

This notation provides an asymptotic lower bound and we can say that an algorithm takes at least a certain amount of time.

Formal Definition :

Ω (g(n)) = {f(n): there exist positive constants c and n0 such that 0 <= c*g(n) <= f(n) for all n >= n0}.

Tight bound (Big-θ)- This notation bounds the growth of the running time of an algorithm only from above and below. The right time to find this bound, when we want to bound the running time from above and below or need average-case running time.

It gives the average-case running time.

Formal Definition :

Θ(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}

Here,

The running time must be sandwiched between c1*g(n) and c2*g(n) for large values of n (n >= n0).

Asymptotically Tight bound on the running time.

"Asymptotically" because it matters for only large values of n.

"Tight bound" because we have sandwiched the running time to within a constant factor above and below.


Related Solutions

Please find the Lower AND Upper bound of the above number set: 36, 52, 60, 60,...
Please find the Lower AND Upper bound of the above number set: 36, 52, 60, 60, 62, 65, 65, 65, 70, 72, 74, 75, 75, 76, 76, 78, 79, 79, 80, 80, 82, 83, 84, 85, 88, 90, 90, 92, 95, 98, 99 (NOTE: The answer is not 36 nor 42 for low bound nor 81.37 nor 110 for the upper bound. These were incorrect answers.)
Write a function divisibleBy3 with 2 positive integer inputs, a lower bound and an upper bound....
Write a function divisibleBy3 with 2 positive integer inputs, a lower bound and an upper bound. Generate a list of integers from the lower bound to the upper bound and determine how many numbers in the list have a remainder equal to zero when dividing by 3. Hint: Use a loop and the MATLAB built-in function rem to calculate the remainder after division. The remainder of N divided by P is rem(N,P).
Write a program in JAVA that prompts the user for a lower bound and an upper...
Write a program in JAVA that prompts the user for a lower bound and an upper bound. Use a loop to output all of the even integers within the range inputted by the user on a single line.
Given the data listed in the table, calculate the lower and upper bound for the 95%...
Given the data listed in the table, calculate the lower and upper bound for the 95% confidence interval for the mean at X = 7. The regression equation is given by y^ = b0 + b1x. Regression Statistics Statistic Value b0 4.3 b1 0.50 x 5.36 se 3.116 SSX 25.48 SST 58.25 n 40 Give your answers to 2 decimal places. You may find this Student's t distribution table useful. a) Lower bound = b)Upper bound =
Given the integral 1/x dx upper bound 2 lower bound 1 (a) use simpson's rule to...
Given the integral 1/x dx upper bound 2 lower bound 1 (a) use simpson's rule to approximate the answer with n=4 Formula:f(x)=1/3[f(x0)+4f(x1)+2f(x2)+...+f(xn)]Δx(keep answer to 6 decimals) b)how large is n in order for the error of Simpsons rule for the given integral is no more than 0.000001 Formula: |Es|=(k)(b-a)^5/(180 n^4), where |f^4(x)≤k| please show all work and steps
Write matlab program to compute ∫f(x)dx lower bound a upper bound b using simpson method and...
Write matlab program to compute ∫f(x)dx lower bound a upper bound b using simpson method and n points. Then, by recomputing with n/2 points and using richardson method, display the exact error and approximate error. (Test with a=0 b=pi f(x)=sin(x))
R studio. The file I read contains the lower and upper bound of 10,000 98% confidence...
R studio. The file I read contains the lower and upper bound of 10,000 98% confidence intervals for a population mean. All intervals are constructed from samples of size 30 from the same population. As a comment, how many of the 10,000 intervals do we expect to contain the true population mean? Use if else function to determine if the true population mean of 50 is contained in each interval. If an interval contains the true population mean , then...
Your sales and cost accounting team have come up with upper and lower bound estimates for...
Your sales and cost accounting team have come up with upper and lower bound estimates for sales, prices and costs as shown in the table below. You are considering a project that requires an initial investment of $10,000. t is depreciable over four years using the straight line depreciation. The discount rate is 10%. Your tax bracket is 34% and you receive a tax credit for negative earnings in the year in which the loss occurs. Base Case Lower Bound...
In one or 2 sentences, explain the difference between upper bound of the time complexity of...
In one or 2 sentences, explain the difference between upper bound of the time complexity of a problem and upper bound on the time complexity of an algorithm to solve that problem.
How is the variational principle applied? Question 3 options: a) To find an upper bound for...
How is the variational principle applied? Question 3 options: a) To find an upper bound for the ground-state kinetic energy b) To find an upper bound for the ground-state potential energy c) To find a lower bound for the ground-state kinetic energy d) To find a lower bound for the ground-state potential energy e) To find an upper bound for the ground-state total energy
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT