What is algorithm

L
Design & Analysis of
AlgorithAM
III SEMESTER
SYLLABUS
THIRUVALLUVARUNIVERSITY
B.Sc.COMPUTERSCIENCE
DEGREECOURSE
CBCSPATTERN
(With effect from 2017 - 2018)
Whatis Algorithm?
Introduction to
Algorithms
The word Algorithm means “a process or
set of rules to be followed in calculations
or other problem-solving operations”.
Therefore Algorithm refers to a set of
rules/instructions that step-by-step
define how a work is to be executed upon
in order to get the expected results.
What is algorithm
What are the Characteristics of an
Algorithm?
Clear and Unambiguous:. Each of its steps should be
clear in all aspects and must lead to only one meaning.
Well-Defined Inputs: If an algorithm says to take
inputs, it should be well-defined inputs. if f takes real
numbers as input, and if f(0.5) does not equal f(1/2) then f is
not well-defined (and thus not a function).
Well-Defined cs: The algorithm must clearly define
what output will be yielded and it should be well-
defined as well.
Finite-ness: The algorithm must be finite, i.e. it should
not end up in an infinite loops or similar.
Feasible: The algorithm must be simple, generic and
practical, such that it can be executed upon will the
available resources. It must not contain some future
technology, or anything.
Language Independent: it must be just plain
instructions that can be implemented in any language,
and yet the output will be same, as expected.
How to design an algorithm?
1. Problem definition
2. Development of a model
3. Specification of the algorithm
4. Designing an algorithm
5. Checking the correctness of the algorithm
6. Analysis of algorithm
7. Implementation of algorithm
8. Program testing
9. Documentation preparation
The problem that is to be solved by this
algorithm.
The constraints of the problem that must be
considered while solving the problem.
The input to be taken to solve the problem.
The output to be expected when the problem
the is solved.
The solution to this problem, in the given
constraints.
Example: Consider the example to add
three numbers and print the sum.
Algorithm to add 3 numbers and print their sum:
START
Declare 3 integer variables num1, num2 and num3.
Take the three numbers, to be added, as inputs in variables
num1, num2, and num3 respectively.
Declare an integer variable sum to store the resultant sum of
the 3 numbers.
Add the 3 numbers and store the result in the variable sum.
Print the value of variable sum
END
Home Work
Algorithm to add 2 numbers and print
What is algorithm
1 de 9

Recomendados

phases of algorithm por
phases of algorithmphases of algorithm
phases of algorithmsti meycauayan
6.7K visualizações15 slides
Algorithm and flowchart with pseudo code por
Algorithm and flowchart with pseudo codeAlgorithm and flowchart with pseudo code
Algorithm and flowchart with pseudo codehamza javed
4.2K visualizações56 slides
Algorithm por
AlgorithmAlgorithm
AlgorithmIHTISHAM UL HAQ
7.7K visualizações16 slides
L01 intro-daa - ppt1 por
L01 intro-daa - ppt1L01 intro-daa - ppt1
L01 intro-daa - ppt1sankaran L
356 visualizações27 slides
Flowcharts and algorithms por
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
5.9K visualizações12 slides
Algorithm and Flowcharts por
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSabik T S
1.2K visualizações21 slides

Mais conteúdo relacionado

Mais procurados

Model and Design por
Model and Design Model and Design
Model and Design Dr Shashikant Athawale
6.3K visualizações18 slides
Algorithm & flowchart por
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchartsaurabh sen sky
205 visualizações11 slides
Flowcharting and Algorithm por
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm Zeinna Belle Desamito
855 visualizações23 slides
Algorithm and flowchart2010 por
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
22.5K visualizações12 slides
Algorithm & flow chart por
Algorithm & flow chartAlgorithm & flow chart
Algorithm & flow chartbaabtra.com - No. 1 supplier of quality freshers
3.5K visualizações16 slides
03 algorithm properties por
03 algorithm properties03 algorithm properties
03 algorithm propertiesLincoln School
8.8K visualizações20 slides

