SlideShare a Scribd company logo
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
introduction to programming languages
PPTX
Flow oriented modeling
PPTX
ClasificaciĂłn de los lenguajes de programaciĂłn
PPTX
Implement text editor
PPTX
Jsp elements
PPT
History of computer development
PPTX
Java Program Structure
PPTX
Language processor
introduction to programming languages
Flow oriented modeling
ClasificaciĂłn de los lenguajes de programaciĂłn
Implement text editor
Jsp elements
History of computer development
Java Program Structure
Language processor

What's hot (20)

PPTX
Types of errors
PPTX
Tugas Powerpoint Pemrograman Dasar
PPT
tipos de lenguaje de programaciĂłn
PPTX
Introduction to java
PPTX
c++ programming Unit 1 introduction to c++
PDF
Software Cost Estimation Techniques
PPTX
Computer Language Translator
PPT
Visual basic
PPT
Coding
PPTX
Java virtual machine
PPTX
Text Editor for System Software
PPTX
Perancangan dan pengembangan sistem informasi (IDG1/X/2011)
PDF
IntroducciĂłn a la ProgramaciĂłn :: Unidad 01 :: Parte 01
PPTX
Analogue computers
PPTX
Programming languages
PPTX
Compiler Chapter 1
PPTX
PPT
Session12 J2ME Generic Connection Framework
PPTX
Powerpoint presentation on Basic Knowledge of Computers
Types of errors
Tugas Powerpoint Pemrograman Dasar
tipos de lenguaje de programaciĂłn
Introduction to java
c++ programming Unit 1 introduction to c++
Software Cost Estimation Techniques
Computer Language Translator
Visual basic
Coding
Java virtual machine
Text Editor for System Software
Perancangan dan pengembangan sistem informasi (IDG1/X/2011)
IntroducciĂłn a la ProgramaciĂłn :: Unidad 01 :: Parte 01
Analogue computers
Programming languages
Compiler Chapter 1
Session12 J2ME Generic Connection Framework
Powerpoint presentation on Basic Knowledge of Computers
Ad

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

PPTX
Chapter 09 design and analysis of algorithms
PPT
chapter 1
PDF
Algorithm.pdf
PDF
Algorithm Analysis.pdf
PPTX
01 Introduction to analysis of Algorithms.pptx
PPTX
UNIT-1.pptx python for engineering first year students
PPTX
Programming C ppt for learning foundations
PDF
Introduction to Algorithms Complexity Analysis
PDF
Algorithms notes 2 tutorials duniya
PPTX
Algorithm - Introduction
PPTX
Design and analysis of algorithms Module-I.pptx
PPT
Ch1 principles of software development
PPTX
Introduction ,characteristics, properties,pseudo code conventions
PPT
1. Introduction to Problem Solving first lesson .ppt
PDF
A gentle introduction to algorithm complexity analysis
PPTX
Algorithm itabq
PDF
Introduction to data structure
PPTX
Algorithm and pseudo codes
PPTX
2-Algorithms and Complexity analysis.pptx
PPTX
Design and Analysis of Algorithm ppt for unit one
Chapter 09 design and analysis of algorithms
chapter 1
Algorithm.pdf
Algorithm Analysis.pdf
01 Introduction to analysis of Algorithms.pptx
UNIT-1.pptx python for engineering first year students
Programming C ppt for learning foundations
Introduction to Algorithms Complexity Analysis
Algorithms notes 2 tutorials duniya
Algorithm - Introduction
Design and analysis of algorithms Module-I.pptx
Ch1 principles of software development
Introduction ,characteristics, properties,pseudo code conventions
1. Introduction to Problem Solving first lesson .ppt
A gentle introduction to algorithm complexity analysis
Algorithm itabq
Introduction to data structure
Algorithm and pseudo codes
2-Algorithms and Complexity analysis.pptx
Design and Analysis of Algorithm ppt for unit one
Ad

Recently uploaded (20)

PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
 
PPTX
2. Earth - The Living Planet Module 2ELS
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PPTX
Microbiology with diagram medical studies .pptx
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
Cell Membrane: Structure, Composition & Functions
PDF
An interstellar mission to test astrophysical black holes
PPTX
2Systematics of Living Organisms t-.pptx
PPTX
Introduction to Cardiovascular system_structure and functions-1
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PDF
bbec55_b34400a7914c42429908233dbd381773.pdf
PPTX
famous lake in india and its disturibution and importance
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PPTX
Comparative Structure of Integument in Vertebrates.pptx
PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PPTX
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
PPTX
Taita Taveta Laboratory Technician Workshop Presentation.pptx
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
 
2. Earth - The Living Planet Module 2ELS
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Microbiology with diagram medical studies .pptx
Biophysics 2.pdffffffffffffffffffffffffff
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
Cell Membrane: Structure, Composition & Functions
An interstellar mission to test astrophysical black holes
2Systematics of Living Organisms t-.pptx
Introduction to Cardiovascular system_structure and functions-1
INTRODUCTION TO EVS | Concept of sustainability
bbec55_b34400a7914c42429908233dbd381773.pdf
famous lake in india and its disturibution and importance
7. General Toxicologyfor clinical phrmacy.pptx
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
Comparative Structure of Integument in Vertebrates.pptx
POSITIONING IN OPERATION THEATRE ROOM.ppt
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
Taita Taveta Laboratory Technician Workshop Presentation.pptx

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.