DESIGN AND ANALYSIS OF
ALGORITHM (BCS503) -
INTROUCTION
MR. ABHAY CHAUDHARY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
NITRA TECHNICAL CAMPUS
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
DAA UNIT 1 for unit 1 time compixity PPT.pptx
Growth of Functions
Growth of Functions describes how the time or space requirements of an
algorithm
grow with the size of the input. The growth rate helps in understanding the
efficiency of
an algorithm.
Examples:
• Polynomial Growth: O(n2) - Example: Bubble Sort algorithm.
• Exponential Growth: O(2n) - Example: Recursive Fibonacci algorithm.
Asymptotic Notations
Asymptotic Notations are type of notation that allow you to analyze an algorithm’s running
time by identifying its behaviour as its input size grows. This is also referred to as an
algorithm’s growth rate.
We can compare space and time complexity using asymptotic analysis. It compares two
algorithms based on changes in their performance as the input size is increased or decreased.
There are mainly three asymptotic notations we use for the analysis of algorithms.
They are:
1. Big-O Notation (O-notation)
2. Omega Notation (Ω-notation)
3. Theta Notation (Θ-notation)
Big-O Notation (O-notation)
Big-O notation represents the upper bound of the running time of an
algorithm. Therefore, it gives the worst-case complexity of an algorithm.
•It is the most widely used notation for Asymptotic analysis.
•It specifies the upper bound of a function.
•The maximum time required by an algorithm or the worst-case time
complexity.
•It returns the highest possible output value(big-O) for a given input.
•Big-Oh (Worst Case): It is defined as the condition that allows an algorithm
to complete statement execution in the longest amount of time possible.
If f(n) describes the running time of an algorithm, f(n) is O(g(n)) if there
exist a positive constant C and n_0 such that, 0 ≤ f(n) ≤ cg(n) for all n ≥ n_0.
Omega Notation (Ω-Notation)
Omega notation represents the lower bound of the
running time of an algorithm. Thus, it provides the
best-case complexity of an algorithm.
The execution time serves as a lower bound on the
algorithm’s time complexity.
It is defined as the condition that allows an
algorithm to complete statement execution in the
shortest amount of time.
Let g and f be the function from the set of natural
numbers to itself. The function f is said to be Ω(g), if
there is a constant c > 0 and a natural number n0
such that c*g(n) ≤ f(n) for all n ≥ n0.
Theta Notation (Θ-Notation)
Theta notation encloses the function from above and
below. Since it represents the upper and the lower
bound of the running time of an algorithm, it is used for
analyzing the averagecase complexity of an algorithm.
Theta (Average Case) you add the running times for
each possible input combination and take the average in
the average case.
Let g and f be the function from the set of natural
numbers to itself. The function f is said to be Θ(g), if
there are constants c1, c2 > 0 and a natural number n0
such that c1* g(n) ≤ f(n) ≤ c2 * g(n) for all n ≥ n0

More Related Content

PPTX
Design and analysis of algorithms unit1.pptx
PPTX
Asymptotic Notations
PPTX
Algorithm Analysis
PPTX
Algorithm for the DAA agscsnak javausmagagah
PPTX
Asymptotic notations(Big O, Omega, Theta )
PPTX
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
PPTX
Measuring algorithm performance
PPTX
Daa unit 6_efficiency of algorithms
Design and analysis of algorithms unit1.pptx
Asymptotic Notations
Algorithm Analysis
Algorithm for the DAA agscsnak javausmagagah
Asymptotic notations(Big O, Omega, Theta )
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
Measuring algorithm performance
Daa unit 6_efficiency of algorithms

Similar to DAA UNIT 1 for unit 1 time compixity PPT.pptx (20)

PPTX
algorith oresentation with infographics.pptx
PPTX
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMS
PPTX
DAA Lecture2 bvased on the general concepts of DAA
PPTX
Data Structures and Algorithms for placements
PPTX
Data Structure Asymptotic Notations.pptx
PPTX
Asymptotic Analysis in Data Structure using C
PPTX
Asymptotic notation
PPTX
Algorithm analysis and design
PDF
Asymptotic Analysis of algorithm in competitive Programming
PPTX
data structures.pptx
PPTX
Algorithm.pptx
PPTX
Algorithm.pptx
PDF
Algorithm Analysis.pdf
PPT
Chapter 1 & 2 - Introduction dhjgsdkjfsaf.ppt
PPTX
Analysis of algorithn class 3
PPTX
Module-1.pptxbdjdhcdbejdjhdbchchchchchjcjcjc
PDF
12200223054_SrijanGho;sh_DAA_19.pdfkmkmm
PPT
Introduction to design and analysis of algorithm
PDF
Complexity
PPTX
Unit ii algorithm
algorith oresentation with infographics.pptx
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMS
DAA Lecture2 bvased on the general concepts of DAA
Data Structures and Algorithms for placements
Data Structure Asymptotic Notations.pptx
Asymptotic Analysis in Data Structure using C
Asymptotic notation
Algorithm analysis and design
Asymptotic Analysis of algorithm in competitive Programming
data structures.pptx
Algorithm.pptx
Algorithm.pptx
Algorithm Analysis.pdf
Chapter 1 & 2 - Introduction dhjgsdkjfsaf.ppt
Analysis of algorithn class 3
Module-1.pptxbdjdhcdbejdjhdbchchchchchjcjcjc
12200223054_SrijanGho;sh_DAA_19.pdfkmkmm
Introduction to design and analysis of algorithm
Complexity
Unit ii algorithm
Ad

