Computer Science, asked by IAmAmritesh6883, 11 months ago

Discuss best case, average case and worst case time analysis with example.

Answers

Answered by Anonymous
1

Answer:

In the simplest terms, for a problem where the input size is n: Best case = fastest time to complete, with optimal inputs chosen. For example, the best case for a sorting algorithm would be data that's already sorted. Worst case = slowest time to complete, with pessimal inputs chosen.

Explanation:

Answered by lovealisha
0

Answer:

here is ur answer ....

In computer science , best , worst and average cases of a given algorithm express what the resource usage is at least , at most and on average , respectively.

Usually the resource being considered is running time , but I could also be memory or other resource . Best case is the function which performs the minimum no. of steps on input data of size n.

Average performance and worst case performance are the most used in algorithm. Less widely found is best case performance but it does have uses. For example , where the best case of individual tanks are known , they can be used to improve the accurancy of an overall worst case analysis .

hope u like it.....

Similar questions