The execution of an algorithm requires various resources of the computer system to complete the task. The performance of algorithms depends on the use of these resources. The important resources which contribute to the efficiency of the algorithms are the memory space and the time required for successful execution of algorithm. The efficiency of an algorithm is measured in terms of the time and the space required for its execution therefore analysis of algorithms is divided into two categories