Mais procurados(20)

Algorithm & flowchart por saurabh sen sky
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchart
saurabh sen sky205 visualizações
Flowcharting and Algorithm por Zeinna Belle Desamito
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
Zeinna Belle Desamito855 visualizações
Algorithm and flowchart2010 por Jordan Delacruz
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
Jordan Delacruz22.5K visualizações
03 algorithm properties por Lincoln School
03 algorithm properties03 algorithm properties
03 algorithm properties
Lincoln School8.8K visualizações
Unit 1-problem solving with algorithm por rajkumar1631010038
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar16310100386.9K visualizações
Algorithm and flowchart por Shivam Sharma
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
Shivam Sharma168 visualizações
Algorithm and Programming (Introduction of Algorithms) por Adam Mukharil Bachtiar
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
Adam Mukharil Bachtiar9.9K visualizações
flowchart & algorithms por Student
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student7K visualizações
Flowchart and algorithm por DHANIK VIKRANT
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
DHANIK VIKRANT732 visualizações
FIT-Unit3 chapter 1 -computer program por raksharao
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
raksharao468 visualizações
Basics of Algorithm Unit 1 part 1 algorithm por JIMS LAJPAT NAGAR
Basics of Algorithm Unit 1 part 1  algorithmBasics of Algorithm Unit 1 part 1  algorithm
Basics of Algorithm Unit 1 part 1 algorithm
JIMS LAJPAT NAGAR78 visualizações
Flowcharts and pseudocodes por Dr Piyush Charan
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
Dr Piyush Charan1.8K visualizações
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table por Anjali Technosoft
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision tableProgramming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft888 visualizações
Algorithm and Flowcharts por SURBHI SAROHA
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
SURBHI SAROHA4.1K visualizações
Algorithm and flowchart por Sachin Goyani
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Sachin Goyani7.1K visualizações
Chapter 6 algorithms and flow charts por praveenjigajinni
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
praveenjigajinni8.5K visualizações
Introduction to Algorithms & flow charts por Yash Gupta
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow charts
Yash Gupta2.4K visualizações

Similar a What is algorithm

Lecture Note-1: Algorithm and Its Properties por
Lecture Note-1: Algorithm and Its PropertiesLecture Note-1: Algorithm and Its Properties
Lecture Note-1: Algorithm and Its PropertiesRajesh K Shukla
7.5K visualizações1 slide
Algorithms notes 2 tutorials duniya por
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniyaTutorialsDuniya.com
124 visualizações50 slides
Introduction to algorithms por
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithmsMadishetty Prathibha
297 visualizações26 slides
Data structures algorithms basics por
Data structures   algorithms basicsData structures   algorithms basics
Data structures algorithms basicsayeshasafdar8
22 visualizações13 slides
Daa chapter 1 por
Daa chapter 1Daa chapter 1
Daa chapter 1B.Kirron Reddi
90 visualizações22 slides
DA lecture 3.pptx por
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptxSayanSen36
7 visualizações14 slides

Similar a What is algorithm(20)

