SlideShare a Scribd company logo
6
Most read
9
Most read
Design and analysis of
algorithms
Introduction to DAA Lec 1
Why we need to study this subject?
 This course introduces the design and analysis of algorithms.
 Perhaps it is meaningful to discuss a very important question first: Why should we
study algorithms?
 It is commonly believed that in order to obtain high speed computation, it suffices
to have a very high speed computer.
 This, however, is not entirely true. We illustrate this with an experiment whose
results make it clear that a good algorithm implemented on a slow computer may
perform much better than a bad algorithm implemented on a fast computer.
Design and analysis of algorithm
Problem
Data structure
Algorithm
Program
Computer
+
Input Output
What is algorithm
 The word algorithm comes from name of Persian author “Abu Jaffar Mohammad” in
825AD.
 Def
An algorithm is a sequence of computational steps that transform the input into
the output.
 Another def.
Finite set of steps to solve a problem.
What is analysis
 Analysis is process of comparing two algorithms w.r.t time and space.
 Analysis can be of two types
1:Prior
Analysis before execution
Independent of hardware just focus on iterations
Give approx. value
2:Posterior
Analysis after execution
Always depend on hardware
Give exact value
Fundamentals for algorithm
 Input (zero input or more input)
 Output (at least one)
 Definiteness ( no confusion for computer, unambigious)
 Finiteness (always terminate)
 Effectiveness
Design of algorithms
Different ways of representing an algorithm is
 Natural language
 Pseudo code
 Flow chart
Fields in this course
 How to device algorithm?
 How to validate?
 How to analyse ?
 How to test?
Difference between algorithm, pseudo
code and program
 Algorithm
 A step by step method to
solve a problem .
 Its written in natural
language.
 For example a recipe for
preparing a dish.
 Program
 It is exact code in
any particular
programming
language.
 Pseudo code
 It is simple version of
programing code that does
not require any strict
programming language
syntax.

More Related Content

PPTX
Process scheduling
Deepika Balichwal
 
PDF
Pipeline and data hazard
Waed Shagareen
 
PPTX
Memory management in operating system | Paging | Virtual memory
Shivam Mitra
 
PPTX
Introduction to operating system, system calls and interrupts
Shivam Mitra
 
PPTX
Page replacement algorithms
sangrampatil81
 
PPTX
process control block
Vikas SHRIVASTAVA
 
PPT
Scheduling algorithms
Chankey Pathak
 
PPTX
Scheduling
pradeepa velmurugan
 
Process scheduling
Deepika Balichwal
 
Pipeline and data hazard
Waed Shagareen
 
Memory management in operating system | Paging | Virtual memory
Shivam Mitra
 
Introduction to operating system, system calls and interrupts
Shivam Mitra
 
Page replacement algorithms
sangrampatil81
 
process control block
Vikas SHRIVASTAVA
 
Scheduling algorithms
Chankey Pathak
 
Scheduling
pradeepa velmurugan
 

What's hot (20)

PPTX
Unix ppt
sudhir saurav
 
PPT
Software coding and testing
Sandeep Kumar Nayak
 
PPTX
Process management in operating system | process states | PCB | FORK() | Zomb...
Shivam Mitra
 
PPTX
What are thread libraries in operating system
geethasenthil2706
 
PDF
Process Scheduling in OS
Rashmi Bhat
 
PPTX
Operating Systems: Process Scheduling
Damian T. Gordon
 
PPT
Process threads operating system.
Reham Maher El-Safarini
 
PPTX
Memory management ppt
ManishaJha43
 
PPTX
CPU Scheduling in OS Presentation
usmankiyani1
 
PPTX
Assembly language
shashank puthran
 
PPTX
Context switching
DarakhshanNayyab
 
PPTX
Page replacement algorithms
Piyush Rochwani
 
PPTX
Assembly language progarmming
Azmeyer
 
PPTX
Automata theory - CFG and normal forms
Akila Krishnamoorthy
 
PPTX
Linux operating system ppt
Achyut Sinha
 
PPTX
Windows process-scheduling
Talha Shaikh
 
PPTX
Quality and productivity factors
NancyBeaulah_R
 
PPT
Introduction to System Calls
Vandana Salve
 
PPTX
Cpu scheduling in operating System.
Ravi Kumar Patel
 
PPTX
Top down parsing
LakshmiSamivel
 
Unix ppt
sudhir saurav
 
Software coding and testing
Sandeep Kumar Nayak
 
Process management in operating system | process states | PCB | FORK() | Zomb...
Shivam Mitra
 
What are thread libraries in operating system
geethasenthil2706
 
Process Scheduling in OS
Rashmi Bhat
 
Operating Systems: Process Scheduling
Damian T. Gordon
 
