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 algorithmphases of algorithm
phases of algorithmsti meycauayan
6.7K vistas15 diapositivas
AlgorithmAlgorithm
AlgorithmIHTISHAM UL HAQ
7.5K vistas16 diapositivas
L01 intro-daa - ppt1L01 intro-daa - ppt1
L01 intro-daa - ppt1sankaran L
356 vistas27 diapositivas
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
5.9K vistas12 diapositivas
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSabik T S
1.2K vistas21 diapositivas

Más contenido relacionado

La actualidad más candente

Model and Design Model and Design
Model and Design Dr Shashikant Athawale
6.3K vistas18 diapositivas
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchartsaurabh sen sky
202 vistas11 diapositivas
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
22.5K vistas12 diapositivas
03 algorithm properties03 algorithm properties
03 algorithm propertiesLincoln School
8.8K vistas20 diapositivas

La actualidad más candente(20)

Model and Design Model and Design
Model and Design
Dr Shashikant Athawale6.3K vistas
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchart
saurabh sen sky202 vistas
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
Zeinna Belle Desamito855 vistas
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010
Jordan Delacruz22.5K vistas
Algorithm & flow chartAlgorithm & flow chart
Algorithm & flow chart
baabtra.com - No. 1 supplier of quality freshers3.5K vistas
03 algorithm properties03 algorithm properties
03 algorithm properties
Lincoln School8.8K vistas
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithm
rajkumar16310100386.9K vistas
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
Shivam Sharma168 vistas
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
Adam Mukharil Bachtiar9.9K vistas
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student7K vistas
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
DHANIK VIKRANT731 vistas
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 vistas
Flowcharts and pseudocodesFlowcharts and pseudocodes
Flowcharts and pseudocodes
Dr Piyush Charan1.8K vistas
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
SURBHI SAROHA4.1K vistas
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
Sachin Goyani7.1K vistas
Chapter 6  algorithms and flow chartsChapter 6  algorithms and flow charts
Chapter 6 algorithms and flow charts
praveenjigajinni8.5K vistas
Algorithm DesignAlgorithm Design
Algorithm Design
MD.ASHIQUZZAMAN KHONDAKER1.2K vistas

Similar a What is algorithm

Daa chapter 1Daa chapter 1
Daa chapter 1B.Kirron Reddi
90 vistas22 diapositivas
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptxSayanSen36
7 vistas14 diapositivas

Similar a What is algorithm(20)

Algorithms notes 2   tutorials duniyaAlgorithms notes 2   tutorials duniya
Algorithms notes 2 tutorials duniya
TutorialsDuniya.com123 vistas
Introduction to algorithmsIntroduction to algorithms
Introduction to algorithms
Madishetty Prathibha297 vistas
Data structures   algorithms basicsData structures   algorithms basics
Data structures algorithms basics
ayeshasafdar821 vistas
Daa chapter 1Daa chapter 1
Daa chapter 1
B.Kirron Reddi90 vistas
DA lecture 3.pptxDA lecture 3.pptx
DA lecture 3.pptx
SayanSen367 vistas
ALGO VS FLOW.pptxALGO VS FLOW.pptx
ALGO VS FLOW.pptx
NagendraK183 vistas
chapter 1chapter 1
chapter 1
yatheesha4.4K vistas
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
ShaswatSurya144 vistas
Chap6Chap6
Chap6
artipradhan2.7K vistas
DATA STRUCTURE.pdfDATA STRUCTURE.pdf
DATA STRUCTURE.pdf
ibrahim386946251 vistas
DATA STRUCTUREDATA STRUCTURE
DATA STRUCTURE
RobinRohit2113 vistas
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
Rohit Shrivastava15.1K vistas
Logic Development and Algorithm.Logic Development and Algorithm.
Logic Development and Algorithm.
NandiniSidana334 vistas
11  Unit 1 Problem Solving Techniques11  Unit 1 Problem Solving Techniques
11 Unit 1 Problem Solving Techniques
praveenjigajinni2.6K vistas
Unit   ii algorithmUnit   ii algorithm
Unit ii algorithm
Tribhuvan University592 vistas
UNIT-2-PPTS-DAA.pptUNIT-2-PPTS-DAA.ppt
UNIT-2-PPTS-DAA.ppt
GovindUpadhyay25108 vistas
AOA Week 01.pptAOA Week 01.ppt
AOA Week 01.ppt
INAM3527823 vistas
GE8151 notes pdf.pdfGE8151 notes pdf.pdf
GE8151 notes pdf.pdf
payalkarmarkar1102 vistas
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva481 vistas

Último

Universe revised.pdfUniverse revised.pdf
Universe revised.pdfDrHafizKosar
88 vistas26 diapositivas
ICANNICANN
ICANNRajaulKarim20
61 vistas13 diapositivas
Industry4wrd.pptxIndustry4wrd.pptx
Industry4wrd.pptxBC Chew
157 vistas17 diapositivas

Último(20)

Universe revised.pdfUniverse revised.pdf
Universe revised.pdf
DrHafizKosar88 vistas
ICANNICANN
ICANN
RajaulKarim2061 vistas
Industry4wrd.pptxIndustry4wrd.pptx
Industry4wrd.pptx
BC Chew157 vistas
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 Newington117 vistas
ICS3211_lecture 08_2023.pdfICS3211_lecture 08_2023.pdf
ICS3211_lecture 08_2023.pdf
Vanessa Camilleri79 vistas
Class 10 English  lesson plansClass 10 English  lesson plans
Class 10 English lesson plans
TARIQ KHAN189 vistas
BYSC infopack.pdfBYSC infopack.pdf
BYSC infopack.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego160 vistas
ACTIVITY BOOK key water sports.pptxACTIVITY BOOK key water sports.pptx
ACTIVITY BOOK key water sports.pptx
Mar Caston Palacio275 vistas
231112 (WR) v1  ChatGPT OEB 2023.pdf231112 (WR) v1  ChatGPT OEB 2023.pdf
231112 (WR) v1 ChatGPT OEB 2023.pdf
WilfredRubens.com118 vistas
GSoC 2024GSoC 2024
GSoC 2024
DeveloperStudentClub1056 vistas
STYP infopack.pdfSTYP infopack.pdf
STYP infopack.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego159 vistas
Psychology KS4Psychology KS4
Psychology KS4
WestHatch54 vistas
Sociology KS5Sociology KS5
Sociology KS5
WestHatch52 vistas
Material del tarjetero LEES Travesías.docxMaterial del tarjetero LEES Travesías.docx
Material del tarjetero LEES Travesías.docx
Norberto Millán Muñoz60 vistas
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN92 vistas
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1460 vistas
Azure DevOps Pipeline setup for Mule APIs #36Azure DevOps Pipeline setup for Mule APIs #36
Azure DevOps Pipeline setup for Mule APIs #36
MysoreMuleSoftMeetup84 vistas
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptxGopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Gopal Chakraborty Memorial Quiz 2.0 Prelims.pptx
Debapriya Chakraborty479 vistas

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