If we look at it any algorithms like sorting algorithms, search algorithms, or any algorithm, we measure the performance of four things.

  • Completeness – Will the algorithm provide a solution for a given problem?

  • Optimality – Will the algorithm find an optimal solution?

  • Time complexity – How much time takes to solve the problem?

  • Space complexity – How much memory require to solve the problem?

Try Problem-Solving approach Quiz