Algorithm and flowchart

Rabin BK
Rabin BKStudent at College Of Applied Business (Studying BSc.CSIT) um School
Algorithm and Flowchart
1
Presented by: The Anonymous
BSc.CSIT 1st semester
What is algorithm ?
Properties of algorithm
What is flowchart ?
Merits of flowchart
Demerits of flowchart
Algorithm and Flowchart in Coding
References
Queries
2
What is an algorithm ?
Named after Persian mathematician Mohammad Al-
Khwarizmi
A sequential solution of any problem
Written in human understandable form
Requires a clear understanding of the problem
3
Example:
1. Algorithm for sum of two numbers
Step 1: Start
Step 2: Enter two numbers in a and b
Step 3: Add a and b and store in c
Step 4: Display c
Step 5: End
4
2. Algorithm to check whether the input number is
even or odd
Step 1: Start
Step 2: Enter a number in a
Step 3: Check if it is even or odd
Step 4: If even print “even” (a mod 2 = 0 )
Step 5: Else print “odd”
Step 6: End
5
Properties of algorithm
Finiteness
Properly defined
Input
Output
Effectiveness
Independent to any other programming language
6
7
Now moving on to next
programming tool
What is flowchart?
Diagrammatic representation of algorithm
An important programming tool
Solving a problem using figures
Different figures having different functions
8
Merits of flowchart
•Easy to explain program logic
•Makes coding effective and faster
•Effective communication
•Different symbols used
•Serve as documentation
•Easy to detect, locate and remove bugs in a program
9
Time consuming and monotonous job
Difficult to maintain
Occupies space while documentation
Translation to computer program is difficult
10
11
But what
might be the
symbols used
in flowchart?
Symbol Function Description
Start/End Start and end point
Input/output Input and output operations
Processing operation Editing and calculation of data
Decision Check logical condition
Connector Indicates logical flow from one
page to another
Direction of logic Direction of flow of logic
Comment Indicates any comments for
explanatory notes
12
Example 1: Flowchart add sum of two numbers
13
START
Input a and b
C = a + b
Display c
END
User can enter
any two numbers
Example 2: Flowchart to check whether the input number is
even or odd
14
START
Accept a number
Divide it by 2
END
Is remainder = 0 ?
Display odd Display even
YesNo
START
Accept a number
15
Using Algorithm and Flowchart in Coding
Coding
Enter numbers in a and b: 5
6
Displayed c: 11
References:
Websites:
google.com
wikipedia.com
linkedin.com
External sources:
Text book: Fundamentals of computer programming
16
Queries
17
1 von 17

Recomendados

Algorithms and Flowcharts von
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
309.9K views31 Folien
Algorithm and flowchart von
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
7.1K views34 Folien
What is an algorithm? von
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
18.5K views33 Folien
Flowchart and algorithm von
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmDHANIK VIKRANT
732 views28 Folien
Flowcharts and algorithms von
Flowcharts and algorithmsFlowcharts and algorithms
Flowcharts and algorithmsStudent
5.9K views12 Folien
Unit 1-problem solving with algorithm von
Unit 1-problem solving with algorithmUnit 1-problem solving with algorithm
Unit 1-problem solving with algorithmrajkumar1631010038
6.9K views26 Folien

Más contenido relacionado

Was ist angesagt?

Chapter 2 Representation Of Algorithms 2 von
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2Li-Anne Serrano
3.3K views18 Folien
Algorithm von
AlgorithmAlgorithm
AlgorithmIHTISHAM UL HAQ
7.6K views16 Folien
Algorithms and flowcharts von
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowchartsSamuel Igbanogu
4.2K views36 Folien
Algorithms, flow charts and pseudocodes von
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesSatveer Mann
375 views15 Folien
Algorithm and c language von
Algorithm and c languageAlgorithm and c language
Algorithm and c languagekamalbeydoun
1.3K views43 Folien
Lect 1. introduction to programming languages von
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
235.2K views33 Folien

Was ist angesagt?(20)

Chapter 2 Representation Of Algorithms 2 von Li-Anne Serrano
Chapter 2  Representation Of  Algorithms 2Chapter 2  Representation Of  Algorithms 2
Chapter 2 Representation Of Algorithms 2
Li-Anne Serrano3.3K views
Algorithms, flow charts and pseudocodes von Satveer Mann
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodes
Satveer Mann375 views
Algorithm and c language von kamalbeydoun
Algorithm and c languageAlgorithm and c language
Algorithm and c language
kamalbeydoun1.3K views
Lect 1. introduction to programming languages von Varun Garg
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
Varun Garg235.2K views
Algorithm and Flowcharts von SURBHI SAROHA
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
SURBHI SAROHA4.1K views
Introduction to Algorithms & flow charts von Yash Gupta
Introduction to Algorithms & flow chartsIntroduction to Algorithms & flow charts
Introduction to Algorithms & flow charts
Yash Gupta2.4K views
INTRODUCTION TO C PROGRAMMING von Abhishek Dwivedi
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi208.4K views
ppt of flowchart von 140120109032
ppt of flowchartppt of flowchart
ppt of flowchart
14012010903238.9K views
Graph in data structure von Abrish06
Graph in data structureGraph in data structure
Graph in data structure
Abrish0642.9K views
Basic programming concepts von salmankhan570
Basic programming conceptsBasic programming concepts
Basic programming concepts
salmankhan57010.8K views

