Analysis and Design of Algorithm (ADA) : Module-1
Analysis and Design of Algorithm (ADA) : Module-1
Module-1
Asymptotic Notations
1
OBJECTIVES
After completing this section, you will be able to
2
Growth of Functions
Class Name Example
Constant f(n)=1, or f(n)=7 or f(n)=500
3
Growth of functions(increasing order)
4
Asymptotic Notations- (O, Ω, and θ)
The basic Asymptotic Notations are:
1. O(Big-“Oh”) Notation. [Maximum number of steps to
solve a problem, (upper bound)]
6
Hint:
Log property: )
7
(Big)-O Notation
8
9
10
Ω Notation (example)
•
<n
11
Hint: since
12
Theta (Notation (Example)
•
13
Analysis and Design of Algorithm(ADA)
Module-1[Lecture-2]
Asymptotic Notations-Numerical
14
OBJECTIVES
After completing this section, you will be able to
Differentiate between ,
Numerical questions on .
15
) …
• …,,,mm𝑛(𝑛+1)/2
16
) …
Example2:
we can write
17
) …
Example3:
we can write
Note: Both side not getting same function, so for n! , tight bound
not possible, so we can write
18
) …
Example4:
we can write
Note: Again, Both side not getting same function, so for , tight
bound not possible, so we can write
19
Check your progress1:
•
20
Check your progress2
•
21
Check your progress3:
•
22
Check your progress4
𝑛)/2
23