Algorithm
Algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get the desired output. Algorithms are generally created independent of underlying languages, i.e. an algorithm can be implemented in more than one programming language.
Amity School of Engineering & Technology
Characteristics of an Algorithm�
Amity School of Engineering & Technology
Algorithm Complexity�
Suppose X is an algorithm, and n is the size of input data, the time and space used by the algorithm X are the two main factors, which decide the efficiency of X.
The complexity of an algorithm f(n) gives the running time and/or the storage space required by the algorithm in terms of n as the size of input data.
Amity School of Engineering & Technology
Analysis of Algorithm
Analysis of algorithm is the process of analyzing the problem-solving capability of the algorithm in terms of the time and size required (the size of memory for storage while implementation). However, the main concern of analysis of algorithms is the required time or performance. Generally, we perform the following types of analysis −
Amity School of Engineering & Technology
Amity School of Engineering & Technology