Destacado

3 algorithm-and-flowchart von
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchartRohit Shrivastava
15.1K views37 Folien
Flowchart and algorithm von
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithmSayali Shivarkar
69.8K views10 Folien
Algorithm and flowchart2010 von
Algorithm and flowchart2010Algorithm and flowchart2010
Algorithm and flowchart2010Jordan Delacruz
22.5K views12 Folien
Flowchart Power Point von
Flowchart Power PointFlowchart Power Point
Flowchart Power PointSlideShop.com
974 views16 Folien
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart von
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchartvinay arora
9K views43 Folien
Flowchart von
FlowchartFlowchart
FlowchartGautam Roy
15.2K views73 Folien

Destacado(20)

C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart von vinay arora
C Prog. - Introduction to Hardware, Software, Algorithm & FlowchartC Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
C Prog. - Introduction to Hardware, Software, Algorithm & Flowchart
vinay arora9K views
Flowchart von Gautam Roy
FlowchartFlowchart
Flowchart
Gautam Roy15.2K views
Programming process and flowchart von hermiraguilar
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
hermiraguilar9.6K views
Pseudocode-Flowchart von lotlot
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
lotlot38.5K views
Flowchart Diagram Templates by Creately von Creately
Flowchart Diagram Templates by CreatelyFlowchart Diagram Templates by Creately
Flowchart Diagram Templates by Creately
Creately5.7K views
Flowchart von HRdebajit
FlowchartFlowchart
Flowchart
HRdebajit23.1K views
Algorithmsandflowcharts1 von luhkahreth
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
luhkahreth49.7K views
Best Techniques To Design Programs - Program Designing Techniques von Tech
Best Techniques To Design Programs - Program Designing TechniquesBest Techniques To Design Programs - Program Designing Techniques
Best Techniques To Design Programs - Program Designing Techniques
Tech849 views
Flowchart w/program structure von nasa9084
Flowchart w/program structureFlowchart w/program structure
Flowchart w/program structure
nasa9084 424 views

Similar a Algorithm and flowchart

flowchart & algorithms von
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
7K views31 Folien
Programming flowcharts for C Language von
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C LanguageAryan Ajmer
44.1K views22 Folien
lecture 5 von
 lecture 5 lecture 5
lecture 5umardanjumamaiwada
191 views25 Folien
Introduction to computer science von
Introduction to computer scienceIntroduction to computer science
Introduction to computer scienceumardanjumamaiwada
86 views25 Folien
Chap6 von
Chap6Chap6
Chap6artipradhan
2.7K views21 Folien
Algorithm pseudocode flowchart program notes von
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notesArghodeepPaul
61 views6 Folien

Similar a Algorithm and flowchart(20)

flowchart & algorithms von Student
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
Student7K views
Programming flowcharts for C Language von Aryan Ajmer
Programming flowcharts for C LanguageProgramming flowcharts for C Language
Programming flowcharts for C Language
Aryan Ajmer44.1K views
Algorithm pseudocode flowchart program notes von ArghodeepPaul
Algorithm pseudocode flowchart program notesAlgorithm pseudocode flowchart program notes
Algorithm pseudocode flowchart program notes
ArghodeepPaul61 views
algorithms and flow chart overview.pdf von AmanPratik11
algorithms and flow chart overview.pdfalgorithms and flow chart overview.pdf
algorithms and flow chart overview.pdf
AmanPratik11188 views
Algorithm and flowchart.pptx von MaheShiva
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
MaheShiva489 views
Algorithm Design & Implementation von Gaditek
Algorithm Design & ImplementationAlgorithm Design & Implementation
Algorithm Design & Implementation
Gaditek3.9K views
learn computer science.ppt von faithola1
learn computer science.pptlearn computer science.ppt
learn computer science.ppt
faithola13 views
programming concept von Nehabhy
programming conceptprogramming concept
programming concept
Nehabhy900 views
Unit 1 python (2021 r) von praveena p
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
praveena p528 views

Más de Rabin BK

