SlideShare a Scribd company logo
1 of 1
Lecture Note-1: Algorithm and Its Properties 18 Jan 2016
By Rajesh K Shukla, HOD, Department of CSE, SIRTE Bhopal
Downloaded from www.RajeshkShukla.com
Definition of algorithms
An algorithm is a tool for solving any computational problem. It may be defined as a sequence of finite,
precise and unambiguous instructions which are applied either to perform a computation or to solve a
computational problem. These instructions are applied on some raw data called the input, and the
solution of the problem produced is called the output. It is shown in the diagram given below
It was named after 9th century (780-850) Persian mathematician Abu Ja ’far Muhammad ibn-i Musa al-
Khwarizmi and these were originally used in mathematical calculations but they are now widely used in
computer programs.
Properties of algorithms
Algorithms generally share a set of properties
 Input
An algorithm must be supplied with zero or some finite input values externally from a specified set
in order to solve the computational problem and generate some output. The input data is
transformed during the computation in order to produce the output
 Output
The algorithm produces some finite set of outputs after applying some operations on the given set
of input values. The output values are the solution. The output can be anything from data returned
to the calling algorithm, displaying the message, printing the calculation etc. It is possible to have
no output.
 Finiteness
The algorithm must be terminated after executing the finite number of steps so an algorithm must
be a well-defined, ordered set of instructions.
 Definiteness
Each step of an algorithm must be clear and unambiguous so that the actions can be carried out
without any ambiguity. For Example same symbol should not be used to mean multiplication as
well as division in two different places in the algorithm.
 Effectiveness
The algorithm must perform each step correctly and in a finite amount of time therefore time tends
to be more important in calculating the effectiveness of an algorithm. The space and other resources
taken up by algorithm also plays vital role in effectiveness of an algorithm. Effectiveness is precisely
measured after translating the algorithm into a computer program.
 Correctness.
An algorithm must produce the correct output values for all legal input instances of the problem
 Generality
The algorithm should be applicable to all problems of a similar form
 Multiple view
Same algorithm may be represented in different ways
 Multiple Availability
Several algorithms for solving the same problem may exist - with different properties

More Related Content

What's hot (18)

Algorithm defination, design & Implementation
Algorithm defination, design & ImplementationAlgorithm defination, design & Implementation
Algorithm defination, design & Implementation
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)Basic Algorithm @PPSC(1)
Basic Algorithm @PPSC(1)
 
phases of algorithm
phases of algorithmphases of algorithm
phases of algorithm
 
Python algorithm efficency
Python algorithm efficencyPython algorithm efficency
Python algorithm efficency
 
Fundamentals of algorithms
Fundamentals of algorithmsFundamentals of algorithms
Fundamentals of algorithms
 
Unit 1-problem solving with algorithm
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
03 algorithm properties
03 algorithm properties03 algorithm properties
03 algorithm properties
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Algorithm analysis and efficiency
Algorithm analysis and efficiencyAlgorithm analysis and efficiency
Algorithm analysis and efficiency
 
Amortized analysis
Amortized analysisAmortized analysis
Amortized analysis
 
Algorithms. Basic course
Algorithms. Basic courseAlgorithms. Basic course
Algorithms. Basic course
 
Day 3 chapter 2 unit 1
Day 3 chapter 2 unit 1Day 3 chapter 2 unit 1
Day 3 chapter 2 unit 1
 
Design & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesDesign & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture Notes
 
Daa unit 1
Daa unit 1Daa unit 1
Daa unit 1
 
Model and Design
Model and Design Model and Design
Model and Design
 
Daa presentation 97
Daa presentation 97Daa presentation 97
Daa presentation 97
 

Viewers also liked

The BIG Pitch Competition Flyer
The BIG Pitch Competition FlyerThe BIG Pitch Competition Flyer
The BIG Pitch Competition FlyerAndrew Blumenthal
 
Report on Institutional Collaboration
Report on Institutional CollaborationReport on Institutional Collaboration
Report on Institutional CollaborationDr, Madhava Madireddy
 
اچھے برے عمل
اچھے برے عملاچھے برے عمل
اچھے برے عملSaqib Qadri
 
SP3D Training Certificate
SP3D Training CertificateSP3D Training Certificate
SP3D Training CertificateGuru Sankar
 
Land, soil and water management: Watershed management practices and hydrologi...
Land, soil and water management: Watershed management practices and hydrologi...Land, soil and water management: Watershed management practices and hydrologi...
Land, soil and water management: Watershed management practices and hydrologi...ICRISAT
 
Cómo instalar android en una máquina virtual virtual box
Cómo instalar android en una máquina virtual virtual boxCómo instalar android en una máquina virtual virtual box
Cómo instalar android en una máquina virtual virtual boxLike Music
 
