Open In App

Why the Analysis of Algorithm is important?

In this article, we will discuss why algorithm and its analysis is important? In the analysis of the algorithm, it generally focused on CPU (time) usage, Memory usage, Disk usage, and Network usage. All are important, but the most concern is about the CPU time. Be careful to differentiate between:

Note: Complexity affects performance but not vice-versa.



Algorithm Analysis:
Algorithm analysis is an important part of computational complexity theory, which provides theoretical estimation for the required resources of an algorithm to solve a specific computational problem. Analysis of algorithms is the determination of the amount of time and space resources required to execute it.

Why Analysis of Algorithms is important?



Types of Algorithm Analysis:

  1. Best case 
  2. Worst case
  3. Average case

          Average case = all random case time / total no of case

           

Article Tags :