Process threads operating system.
Reham Maher El-Safarini
 
Memory management ppt
ManishaJha43
 
CPU Scheduling in OS Presentation
usmankiyani1
 
Assembly language
shashank puthran
 
Context switching
DarakhshanNayyab
 
Page replacement algorithms
Piyush Rochwani
 
Assembly language progarmming
Azmeyer
 
Automata theory - CFG and normal forms
Akila Krishnamoorthy
 
Linux operating system ppt
Achyut Sinha
 
Windows process-scheduling
Talha Shaikh
 
Quality and productivity factors
NancyBeaulah_R
 
Introduction to System Calls
Vandana Salve
 
Cpu scheduling in operating System.
Ravi Kumar Patel
 
Top down parsing
LakshmiSamivel
 
Ad

Similar to Design and analysis of algorithm lec 1.pptx (20)

PPTX
Chapter 09 design and analysis of algorithms
Praveen M Jigajinni
 
PPT
chapter 1
yatheesha
 
PDF
Algorithm.pdf
MIT,Imphal
 
PDF
Algorithm Analysis.pdf
NayanChandak1
 
PPTX
01 Introduction to analysis of Algorithms.pptx
ssuser586772
 
PPTX
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
PPTX
Programming C ppt for learning foundations
ssuser65733f
 
PDF
Introduction to Algorithms Complexity Analysis
Dr. Pankaj Agarwal
 
PDF
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
PPTX
Algorithm - Introduction
Madhu Bala
 
PPTX
Design and analysis of algorithms Module-I.pptx
DhanushreeAN1
 
PPT
Ch1 principles of software development
Hattori Sidek
 
PPTX
Introduction ,characteristics, properties,pseudo code conventions
swapnac12
 
PPT
1. Introduction to Problem Solving first lesson .ppt
Primary2Primary2
 
PDF
A gentle introduction to algorithm complexity analysis
Lewis Lin 🩊
 
PPTX
Algorithm itabq
mckennadglyn
 
PDF
Introduction to data structure
A. S. M. Shafi
 
PPTX
Algorithm and pseudo codes
hermiraguilar
 
PPTX
2-Algorithms and Complexity analysis.pptx
231b209
 
PPTX
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
Chapter 09 design and analysis of algorithms
Praveen M Jigajinni
 
chapter 1
yatheesha
 
Algorithm.pdf
MIT,Imphal
 
Algorithm Analysis.pdf
NayanChandak1
 
01 Introduction to analysis of Algorithms.pptx
ssuser586772
 
UNIT-1.pptx python for engineering first year students
SabarigiriVason
 
Programming C ppt for learning foundations
ssuser65733f
 
Introduction to Algorithms Complexity Analysis
Dr. Pankaj Agarwal
 
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com
 
Algorithm - Introduction
Madhu Bala
 
Design and analysis of algorithms Module-I.pptx
DhanushreeAN1
 
Ch1 principles of software development
Hattori Sidek
 
Introduction ,characteristics, properties,pseudo code conventions
swapnac12
 
1. Introduction to Problem Solving first lesson .ppt
Primary2Primary2
 
A gentle introduction to algorithm complexity analysis
Lewis Lin 🩊
 
Algorithm itabq
mckennadglyn
 
Introduction to data structure
A. S. M. Shafi
 
Algorithm and pseudo codes
hermiraguilar
 
2-Algorithms and Complexity analysis.pptx
231b209
 
Design and Analysis of Algorithm ppt for unit one
ssuserb7c8b8
 
Ad

Recently uploaded (20)

PDF
Bacteria, Different sizes and Shapes of of bacteria
Vishal Sakhare
 
PDF
A water-rich interior in the temperate sub-Neptune K2-18 b revealed by JWST
Sérgio Sacani
 
PPTX
WEEK 4-MONO HYBRID AND DIHYBRID CROSS OF GREGOR MENDEL
AliciaJamandron1
 
PDF
Analysing Python Machine Learning Notebooks with Moose
ESUG
 
PPTX
Discovery of Novel Antibiotics from Uncultured Microbes.pptx
SaakshiSharma26
 
PPTX
scadadd on patiala punjab sarabjeet sarbjeet sarvbjeet.pptx
sarabjeet4747
 
PPT
Chemical bonding and molecular structure
karthikeyan
 
PPTX
2019 Upper Respiratory Tract Infections.pptx
jackophyta10
 
PDF
The Cosmic Symphony: How Photons Shape the Universe and Our Place Within It
kutatomoshi
 
PDF
urticaria-1775-rahulkalal-250606145215-0ff37bc9.pdf
GajananPatil761074
 
