SlideShare a Scribd company logo
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)

PDF
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
PPTX
Algorithm
IHTISHAM UL HAQ
 
PPTX
Basic Algorithm @PPSC(1)
Amiya Bhusan
 
PPTX
phases of algorithm
sti meycauayan
 
PPTX
Python algorithm efficency
ToniyaP1
 
PDF
Fundamentals of algorithms
Amit Kumar Rathi
 
PDF
Unit 1-problem solving with algorithm
rajkumar1631010038
 
PPT
What is an algorithm?
Startup Product Academy, LLC
 
PPT
03 algorithm properties
Lincoln School
 
PDF
Algorithm and Programming (Introduction of Algorithms)
Adam Mukharil Bachtiar
 
PPTX
Algorithm analysis and efficiency
ppts123456
 
PPT
Amortized analysis
Dr Shashikant Athawale
 
PDF
Algorithms. Basic course
ISS Art, LLC
 
PDF
Design & Analysis of Algorithms Lecture Notes
FellowBuddy.com
 
PPTX
Daa unit 1
Abhimanyu Mishra
 
PPT
Model and Design
Dr Shashikant Athawale
 
PPT
Daa presentation 97
Garima Verma
 
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
Algorithm
IHTISHAM UL HAQ
 
Basic Algorithm @PPSC(1)
Amiya Bhusan
 
phases of algorithm
sti meycauayan
 
Python algorithm efficency
ToniyaP1
 
Fundamentals of algorithms
Amit Kumar Rathi
 
Unit 1-problem solving with algorithm
rajkumar1631010038
 
What is an algorithm?
Startup Product Academy, LLC
 
03 algorithm properties
Lincoln School
 
Algorithm and Programming (Introduction of Algorithms)
Adam Mukharil Bachtiar
 
Algorithm analysis and efficiency
ppts123456
 
Amortized analysis
Dr Shashikant Athawale
 
Algorithms. Basic course
ISS Art, LLC
 
Design & Analysis of Algorithms Lecture Notes
FellowBuddy.com
 
Daa unit 1
Abhimanyu Mishra
 
Model and Design
Dr Shashikant Athawale
 
Daa presentation 97
Garima Verma
 

Viewers also liked (17)

DOC
CV Ruel Abante
RUEL ABANTE
 
PDF
The BIG Pitch Competition Flyer
Andrew Blumenthal
 
DOCX
Report on Institutional Collaboration
Dr, Madhava Madireddy
 
PPT
香港六合彩品位
香港六合彩 香港六合彩
 
PDF
اچھے برے عمل
Saqib Qadri
 
PDF
SP3D Training Certificate
Guru Sankar
 
PDF
Land, soil and water management: Watershed management practices and hydrologi...
ICRISAT
 
PDF
Cómo instalar android en una máquina virtual virtual box
Like Music
 
PPT
Bloglab
tiix
 
PDF
Women make the difference
ICRISAT
 
PPTX
Herramientas web 2.0
Eduardo Cortés
 
PPTX
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Silvia Torres
 
PDF
OpenID Tutorials
Nao Haida
 
PDF
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014
Fincaraíz.com.co
 
PPTX
Comité ambiental. CCEE Reyes Católicos
Juliete Kiko
 
PPTX
Acute Viral Encephalitis
Thomas Oricha
 
CV Ruel Abante
RUEL ABANTE
 
The BIG Pitch Competition Flyer
Andrew Blumenthal
 
Report on Institutional Collaboration
Dr, Madhava Madireddy
 
香港六合彩品位
香港六合彩 香港六合彩
 
اچھے برے عمل
Saqib Qadri
 
SP3D Training Certificate
Guru Sankar
 
Land, soil and water management: Watershed management practices and hydrologi...
ICRISAT
 
Cómo instalar android en una máquina virtual virtual box
Like Music
 
Bloglab
tiix
 
Women make the difference
ICRISAT
 
Herramientas web 2.0
Eduardo Cortés
 
Práctica 1 Leyes actualizadas de Ranganathan aplicadas a una biblioteca munic...
Silvia Torres
 
OpenID Tutorials
Nao Haida
 
Valor Metro Cuadrado Bogotá Septiembre- Octubre 2014
Fincaraíz.com.co
 
Comité ambiental. CCEE Reyes Católicos
Juliete Kiko
 
Acute Viral Encephalitis
Thomas Oricha
 
Ad

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

PPTX
Algorithm in data structure bca .pptx
SukhBanger
 
PPTX
Modile-1-PPT-1-BCAC0207-AlgorithmDesign.pptx
ryadavrohit26
 
PPTX
Algorithm and Complexity-Lesson 1.pptx
Apasra R
 
PDF
DAA INTRO.pdf of design analysis algorithms
VaishnaviDappu
 
PPTX
11 Unit 1 Problem Solving Techniques
Praveen M Jigajinni
 
PPTX
Chapter 6 algorithms and flow charts
Praveen M Jigajinni
 
PDF
Python algorithm
Prof. Dr. K. Adisesha
 
