• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
July 21, 2022 |38.0K Views
Analysis of Algorithms | Set 2 (Worst, Average and Best Cases)
Description
Discussion


In the previous post, we discussed how Asymptotic analysis overcomes the problems of the naive way of analyzing algorithms. In this post, we will take an example of Linear Search and analyze it using Asymptotic analysis.
We can have three cases to analyze an algorithm: 
1) The Worst Case 
2) Average Case 
3) Best Case


Analysis of Algorithms _ Set 2 (Worst, Average and Best Cases) : https://www.geeksforgeeks.org/analysis-of-algorithms-set-2-asymptotic-analysis/

Read More