Bloglab
BloglabBloglab
Bloglabtiix
 
Women make the difference
Women make the differenceWomen make the difference
Women make the differenceICRISAT
 
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...Silvia Torres
 
OpenID Tutorials
OpenID TutorialsOpenID Tutorials
OpenID TutorialsNao Haida
 
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014
Valor Metro Cuadrado Bogotá  Septiembre- Octubre 2014Valor Metro Cuadrado Bogotá  Septiembre- Octubre 2014
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014Fincaraíz.com.co
 
Comité ambiental. CCEE Reyes Católicos
Comité ambiental. CCEE Reyes CatólicosComité ambiental. CCEE Reyes Católicos
Comité ambiental. CCEE Reyes CatólicosJuliete Kiko
 
Acute Viral Encephalitis
Acute Viral EncephalitisAcute Viral Encephalitis
Acute Viral EncephalitisThomas Oricha
 

Viewers also liked (17)

CV Ruel Abante
CV Ruel AbanteCV Ruel Abante
CV Ruel Abante
 
The BIG Pitch Competition Flyer
The BIG Pitch Competition FlyerThe BIG Pitch Competition Flyer
The BIG Pitch Competition Flyer
 
Report on Institutional Collaboration
Report on Institutional CollaborationReport on Institutional Collaboration
Report on Institutional Collaboration
 
香港六合彩
香港六合彩香港六合彩
香港六合彩
 
香港六合彩品位
香港六合彩品位香港六合彩品位
香港六合彩品位
 
اچھے برے عمل
اچھے برے عملاچھے برے عمل
اچھے برے عمل
 
SP3D Training Certificate
SP3D Training CertificateSP3D Training Certificate
SP3D Training Certificate
 
Land, soil and water management: Watershed management practices and hydrologi...
Land, soil and water management: Watershed management practices and hydrologi...Land, soil and water management: Watershed management practices and hydrologi...
Land, soil and water management: Watershed management practices and hydrologi...
 
Cómo instalar android en una máquina virtual virtual box
Cómo instalar android en una máquina virtual virtual boxCómo instalar android en una máquina virtual virtual box
Cómo instalar android en una máquina virtual virtual box
 
Bloglab
BloglabBloglab
Bloglab
 
Women make the difference
Women make the differenceWomen make the difference
Women make the difference
 
Herramientas web 2.0
Herramientas web 2.0Herramientas web 2.0
Herramientas web 2.0
 
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
 
OpenID Tutorials
OpenID TutorialsOpenID Tutorials
OpenID Tutorials
 
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014
Valor Metro Cuadrado Bogotá  Septiembre- Octubre 2014Valor Metro Cuadrado Bogotá  Septiembre- Octubre 2014
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014
 
Comité ambiental. CCEE Reyes Católicos
Comité ambiental. CCEE Reyes CatólicosComité ambiental. CCEE Reyes Católicos
Comité ambiental. CCEE Reyes Católicos
 
Acute Viral Encephalitis
Acute Viral EncephalitisAcute Viral Encephalitis
Acute Viral Encephalitis
 

Similar to Lecture Note-2: Performance analysis of Algorithms

Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structureA. S. M. Shafi
 
Data structures algorithms basics
Data structures   algorithms basicsData structures   algorithms basics
Data structures algorithms basicsayeshasafdar8
 
Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis Dr. Pankaj Agarwal
 
Algorithm - Introduction
Algorithm - IntroductionAlgorithm - Introduction
Algorithm - IntroductionMadhu Bala
 
Design and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit oneDesign and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit onessuserb7c8b8
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdfNayanChandak1
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdfishan743441
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving TechniquesPraveen M Jigajinni
 
AOA Week 01.ppt
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.pptINAM352782
 
1.1 the introduction of design and analysis of algorithm
1.1 the introduction of design and analysis of algorithm1.1 the introduction of design and analysis of algorithm
1.1 the introduction of design and analysis of algorithmMohammed khaja Jamaluddin
 
DA lecture 3.pptx
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptxSayanSen36
 
Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniyaTutorialsDuniya.com
 
01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptxssuser586772
 
Introduction To Algorithms
Introduction To AlgorithmsIntroduction To Algorithms
Introduction To AlgorithmsKM Bappi
 

Similar to Lecture Note-2: Performance analysis of Algorithms (20)

Introduction to data structure
Introduction to data structureIntroduction to data structure
Introduction to data structure
 
Introduction to algorithms
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
 
Data structures algorithms basics
Data structures   algorithms basicsData structures   algorithms basics
Data structures algorithms basics
 
Daa chapter 1
Daa chapter 1Daa chapter 1
Daa chapter 1
 
Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis Introduction to Algorithms Complexity Analysis
Introduction to Algorithms Complexity Analysis
 