PDF
Pakistan Journal of Zoological Sciences, Volume 1, Issue 1 (2025)
IJSmart Publishing Company
 
PPTX
Introduction to biochemistry.ppt-pdf_shotrs!
Vishnukanchi darade
 
PDF
PPT-7-Rocks-and-Minerals Lesson 5 Quarter 1
CarlVillanueva11
 
PDF
JADESreveals a large population of low mass black holes at high redshift
Sérgio Sacani
 
PDF
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
ESUG
 
PDF
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
ESUG
 
PDF
Integrating Executable Requirements in Prototyping
ESUG
 
PPTX
GENETIC TECHNOLOGY A level biology
JuthikaMal
 
PPTX
INTRO-TO-CRIM-THEORIES-OF-CRIME-2023 (1).pptx
ChrisFlickIII
 
PDF
N-enhancement in GN-z11: First evidence for supermassive stars nucleosynthesi...
Sérgio Sacani
 
Bacteria, Different sizes and Shapes of of bacteria
Vishal Sakhare
 
A water-rich interior in the temperate sub-Neptune K2-18 b revealed by JWST
Sérgio Sacani
 
WEEK 4-MONO HYBRID AND DIHYBRID CROSS OF GREGOR MENDEL
AliciaJamandron1
 
Analysing Python Machine Learning Notebooks with Moose
ESUG
 
Discovery of Novel Antibiotics from Uncultured Microbes.pptx
SaakshiSharma26
 
scadadd on patiala punjab sarabjeet sarbjeet sarvbjeet.pptx
sarabjeet4747
 
Chemical bonding and molecular structure
karthikeyan
 
2019 Upper Respiratory Tract Infections.pptx
jackophyta10
 
The Cosmic Symphony: How Photons Shape the Universe and Our Place Within It
kutatomoshi
 
urticaria-1775-rahulkalal-250606145215-0ff37bc9.pdf
GajananPatil761074
 
Pakistan Journal of Zoological Sciences, Volume 1, Issue 1 (2025)
IJSmart Publishing Company
 
Introduction to biochemistry.ppt-pdf_shotrs!
Vishnukanchi darade
 
PPT-7-Rocks-and-Minerals Lesson 5 Quarter 1
CarlVillanueva11
 
JADESreveals a large population of low mass black holes at high redshift
Sérgio Sacani
 
FASTTypeScript metamodel generation using FAST traits and TreeSitter project
ESUG
 
Gamifying Agent-Based Models in Cormas: Towards the Playable Architecture for...
ESUG
 
Integrating Executable Requirements in Prototyping
ESUG
 
GENETIC TECHNOLOGY A level biology
JuthikaMal
 
INTRO-TO-CRIM-THEORIES-OF-CRIME-2023 (1).pptx
ChrisFlickIII
 
N-enhancement in GN-z11: First evidence for supermassive stars nucleosynthesi...
Sérgio Sacani
 

Design and analysis of algorithm lec 1.pptx

  • 1. Design and analysis of algorithms Introduction to DAA Lec 1
  • 2. Why we need to study this subject?  This course introduces the design and analysis of algorithms.  Perhaps it is meaningful to discuss a very important question first: Why should we study algorithms?  It is commonly believed that in order to obtain high speed computation, it suffices to have a very high speed computer.  This, however, is not entirely true. We illustrate this with an experiment whose results make it clear that a good algorithm implemented on a slow computer may perform much better than a bad algorithm implemented on a fast computer.
  • 3. Design and analysis of algorithm Problem Data structure Algorithm Program Computer + Input Output
  • 4. What is algorithm  The word algorithm comes from name of Persian author “Abu Jaffar Mohammad” in 825AD.  Def An algorithm is a sequence of computational steps that transform the input into the output.  Another def. Finite set of steps to solve a problem.
  • 5. What is analysis  Analysis is process of comparing two algorithms w.r.t time and space.  Analysis can be of two types 1:Prior Analysis before execution Independent of hardware just focus on iterations Give approx. value 2:Posterior Analysis after execution Always depend on hardware Give exact value
  • 6. Fundamentals for algorithm  Input (zero input or more input)  Output (at least one)  Definiteness ( no confusion for computer, unambigious)  Finiteness (always terminate)  Effectiveness
  • 7. Design of algorithms Different ways of representing an algorithm is  Natural language  Pseudo code  Flow chart
  • 8. Fields in this course  How to device algorithm?  How to validate?  How to analyse ?  How to test?
  • 9. Difference between algorithm, pseudo code and program  Algorithm  A step by step method to solve a problem .  Its written in natural language.  For example a recipe for preparing a dish.  Program  It is exact code in any particular programming language.  Pseudo code  It is simple version of programing code that does not require any strict programming language syntax.