Recently uploaded (20)

PPTX
C programming msc chemistry pankaj pandey
PPTX
Introduction to Fundamentals of Data Security
PDF
9 FinOps Tools That Simplify Cloud Cost Reporting.pdf
PPT
Technicalities in writing workshops indigenous language
PPT
What is life? We never know the answer exactly
PDF
Grey Minimalist Professional Project Presentation (1).pdf
PDF
REPORT CARD OF GRADE 2 2025-2026 MATATAG
PPTX
Basic Statistical Analysis for experimental data.pptx
PPTX
Statisticsccdxghbbnhhbvvvvvvvvvv. Dxcvvvhhbdzvbsdvvbbvv ccc
PPTX
ch20 Database System Architecture by Rizvee
PPTX
Stats annual compiled ipd opd ot br 2024
PPTX
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
PPTX
cp-and-safeguarding-training-2018-2019-mmfv2-230818062456-767bc1a7.pptx
PPT
2011 HCRP presentation-final.pptjrirrififfi
PPTX
transformers as a tool for understanding advance algorithms in deep learning
PPTX
Chapter security of computer_8_v8.1.pptx
PPTX
inbound6529290805104538764.pptxmmmmmmmmm
PPTX
ifsm.pptx, institutional food service management
PPTX
PPT for Diseases.pptx, there are 3 types of diseases
PDF
Teal Blue Futuristic Metaverse Presentation.pdf
C programming msc chemistry pankaj pandey
Introduction to Fundamentals of Data Security
9 FinOps Tools That Simplify Cloud Cost Reporting.pdf
Technicalities in writing workshops indigenous language
What is life? We never know the answer exactly
Grey Minimalist Professional Project Presentation (1).pdf
REPORT CARD OF GRADE 2 2025-2026 MATATAG
Basic Statistical Analysis for experimental data.pptx
Statisticsccdxghbbnhhbvvvvvvvvvv. Dxcvvvhhbdzvbsdvvbbvv ccc
ch20 Database System Architecture by Rizvee
Stats annual compiled ipd opd ot br 2024
9 Bioterrorism.pptxnsbhsjdgdhdvkdbebrkndbd
cp-and-safeguarding-training-2018-2019-mmfv2-230818062456-767bc1a7.pptx
2011 HCRP presentation-final.pptjrirrififfi
transformers as a tool for understanding advance algorithms in deep learning
Chapter security of computer_8_v8.1.pptx
inbound6529290805104538764.pptxmmmmmmmmm
ifsm.pptx, institutional food service management
PPT for Diseases.pptx, there are 3 types of diseases
Teal Blue Futuristic Metaverse Presentation.pdf
Ad

DAA UNIT 1 for unit 1 time compixity PPT.pptx

  • 1. DESIGN AND ANALYSIS OF ALGORITHM (BCS503) - INTROUCTION MR. ABHAY CHAUDHARY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING NITRA TECHNICAL CAMPUS
  • 21. Growth of Functions Growth of Functions describes how the time or space requirements of an algorithm grow with the size of the input. The growth rate helps in understanding the efficiency of an algorithm. Examples: • Polynomial Growth: O(n2) - Example: Bubble Sort algorithm. • Exponential Growth: O(2n) - Example: Recursive Fibonacci algorithm.
  • 22. Asymptotic Notations Asymptotic Notations are type of notation that allow you to analyze an algorithm’s running time by identifying its behaviour as its input size grows. This is also referred to as an algorithm’s growth rate. We can compare space and time complexity using asymptotic analysis. It compares two algorithms based on changes in their performance as the input size is increased or decreased. There are mainly three asymptotic notations we use for the analysis of algorithms. They are: 1. Big-O Notation (O-notation) 2. Omega Notation (Ω-notation) 3. Theta Notation (Θ-notation)
  • 23. Big-O Notation (O-notation) Big-O notation represents the upper bound of the running time of an algorithm. Therefore, it gives the worst-case complexity of an algorithm. •It is the most widely used notation for Asymptotic analysis. •It specifies the upper bound of a function. •The maximum time required by an algorithm or the worst-case time complexity. •It returns the highest possible output value(big-O) for a given input. •Big-Oh (Worst Case): It is defined as the condition that allows an algorithm to complete statement execution in the longest amount of time possible. If f(n) describes the running time of an algorithm, f(n) is O(g(n)) if there exist a positive constant C and n_0 such that, 0 ≤ f(n) ≤ cg(n) for all n ≥ n_0.
  • 24. Omega Notation (Ω-Notation) Omega notation represents the lower bound of the running time of an algorithm. Thus, it provides the best-case complexity of an algorithm. The execution time serves as a lower bound on the algorithm’s time complexity. It is defined as the condition that allows an algorithm to complete statement execution in the shortest amount of time. Let g and f be the function from the set of natural numbers to itself. The function f is said to be Ω(g), if there is a constant c > 0 and a natural number n0 such that c*g(n) ≤ f(n) for all n ≥ n0.
  • 25. Theta Notation (Θ-Notation) Theta notation encloses the function from above and below. Since it represents the upper and the lower bound of the running time of an algorithm, it is used for analyzing the averagecase complexity of an algorithm. Theta (Average Case) you add the running times for each possible input combination and take the average in the average case. Let g and f be the function from the set of natural numbers to itself. The function f is said to be Θ(g), if there are constants c1, c2 > 0 and a natural number n0 such that c1* g(n) ≤ f(n) ≤ c2 * g(n) for all n ≥ n0