SlideShare a Scribd company logo
4
Most read
9
Most read
10
Most read
ASYMPTOTIC NOTATIONS
Shashikant V. Athawale
Assistant Professor ,Computer Engineering Department
AISSMS College of Engineering,
Kennedy Road, Pune , MS, India - 411001
1
WHY IMPORTANT ??
 Give a simple characterization of an algorithm’s
efficiency.
 Allow comparison of performances of various
algorithms
2
ASYMPTOTIC NOTATIONS
1. Big-oh Notation (O)
2. Big-Omega Notation (Ω)
3. Theta Notation (Θ )
3
BIG-OH NOTATION (O)
 Gives the upper bound of
algorithm’s running time.
 Let f: N-> R be a function.
Then O(f) is the set of
functions
O(f) = { g: N-> R | there
exists a constant c and a
natural number n0 such
that
|g(n)| <= c|f(n)| for all
n>= n0 } 4
BIG-OMEGA NOTATION (Ω)
 Gives the lower bound of
algorithm’s running time.
 Let f, g: N-> R be functions
from the set of natural
numbers to the set of real
numbers.
We write g ∈ Ω(f) if and
only if there exists some
real number n0 and a
positive real constant c
such that
g(n)| >= c|f(n)|
for all n in N satisfying n>=
n0.
5
THETA NOTATION (Θ )
If f and g are functions
from S to the real numbers,
then we write g ∈ Θ(f) if and
only if there exists some
real number n0 and positive
real constants C and C’ such
that
C|f(n)|<= |g(n)| <=C’|f(n)|
for all n in S satisfying n>=
n0 .
Thus, Θ(f) = O(f) ∩ Ω(f)
6
7
notation intuition
O (Big-Oh) f(n) ≤ g(n)
Ω (Big-Omega) f(n) ≥ g(n)
Θ (Theta) f(n) = g(n)
INTUITION ABOUT THE NOTATIONS
LITTLE OH NOTATION (O)
little-Oh Defn:
f(n) = o(g(n))
 If for all positive constants
c there exists an n0 such that
f(n) < c· g(n) for all n ≥ n0.
8
LITTLE OMEGA NOTATION (Ω)
little-Omega Defn:
f(n) = Ω(g(n))
 If for all positive constants
c there exists an n0 such that
f(n) > c· g(n) for all n ≥ n0.
9
TIME COMPLEXITY
Dependency of
 the time it takes to solve a problem
 as a function of the problem dimension/size
Examples:
 Sorting a list of length n
 Searching a list of length n
 Multiplying a n×n matrix by an n×1 vector
Time to solve problem might depend on data
 Average-case time
 Best-case time
 data is well suited for algorithm (can’t be counted on)
 Worst-case time
 data is such that algorithm performs poorly (time-wise)
Worst-Case gives an upper bound as to how much time
will be needed to solve any instance of the problem 10
Thank You
11

More Related Content

PPTX
asymptotic notation
PPT
Asymptotic analysis
PPT
Asymptotic Notation and Complexity
PPT
Asymptotic notations
PPT
Data Structures and Algorithm Analysis
DOC
Time and space complexity
PPT
how to calclute time complexity of algortihm
PDF
Introduction to Algorithms Complexity Analysis
asymptotic notation
Asymptotic analysis
Asymptotic Notation and Complexity
Asymptotic notations
Data Structures and Algorithm Analysis
Time and space complexity
how to calclute time complexity of algortihm
Introduction to Algorithms Complexity Analysis

What's hot (20)

PPTX
Priority Queue in Data Structure
PPTX
Asymptotic Notation
PPTX
Recursion
PPTX
Data structure - Graph
PPTX
Doubly Linked List
PPT
Sum of subsets problem by backtracking 
PDF
All pairs shortest path algorithm
PPTX
Red black trees
PPT
Bellman Ford's Algorithm
PPTX
recurrence relations
PDF
Time and Space Complexity
PPTX
CLR AND LALR PARSER
PPT
Spanning trees
PPT
Minimum spanning tree
PPT
Data Structures- Part5 recursion
PPTX
Input-Buffering
PPTX
Prims and kruskal algorithms
PPTX
heap Sort Algorithm
PPTX
Regular expressions
PPTX
Knapsack problem using greedy approach
Priority Queue in Data Structure
Asymptotic Notation
Recursion
Data structure - Graph
Doubly Linked List
Sum of subsets problem by backtracking 
All pairs shortest path algorithm
Red black trees
Bellman Ford's Algorithm
recurrence relations
Time and Space Complexity
CLR AND LALR PARSER
Spanning trees
Minimum spanning tree
Data Structures- Part5 recursion
Input-Buffering
Prims and kruskal algorithms
heap Sort Algorithm
Regular expressions
Knapsack problem using greedy approach
Ad

Similar to Asymptotic notation (20)