Lecture Note-1: Algorithm and Its Properties por Rajesh K Shukla
Lecture Note-1: Algorithm and Its PropertiesLecture Note-1: Algorithm and Its Properties
Lecture Note-1: Algorithm and Its Properties
Rajesh K Shukla7.5K visualizações
Algorithms notes 2 tutorials duniya por TutorialsDuniya.com
Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com124 visualizações
Introduction to algorithms por Madishetty Prathibha
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
Madishetty Prathibha297 visualizações
Data structures algorithms basics por ayeshasafdar8
Data structures   algorithms basicsData structures   algorithms basics
Data structures algorithms basics
ayeshasafdar822 visualizações
Daa chapter 1 por B.Kirron Reddi
Daa chapter 1Daa chapter 1
Daa chapter 1
B.Kirron Reddi90 visualizações
DA lecture 3.pptx por SayanSen36
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptx
SayanSen367 visualizações
ALGO VS FLOW.pptx por NagendraK18
ALGO VS FLOW.pptxALGO VS FLOW.pptx
ALGO VS FLOW.pptx
NagendraK183 visualizações
chapter 1 por yatheesha
chapter 1chapter 1
chapter 1
yatheesha4.4K visualizações
UNIT 1.pptx por ShaswatSurya
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
ShaswatSurya145 visualizações
Chap6 por artipradhan
Chap6Chap6
Chap6
artipradhan2.7K visualizações
DATA STRUCTURE.pdf por ibrahim386946
DATA STRUCTURE.pdfDATA STRUCTURE.pdf
DATA STRUCTURE.pdf
ibrahim386946263 visualizações
DATA STRUCTURE por RobinRohit2
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
RobinRohit2115 visualizações
3 algorithm-and-flowchart por Rohit Shrivastava
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava15.1K visualizações
Logic Development and Algorithm. por NandiniSidana
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
NandiniSidana336 visualizações
11 Unit 1 Problem Solving Techniques por praveenjigajinni
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving Techniques
praveenjigajinni2.6K visualizações
UNIT-2-PPTS-DAA.ppt por GovindUpadhyay25
UNIT-2-PPTS-DAA.pptUNIT-2-PPTS-DAA.ppt
UNIT-2-PPTS-DAA.ppt
GovindUpadhyay25115 visualizações
AOA Week 01.ppt por INAM352782
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.ppt
INAM3527823 visualizações
GE8151 notes pdf.pdf por payalkarmarkar1
GE8151 notes pdf.pdfGE8151 notes pdf.pdf
GE8151 notes pdf.pdf
payalkarmarkar1104 visualizações
Algorithm and flowchart.pptx por MaheShiva
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva491 visualizações

Último

Thanksgiving!.pdf por
Thanksgiving!.pdfThanksgiving!.pdf
Thanksgiving!.pdfEnglishCEIPdeSigeiro
137 visualizações17 slides
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... por
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Ms. Pooja Bhandare
109 visualizações45 slides
REPRESENTATION - GAUNTLET.pptx por
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptxiammrhaywood
107 visualizações26 slides
ICS3211_lecture 09_2023.pdf por
ICS3211_lecture 09_2023.pdfICS3211_lecture 09_2023.pdf
ICS3211_lecture 09_2023.pdfVanessa Camilleri
73 visualizações10 slides
AUDIENCE - BANDURA.pptx por
AUDIENCE - BANDURA.pptxAUDIENCE - BANDURA.pptx
AUDIENCE - BANDURA.pptxiammrhaywood
89 visualizações44 slides
The Value and Role of Media and Information Literacy in the Information Age a... por
The Value and Role of Media and Information Literacy in the Information Age a...The Value and Role of Media and Information Literacy in the Information Age a...
The Value and Role of Media and Information Literacy in the Information Age a...Naseej Academy أكاديمية نسيج
54 visualizações42 slides