Artificial Intelligence in E-commerce von
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerceRabin BK
1K views11 Folien
Three address code generation von
Three address code generationThree address code generation
Three address code generationRabin BK
672 views10 Folien
Consumer Oriented Application, Mercantile process and Mercantile models von
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile modelsRabin BK
4.1K views9 Folien
Clang compiler ` von
Clang compiler `Clang compiler `
Clang compiler `Rabin BK
275 views10 Folien
Simple Mail Transfer Protocol von
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer ProtocolRabin BK
175 views8 Folien
HTML text formatting tags von
HTML text formatting tagsHTML text formatting tags
HTML text formatting tagsRabin BK
886 views7 Folien

Más de Rabin BK(20)

Artificial Intelligence in E-commerce von Rabin BK
Artificial Intelligence in E-commerceArtificial Intelligence in E-commerce
Artificial Intelligence in E-commerce
Rabin BK1K views
Three address code generation von Rabin BK
Three address code generationThree address code generation
Three address code generation
Rabin BK672 views
Consumer Oriented Application, Mercantile process and Mercantile models von Rabin BK
Consumer Oriented Application, Mercantile process and Mercantile modelsConsumer Oriented Application, Mercantile process and Mercantile models
Consumer Oriented Application, Mercantile process and Mercantile models
Rabin BK4.1K views
Clang compiler ` von Rabin BK
Clang compiler `Clang compiler `
Clang compiler `
Rabin BK275 views
Simple Mail Transfer Protocol von Rabin BK
Simple Mail Transfer ProtocolSimple Mail Transfer Protocol
Simple Mail Transfer Protocol
Rabin BK175 views
HTML text formatting tags von Rabin BK
HTML text formatting tagsHTML text formatting tags
HTML text formatting tags
Rabin BK886 views
Data encryption in database management system von Rabin BK
Data encryption in database management systemData encryption in database management system
Data encryption in database management system
Rabin BK1.2K views
Object Relational Database Management System(ORDBMS) von Rabin BK
Object Relational Database Management System(ORDBMS)Object Relational Database Management System(ORDBMS)
Object Relational Database Management System(ORDBMS)
Rabin BK2.5K views
Kolmogorov Smirnov von Rabin BK
Kolmogorov SmirnovKolmogorov Smirnov
Kolmogorov Smirnov
Rabin BK859 views
Job sequencing in Data Strcture von Rabin BK
Job sequencing in Data StrctureJob sequencing in Data Strcture
Job sequencing in Data Strcture
Rabin BK547 views
Stack Data Structure von Rabin BK
Stack Data StructureStack Data Structure
Stack Data Structure
Rabin BK276 views
Bluetooth von Rabin BK
BluetoothBluetooth
Bluetooth
Rabin BK50 views
Data Science von Rabin BK
Data ScienceData Science
Data Science
Rabin BK199 views
Graphics_3D viewing von Rabin BK
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
Rabin BK392 views
Neural Netwrok von Rabin BK
Neural NetwrokNeural Netwrok
Neural Netwrok
Rabin BK139 views
Watermarking in digital images von Rabin BK
Watermarking in digital imagesWatermarking in digital images
Watermarking in digital images
Rabin BK51 views
Heun's Method von Rabin BK
Heun's MethodHeun's Method
Heun's Method
Rabin BK2K views
Mutual Exclusion von Rabin BK
Mutual ExclusionMutual Exclusion
Mutual Exclusion
Rabin BK355 views
Systems Usage von Rabin BK
Systems UsageSystems Usage
Systems Usage
Rabin BK19 views
Manager of a company von Rabin BK
Manager of a companyManager of a company
Manager of a company
Rabin BK62 views

Último

JiscOAWeek_LAIR_slides_October2023.pptx von
JiscOAWeek_LAIR_slides_October2023.pptxJiscOAWeek_LAIR_slides_October2023.pptx
JiscOAWeek_LAIR_slides_October2023.pptxJisc
96 views8 Folien
Narration lesson plan.docx von
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docxTARIQ KHAN
112 views11 Folien
Drama KS5 Breakdown von
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 BreakdownWestHatch
79 views2 Folien
The Accursed House by Émile Gaboriau von
The Accursed House  by Émile GaboriauThe Accursed House  by Émile Gaboriau
The Accursed House by Émile GaboriauDivyaSheta
201 views15 Folien
Recap of our Class von
Recap of our ClassRecap of our Class
Recap of our ClassCorinne Weisgerber
77 views15 Folien
Solar System and Galaxies.pptx von
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptxDrHafizKosar
91 views26 Folien

Último(20)

