You are on page 1of 17

Algorithm Analysis and Computation Complexity

CSE 205 K1R03, K1R04, K1R14

Algorithm Analysis

Big O

Big

Big

Finding complexities

Finding complexities

Types of analysis The Best Case


Algorithm requires minimum number of steps. The Worst Case Algorithm requires maximum number of steps. The Average Case Falls between best and average case.
Amortized: the running time for a series of

executions, divided by the number of executions. (P:83,S 2.9, Ref-2)

Example
Searching in Array.

Calculate Computation Complexity

More links are there 1. Review of asymptotes


2. Math Used 3. Recurrence solving

You might also like