Último(20)

Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant... por Ms. Pooja Bhandare
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Pharmaceutical Inorganic Chemistry Unit IVMiscellaneous compounds Expectorant...
Ms. Pooja Bhandare109 visualizações
REPRESENTATION - GAUNTLET.pptx por iammrhaywood
REPRESENTATION - GAUNTLET.pptxREPRESENTATION - GAUNTLET.pptx
REPRESENTATION - GAUNTLET.pptx
iammrhaywood107 visualizações
ICS3211_lecture 09_2023.pdf por Vanessa Camilleri
ICS3211_lecture 09_2023.pdfICS3211_lecture 09_2023.pdf
ICS3211_lecture 09_2023.pdf
Vanessa Camilleri73 visualizações
AUDIENCE - BANDURA.pptx por iammrhaywood
AUDIENCE - BANDURA.pptxAUDIENCE - BANDURA.pptx
AUDIENCE - BANDURA.pptx
iammrhaywood89 visualizações
CUNY IT Picciano.pptx por apicciano
CUNY IT Picciano.pptxCUNY IT Picciano.pptx
CUNY IT Picciano.pptx
apicciano54 visualizações
When Sex Gets Complicated: Porn, Affairs, & Cybersex por Marlene Maheu
When Sex Gets Complicated: Porn, Affairs, & CybersexWhen Sex Gets Complicated: Porn, Affairs, & Cybersex
When Sex Gets Complicated: Porn, Affairs, & Cybersex
Marlene Maheu73 visualizações
Drama KS5 Breakdown por WestHatch
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch87 visualizações
Classification of crude drugs.pptx por GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1492 visualizações
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx por Ms. Pooja Bhandare
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptxPharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Pharmaceutical Inorganic chemistry UNIT-V Radiopharmaceutical.pptx
Ms. Pooja Bhandare93 visualizações
Solar System and Galaxies.pptx por DrHafizKosar
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptx
DrHafizKosar94 visualizações
Psychology KS5 por WestHatch
Psychology KS5Psychology KS5
Psychology KS5
WestHatch103 visualizações
CONTENTS.pptx por iguerendiain
CONTENTS.pptxCONTENTS.pptx
CONTENTS.pptx
iguerendiain57 visualizações
Women from Hackney’s History: Stoke Newington by Sue Doe por History of Stoke Newington
Women from Hackney’s History: Stoke Newington by Sue DoeWomen from Hackney’s History: Stoke Newington by Sue Doe
Women from Hackney’s History: Stoke Newington by Sue Doe
History of Stoke Newington157 visualizações
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively por PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 598 visualizações
Ch. 8 Political Party and Party System.pptx por Rommel Regala
Ch. 8 Political Party and Party System.pptxCh. 8 Political Party and Party System.pptx
Ch. 8 Political Party and Party System.pptx
Rommel Regala53 visualizações

What is algorithm

  • 1. Design & Analysis of AlgorithAM III SEMESTER SYLLABUS THIRUVALLUVARUNIVERSITY B.Sc.COMPUTERSCIENCE DEGREECOURSE CBCSPATTERN (With effect from 2017 - 2018)
  • 2. Whatis Algorithm? Introduction to Algorithms The word Algorithm means “a process or set of rules to be followed in calculations or other problem-solving operations”. Therefore Algorithm refers to a set of rules/instructions that step-by-step define how a work is to be executed upon in order to get the expected results.
  • 4. What are the Characteristics of an Algorithm?
  • 5. Clear and Unambiguous:. Each of its steps should be clear in all aspects and must lead to only one meaning. Well-Defined Inputs: If an algorithm says to take inputs, it should be well-defined inputs. if f takes real numbers as input, and if f(0.5) does not equal f(1/2) then f is not well-defined (and thus not a function). Well-Defined cs: The algorithm must clearly define what output will be yielded and it should be well- defined as well. Finite-ness: The algorithm must be finite, i.e. it should not end up in an infinite loops or similar. Feasible: The algorithm must be simple, generic and practical, such that it can be executed upon will the available resources. It must not contain some future technology, or anything. Language Independent: it must be just plain instructions that can be implemented in any language, and yet the output will be same, as expected.
  • 6. How to design an algorithm? 1. Problem definition 2. Development of a model 3. Specification of the algorithm 4. Designing an algorithm 5. Checking the correctness of the algorithm 6. Analysis of algorithm 7. Implementation of algorithm 8. Program testing 9. Documentation preparation
  • 7. The problem that is to be solved by this algorithm. The constraints of the problem that must be considered while solving the problem. The input to be taken to solve the problem. The output to be expected when the problem the is solved. The solution to this problem, in the given constraints.
  • 8. Example: Consider the example to add three numbers and print the sum. Algorithm to add 3 numbers and print their sum: START Declare 3 integer variables num1, num2 and num3. Take the three numbers, to be added, as inputs in variables num1, num2, and num3 respectively. Declare an integer variable sum to store the resultant sum of the 3 numbers. Add the 3 numbers and store the result in the variable sum. Print the value of variable sum END Home Work Algorithm to add 2 numbers and print