IT 403 Asymptotic Notations- PPT
IT 403 Asymptotic Notations- PPT
July-Dec, 2022-23
IT 303 2
Prerequisite
• Basic knowledge of Algorithm and Procedure.
IT 303 3
Objective
• Understand and remember the term Complexity.
IT 303 4
Complexity of an Algorithm
Problem
Problem
Algorithm
A1 A2 A3 A4 A5 A6
Program in C
A. Space Complexity
• Space Complexity of an algorithm denotes the total space
used or needed by the algorithm for its working, for various
input sizes.
• when you are creating a variable then you need some space
for your algorithm to run.
B. Time Complexity
• The time complexity is the number of operations an
algorithm performs to complete its task with respect to input
size
- Worst Case
- Upper Bound
- At most
- Least Upper Most
- Average Case
- Exact Time
- Tight Bound
1. n2 + 5n + 7
2. n3 + 4 n2
3. 5 n2 + 3n + 20
4. ½ n2 + 3n
IT 303 19
References
1. Seymour Lipschutz; Data Structures; Schaum’s Outlines,
Tata McGraw Hill Publishing.
IT 303 20
IT 303 21