Algorithm Analysis
- Analysis of algorithm is the determination of the amount of time and space resources required to execute it.
- An Algorithm analysis is technique that is used to measure the performance of the algorithms.
Characteristics Of Algorithm
- Input: An algorithm takes zero or more inputs.
- Output: An algorithm genearates one or more outputs. at least one output.
- Finiteness: Algorithm must be terminate after finite numbers of steps for all cases.
- Definiteness: Each step of an algorithm must be percisely define.
- Effectiveness: Each instruction must be sufficiently basic, then it can be done exactly and in finte time by a person using only paper and pencil.
Running Time Analysis
- It is the processing time us size of the input. The input may be of different types based on problems.
- Common inputs are:
- Size of array.
- Number of element in a matrix.
- Polynomial degree.
- Numbers of bits in binary repersentation.
- Edges and vertices in a graph.
Performance Of Analysis:
- Space Complexity:- Deal with storage requirement .
- Time Complexity:- Deal with computing time.
Comments
Post a Comment