JiscOAWeek_LAIR_slides_October2023.pptx von Jisc
JiscOAWeek_LAIR_slides_October2023.pptxJiscOAWeek_LAIR_slides_October2023.pptx
JiscOAWeek_LAIR_slides_October2023.pptx
Jisc96 views
Narration lesson plan.docx von TARIQ KHAN
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN112 views
Drama KS5 Breakdown von WestHatch
Drama KS5 BreakdownDrama KS5 Breakdown
Drama KS5 Breakdown
WestHatch79 views
The Accursed House by Émile Gaboriau von DivyaSheta
The Accursed House  by Émile GaboriauThe Accursed House  by Émile Gaboriau
The Accursed House by Émile Gaboriau
DivyaSheta201 views
Solar System and Galaxies.pptx von DrHafizKosar
Solar System and Galaxies.pptxSolar System and Galaxies.pptx
Solar System and Galaxies.pptx
DrHafizKosar91 views
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx von ISSIP
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptxEIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
EIT-Digital_Spohrer_AI_Intro 20231128 v1.pptx
ISSIP369 views
PLASMA PROTEIN (2).pptx von MEGHANA C
PLASMA PROTEIN (2).pptxPLASMA PROTEIN (2).pptx
PLASMA PROTEIN (2).pptx
MEGHANA C68 views
Narration ppt.pptx von TARIQ KHAN
Narration  ppt.pptxNarration  ppt.pptx
Narration ppt.pptx
TARIQ KHAN135 views
Classification of crude drugs.pptx von GayatriPatra14
Classification of crude drugs.pptxClassification of crude drugs.pptx
Classification of crude drugs.pptx
GayatriPatra1486 views
When Sex Gets Complicated: Porn, Affairs, & Cybersex von Marlene Maheu
When Sex Gets Complicated: Porn, Affairs, & CybersexWhen Sex Gets Complicated: Porn, Affairs, & Cybersex
When Sex Gets Complicated: Porn, Affairs, & Cybersex
Marlene Maheu67 views
Are we onboard yet University of Sussex.pptx von Jisc
Are we onboard yet University of Sussex.pptxAre we onboard yet University of Sussex.pptx
Are we onboard yet University of Sussex.pptx
Jisc96 views
Community-led Open Access Publishing webinar.pptx von Jisc
Community-led Open Access Publishing webinar.pptxCommunity-led Open Access Publishing webinar.pptx
Community-led Open Access Publishing webinar.pptx
Jisc93 views

Algorithm and flowchart

  • 1. Algorithm and Flowchart 1 Presented by: The Anonymous BSc.CSIT 1st semester
  • 2. What is algorithm ? Properties of algorithm What is flowchart ? Merits of flowchart Demerits of flowchart Algorithm and Flowchart in Coding References Queries 2
  • 3. What is an algorithm ? Named after Persian mathematician Mohammad Al- Khwarizmi A sequential solution of any problem Written in human understandable form Requires a clear understanding of the problem 3
  • 4. Example: 1. Algorithm for sum of two numbers Step 1: Start Step 2: Enter two numbers in a and b Step 3: Add a and b and store in c Step 4: Display c Step 5: End 4
  • 5. 2. Algorithm to check whether the input number is even or odd Step 1: Start Step 2: Enter a number in a Step 3: Check if it is even or odd Step 4: If even print “even” (a mod 2 = 0 ) Step 5: Else print “odd” Step 6: End 5
  • 6. Properties of algorithm Finiteness Properly defined Input Output Effectiveness Independent to any other programming language 6
  • 7. 7 Now moving on to next programming tool
  • 8. What is flowchart? Diagrammatic representation of algorithm An important programming tool Solving a problem using figures Different figures having different functions 8
  • 9. Merits of flowchart •Easy to explain program logic •Makes coding effective and faster •Effective communication •Different symbols used •Serve as documentation •Easy to detect, locate and remove bugs in a program 9
  • 10. Time consuming and monotonous job Difficult to maintain Occupies space while documentation Translation to computer program is difficult 10
  • 11. 11 But what might be the symbols used in flowchart?
  • 12. Symbol Function Description Start/End Start and end point Input/output Input and output operations Processing operation Editing and calculation of data Decision Check logical condition Connector Indicates logical flow from one page to another Direction of logic Direction of flow of logic Comment Indicates any comments for explanatory notes 12
  • 13. Example 1: Flowchart add sum of two numbers 13 START Input a and b C = a + b Display c END User can enter any two numbers
  • 14. Example 2: Flowchart to check whether the input number is even or odd 14 START Accept a number Divide it by 2 END Is remainder = 0 ? Display odd Display even YesNo START Accept a number
  • 15. 15 Using Algorithm and Flowchart in Coding Coding Enter numbers in a and b: 5 6 Displayed c: 11