PPTX
Analysis of algorithn class 3
PPT
Asymptoptic notations
PPTX
algorith oresentation with infographics.pptx
PPTX
ASYMPTOTIC NOTATION new topic in daa.pptx
PPTX
Asymptotic notation
PPTX
Asymptotic Notation
PDF
Asymptotic Analysis of algorithm in competitive Programming
PPTX
Daa unit 6_efficiency of algorithms
PPTX
Asymptotic Notations
PDF
Lecture 4 asymptotic notations
PPTX
Data Structure Asymptotic Notations.pptx
PDF
Lecture 3(a) Asymptotic-analysis.pdf
PPTX
Algorithm big o
PPTX
Asymptotic Analysis in Data Structure using C
PDF
2. Asymptotic Notation- Analysis of Algorithms.pdf
PPTX
Design and analysis of algorithms unit1.pptx
PDF
1ST_UNIT_DAdefewfrewfgrwefrAdfdgfdsgevedr (2).pdf
PPTX
Data Structures and Algorithms for placements
PPTX
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
Analysis of algorithn class 3
Asymptoptic notations
algorith oresentation with infographics.pptx
ASYMPTOTIC NOTATION new topic in daa.pptx
Asymptotic notation
Asymptotic Notation
Asymptotic Analysis of algorithm in competitive Programming
Daa unit 6_efficiency of algorithms
Asymptotic Notations
Lecture 4 asymptotic notations
Data Structure Asymptotic Notations.pptx
Lecture 3(a) Asymptotic-analysis.pdf
Algorithm big o
Asymptotic Analysis in Data Structure using C
2. Asymptotic Notation- Analysis of Algorithms.pdf
Design and analysis of algorithms unit1.pptx
1ST_UNIT_DAdefewfrewfgrwefrAdfdgfdsgevedr (2).pdf
Data Structures and Algorithms for placements
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
Ad

More from Dr Shashikant Athawale (20)

PPT
multi threaded and distributed algorithms
PPT
Amortized analysis
PPT
Complexity theory
PPT
Divide and Conquer
PPT
Model and Design
PPT
Fundamental of Algorithms
PPT
CUDA Architecture
PPT
Parallel Algorithms- Sorting and Graph
PPT
Analytical Models of Parallel Programs
PPT
Basic Communication
PPT
Parallel Processing Concepts
PPT
Parallel Processing Concepts
PPT
Dynamic programming
PPT
Parallel algorithms
PPT
Greedy method
PPT
Divide and conquer
PPT
Branch and bound
PPT
String matching algorithms
PPTX
Advanced Wireless Technologies
multi threaded and distributed algorithms
Amortized analysis
Complexity theory
Divide and Conquer
Model and Design
Fundamental of Algorithms
CUDA Architecture
Parallel Algorithms- Sorting and Graph
Analytical Models of Parallel Programs
Basic Communication
Parallel Processing Concepts
Parallel Processing Concepts
Dynamic programming
Parallel algorithms
Greedy method
Divide and conquer
Branch and bound
String matching algorithms
Advanced Wireless Technologies

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT
Mechanical Engineering MATERIALS Selection
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
Project quality management in manufacturing
PPTX
additive manufacturing of ss316l using mig welding
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Welding lecture in detail for understanding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Mechanical Engineering MATERIALS Selection
Operating System & Kernel Study Guide-1 - converted.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
Foundation to blockchain - A guide to Blockchain Tech
Embodied AI: Ushering in the Next Era of Intelligent Systems
UNIT 4 Total Quality Management .pptx
Lesson 3_Tessellation.pptx finite Mathematics
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Welding lecture in detail for understanding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

Asymptotic notation

  • 1. ASYMPTOTIC NOTATIONS Shashikant V. Athawale Assistant Professor ,Computer Engineering Department AISSMS College of Engineering, Kennedy Road, Pune , MS, India - 411001 1
  • 2. WHY IMPORTANT ??  Give a simple characterization of an algorithm’s efficiency.  Allow comparison of performances of various algorithms 2
  • 3. ASYMPTOTIC NOTATIONS 1. Big-oh Notation (O) 2. Big-Omega Notation (Ω) 3. Theta Notation (Θ ) 3
  • 4. BIG-OH NOTATION (O)  Gives the upper bound of algorithm’s running time.  Let f: N-> R be a function. Then O(f) is the set of functions O(f) = { g: N-> R | there exists a constant c and a natural number n0 such that |g(n)| <= c|f(n)| for all n>= n0 } 4
  • 5. BIG-OMEGA NOTATION (Ω)  Gives the lower bound of algorithm’s running time.  Let f, g: N-> R be functions from the set of natural numbers to the set of real numbers. We write g ∈ Ω(f) if and only if there exists some real number n0 and a positive real constant c such that g(n)| >= c|f(n)| for all n in N satisfying n>= n0. 5
  • 6. THETA NOTATION (Θ ) If f and g are functions from S to the real numbers, then we write g ∈ Θ(f) if and only if there exists some real number n0 and positive real constants C and C’ such that C|f(n)|<= |g(n)| <=C’|f(n)| for all n in S satisfying n>= n0 . Thus, Θ(f) = O(f) ∩ Ω(f) 6
  • 7. 7 notation intuition O (Big-Oh) f(n) ≤ g(n) Ω (Big-Omega) f(n) ≥ g(n) Θ (Theta) f(n) = g(n) INTUITION ABOUT THE NOTATIONS
  • 8. LITTLE OH NOTATION (O) little-Oh Defn: f(n) = o(g(n))  If for all positive constants c there exists an n0 such that f(n) < c· g(n) for all n ≥ n0. 8
  • 9. LITTLE OMEGA NOTATION (Ω) little-Omega Defn: f(n) = Ω(g(n))  If for all positive constants c there exists an n0 such that f(n) > c· g(n) for all n ≥ n0. 9
  • 10. TIME COMPLEXITY Dependency of  the time it takes to solve a problem  as a function of the problem dimension/size Examples:  Sorting a list of length n  Searching a list of length n  Multiplying a n×n matrix by an n×1 vector Time to solve problem might depend on data  Average-case time  Best-case time  data is well suited for algorithm (can’t be counted on)  Worst-case time  data is such that algorithm performs poorly (time-wise) Worst-Case gives an upper bound as to how much time will be needed to solve any instance of the problem 10