Question

In: Computer Science

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.

Solutions

Expert Solution

Which so ever the bound it may be , most of the time the worst case input is only taken into consideration . So, while taking the case of sorting , it can be assumed that the worst case is an unsorted input list .

Now as per the question the problems tend to have a lower bound. For example , it is known that the lower bound of the comparison based sorting is Ω (nlogn), here in this case no assumptions regarding the particular type of comparison sorting algorithm that has been employed .Which so ever the algorithm it may be ( quick, merge , bubble ,etc.) the bound cannot be better than then Ω (nlogn) . Thus in general terms the lower bound tells of the time complexity of a problem and how hard is the problem .

Whereas in case of an algorithm , the upper bounds are taken into consideration .for example ,in case of bubble sorrt th eupper bound will be O(n^2) , while in case of merge sort the upper bound is O(nlogn) . Hence , the upper bounds tells the time complexity of the algorithm and how much efficient the algorithm is in solving problems .


Related Solutions

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?
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).
1. What is one big difference between how frogs and fish gastrulate? (1-2 sentences) (Hint -explain...
1. What is one big difference between how frogs and fish gastrulate? (1-2 sentences) (Hint -explain how each of these organisms gastrulates and the difference will be obvious!) 2. Number the following steps of germ cell development in the appropriate order. A. The primordial germ cells undergo meiosis. B. The primordial germ cells are specified C. The primordial germ cells migrate to where the gonads are developing 3. What are the signals that are required for the induction of the...
biochemistry : Explain with a drawing and 1-2 sentences the difference between “super secondray structure “...
biochemistry : Explain with a drawing and 1-2 sentences the difference between “super secondray structure “ and “domain”
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
1.) Explain the difference between a time domain signal and a frequency domain signal. 2.) When...
1.) Explain the difference between a time domain signal and a frequency domain signal. 2.) When would you select the frequency domain signal over the time domain signal.
Explain the difference between Upper Motor Neurons (UMN) and Lower Motor Neurons (LMN) in terms of...
Explain the difference between Upper Motor Neurons (UMN) and Lower Motor Neurons (LMN) in terms of their anatomical location and function; and (b) the difference in clinical symptoms that arise from damage or lesion to either UMNs or LMNs
1. Write at least two sentences in your own words to explain the difference between the...
1. Write at least two sentences in your own words to explain the difference between the confined aquifer and unconfined aquifer. 2. Answer True or False and justify your answer:     a. The porosity of a clayey soil is about 40% while the porosity of a medium sand soil is also 40%. Therefore, both of these soil types will have the same specific yield.     b. Confined aquifers have a larger specific yield than the one from the unconfined aquifer.
1. Explain in words the difference between a MBS and a CDO. 2. Give one example...
1. Explain in words the difference between a MBS and a CDO. 2. Give one example of a use of a FRA. (Why would anybody be interested in this derivative?)
Please explain what we mean by Time Complexity and Space Complexity. Please provide a short survey...
Please explain what we mean by Time Complexity and Space Complexity. Please provide a short survey of Complexity classes.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT