Performance Analysis and Measurement
Performance Analysis and Measurement: Overview
This topic covers concepts, such as Time Complexity, Big-O Notation for Complexity class, Time versus Space Complexity, Worst versus average Complexity, Constant Time Complexity, Concrete Measures for Performance, Linear Time Complexity, etc.
Important Questions on Performance Analysis and Measurement
The _________ of the algorithm is the function defined by the average number of steps taken on any instance of size n.

int i=0;
while(i<5){ //runs 5 times
i++;
}
time complexity of the loop is

The lenear time complexity is named as linear because its time complexity is of the order of .

If for an algorithm time complexity is given by O(n) then complexityof it is:

The general step wise procedure for Big-O runtime analysis :
- Eliminate all excluding the highest order terms.
- Express the maximum number of operations, the algorithm performs in terms of n.
- Figure out what the input is and what n represents.
- Remove all the constant factors.
Correct the Sequence

To measure Time complexity of an algorithm Big O notation is used which:

To calculate the running time find the maximum number of nested loops that go through a significant portion of the Output.

The complexity of Binary search algorithm is

The big-O value of O(1) is also called ______.