Algorithm - Introduction
Algorithm - IntroductionAlgorithm - Introduction
Algorithm - Introduction
 
Design and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit oneDesign and Analysis of Algorithm ppt for unit one
Design and Analysis of Algorithm ppt for unit one
 
Algorithm Analysis.pdf
Algorithm Analysis.pdfAlgorithm Analysis.pdf
Algorithm Analysis.pdf
 
2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf2-Algorithms and Complexit data structurey.pdf
2-Algorithms and Complexit data structurey.pdf
 
11 Unit 1 Problem Solving Techniques
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving Techniques
 
AOA Week 01.ppt
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.ppt
 
GE8151 notes pdf.pdf
GE8151 notes pdf.pdfGE8151 notes pdf.pdf
GE8151 notes pdf.pdf
 
1.1 the introduction of design and analysis of algorithm
1.1 the introduction of design and analysis of algorithm1.1 the introduction of design and analysis of algorithm
1.1 the introduction of design and analysis of algorithm
 
DA lecture 3.pptx
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptx
 
chapter 1
chapter 1chapter 1
chapter 1
 
Algorithms notes 2 tutorials duniya
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
 
01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx01 Introduction to analysis of Algorithms.pptx
01 Introduction to analysis of Algorithms.pptx
 
Unit 2 algorithm
Unit   2 algorithmUnit   2 algorithm
Unit 2 algorithm
 
Introduction To Algorithms
Introduction To AlgorithmsIntroduction To Algorithms
Introduction To Algorithms
 
Python algorithm
Python algorithmPython algorithm
Python algorithm
 

More from Rajesh K Shukla

More from Rajesh K Shukla (9)

Quiz 2
Quiz 2Quiz 2
Quiz 2
 
Quiz 1
Quiz 1Quiz 1
Quiz 1
 
Pop operation
Pop operationPop operation
Pop operation
 
Stack: Recursion and Iteration
Stack: Recursion and IterationStack: Recursion and Iteration
Stack: Recursion and Iteration
 
Little o and little omega
Little o and little omegaLittle o and little omega
Little o and little omega
 
Theta notation
Theta notationTheta notation
Theta notation
 
The bog oh notation
The bog oh notationThe bog oh notation
The bog oh notation
 
Big omega
Big omegaBig omega
Big omega
 
Lecture Note-1: Algorithm and Its Properties
Lecture Note-1: Algorithm and Its PropertiesLecture Note-1: Algorithm and Its Properties
Lecture Note-1: Algorithm and Its Properties
 

Recently uploaded

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 

Recently uploaded (20)

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 

Lecture Note-2: Performance analysis of Algorithms

  • 1. Lecture Note-1: Algorithm and Its Properties 18 Jan 2016 By Rajesh K Shukla, HOD, Department of CSE, SIRTE Bhopal Downloaded from www.RajeshkShukla.com Definition of algorithms An algorithm is a tool for solving any computational problem. It may be defined as a sequence of finite, precise and unambiguous instructions which are applied either to perform a computation or to solve a computational problem. These instructions are applied on some raw data called the input, and the solution of the problem produced is called the output. It is shown in the diagram given below It was named after 9th century (780-850) Persian mathematician Abu Ja ’far Muhammad ibn-i Musa al- Khwarizmi and these were originally used in mathematical calculations but they are now widely used in computer programs. Properties of algorithms Algorithms generally share a set of properties  Input An algorithm must be supplied with zero or some finite input values externally from a specified set in order to solve the computational problem and generate some output. The input data is transformed during the computation in order to produce the output  Output The algorithm produces some finite set of outputs after applying some operations on the given set of input values. The output values are the solution. The output can be anything from data returned to the calling algorithm, displaying the message, printing the calculation etc. It is possible to have no output.  Finiteness The algorithm must be terminated after executing the finite number of steps so an algorithm must be a well-defined, ordered set of instructions.  Definiteness Each step of an algorithm must be clear and unambiguous so that the actions can be carried out without any ambiguity. For Example same symbol should not be used to mean multiplication as well as division in two different places in the algorithm.  Effectiveness The algorithm must perform each step correctly and in a finite amount of time therefore time tends to be more important in calculating the effectiveness of an algorithm. The space and other resources taken up by algorithm also plays vital role in effectiveness of an algorithm. Effectiveness is precisely measured after translating the algorithm into a computer program.  Correctness. An algorithm must produce the correct output values for all legal input instances of the problem  Generality The algorithm should be applicable to all problems of a similar form  Multiple view Same algorithm may be represented in different ways  Multiple Availability Several algorithms for solving the same problem may exist - with different properties