PPSX
Ds03 part i algorithms by jyoti lakhani
jyoti_lakhani
 
PPTX
Binary to hexadecimal algorithmic old.pptx
bulbul931579
 
PPTX
problem solving and algorithm development
jessicajames100
 
PDF
Introduction to data structure
A. S. M. Shafi
 
DOCX
Algorithm - A set of rules for solving operations
Kumari99
 
PPSX
Ds03 algorithms jyoti lakhani
jyoti_lakhani
 
PPTX
FDFDRERSFDSGAGAFGGFGFGFGFGAFDGFDGFGFFAGFGGDF
AlthimeseAnderson
 
PDF
Chapter-1-Introduction-to-Aglorithms.pdf
Shanmuganathan C
 
PDF
Daa chapter 1
B.Kirron Reddi
 
PPTX
Unit 1, ADA.pptx
jinkhatima
 
PPT
Introduction to design and analysis of algorithm
DevaKumari Vijay
 
PPTX
ADA_Module 1_MN.pptx- Analysis and design of Algorithms
madhu614742
 
PPTX
Analysis Framework, Asymptotic Notations
DrSMeenakshiSundaram1
 
Algorithm in data structure bca .pptx
SukhBanger
 
Modile-1-PPT-1-BCAC0207-AlgorithmDesign.pptx
ryadavrohit26
 
Algorithm and Complexity-Lesson 1.pptx
Apasra R
 
DAA INTRO.pdf of design analysis algorithms
VaishnaviDappu
 
11 Unit 1 Problem Solving Techniques
Praveen M Jigajinni
 
Chapter 6 algorithms and flow charts
Praveen M Jigajinni
 
Python algorithm
Prof. Dr. K. Adisesha
 
Ds03 part i algorithms by jyoti lakhani
jyoti_lakhani
 
Binary to hexadecimal algorithmic old.pptx
bulbul931579
 
problem solving and algorithm development
jessicajames100
 
Introduction to data structure
A. S. M. Shafi
 
Algorithm - A set of rules for solving operations
Kumari99
 
Ds03 algorithms jyoti lakhani
jyoti_lakhani
 
FDFDRERSFDSGAGAFGGFGFGFGFGAFDGFDGFGFFAGFGGDF
AlthimeseAnderson
 
Chapter-1-Introduction-to-Aglorithms.pdf
Shanmuganathan C
 
Daa chapter 1
B.Kirron Reddi
 
Unit 1, ADA.pptx
jinkhatima
 
Introduction to design and analysis of algorithm
DevaKumari Vijay
 
ADA_Module 1_MN.pptx- Analysis and design of Algorithms
madhu614742
 
Analysis Framework, Asymptotic Notations
DrSMeenakshiSundaram1
 
Ad

More from Rajesh K Shukla (9)

PDF
Quiz 2
Rajesh K Shukla
 
PDF
Quiz 1
Rajesh K Shukla
 
PDF
Pop operation
Rajesh K Shukla
 
PDF
Stack: Recursion and Iteration
Rajesh K Shukla
 
PDF
Little o and little omega
Rajesh K Shukla
 
PDF
Theta notation
Rajesh K Shukla
 
PDF
The bog oh notation
Rajesh K Shukla
 
PDF
Big omega
Rajesh K Shukla
 
PDF
Lecture Note-1: Algorithm and Its Properties
Rajesh K Shukla
 
Pop operation
Rajesh K Shukla
 
Stack: Recursion and Iteration
Rajesh K Shukla
 
Little o and little omega
Rajesh K Shukla
 
Theta notation
Rajesh K Shukla
 
The bog oh notation
Rajesh K Shukla
 
Big omega
Rajesh K Shukla
 
Lecture Note-1: Algorithm and Its Properties
Rajesh K Shukla
 

Recently uploaded (20)

PPTX
Precooling and Refrigerated storage.pptx
ThongamSunita
 
PDF
PRIZ Academy - Process functional modelling
PRIZ Guru
 
PPTX
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
PDF
PROGRAMMING REQUESTS/RESPONSES WITH GREATFREE IN THE CLOUD ENVIRONMENT
samueljackson3773
 
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PDF
01-introduction to the ProcessDesign.pdf
StiveBrack
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
PDF
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
PDF
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
PDF
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
PPTX
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PDF
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PDF
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PPTX
Explore USA’s Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
Precooling and Refrigerated storage.pptx
ThongamSunita
 
PRIZ Academy - Process functional modelling
PRIZ Guru
 
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
PROGRAMMING REQUESTS/RESPONSES WITH GREATFREE IN THE CLOUD ENVIRONMENT
samueljackson3773
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
01-introduction to the ProcessDesign.pdf
StiveBrack
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
AsadShad4
 
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
輪読会資料_Miipher and Miipher2 .
NABLAS株式会社
 
Kel.3_A_Review_on_Internet_of_Things_for_Defense_v3.pptx
Endang Saefullah
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
Authentication Devices in Fog-mobile Edge Computing Environments through a Wi...
ijujournal
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
Explore USA’s Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 

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