PERFORMANCE ANALYSIS OF ALGORITHM

An algorithm is a set of instructions to solve a particular problem. There can be multiple solutions for a single problem.

The performance of an algorithm is determined by the resource required by an algorithm to perform a particular task. The most common resources taken into consideration for determining the performance of an algorithm are:

  • Time: The time required to complete the task of that algorithm (Time Complexity)
  • Space: Space required by the program and data (Space Complexity)

Other factors like complexity and feasibility to implement an algorithm are also considered.

Algorithms with the least time and space complexity are chosen.

Time complexity and space complexity is discussed in next article.

Relevant article:



Categories: Data Structure and Algorithm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: