SlideShare a Scribd company logo
Algorithms and Flow charts
C. P. Divate
Contents
 Today's Topic: Problem Solving Techniques
 We will learn
1. Problem Statement.
2. Algorithm
 Types, Example
3. Flowchart
 Symbols, Examples.
Problem Solving Techniques
Problem Statement:
Problem Statement:
 The problem statement is an integral part
of creating any Question.
 A good problem statement should
comprise,
 a clear and detailed problem description,
 supporting data,
 at least one sample test case with an
explanation, and
 constraints of the problem.
Problem Statement:
How to Specify the Problem Statement:
 Collect and analyze information and
data.
 Talk with people familiar with the
problem.
 If at all possible, view the problem first
hand.
 Confirm all findings.
Algorithm:
 Algorithm in C Language. Algorithm is a step-by-step
procedure, which defines a set of instructions to be
executed in a certain order to get the desired output.
 Algorithms are generally created independent of
underlying languages, The algorithm is part of the
blueprint or plan for the computer program, an algorithm
is:
“An effective procedure for solving a class of problems
in a finite number of steps.”
Every algorithm should have the following 5
characteristic feature:
1. Start
2. Input
3. Processing
4. Output
5. Termination
Flowchart:
What is a Flowchart?
 The flowchart is a means of graphically presenting the
flow of control of program.
 It is a diagrametic representation of how a process
works, showing, at a minimum, the sequence of steps.
 Flowcharts are generally drawn in the early stages of
program coding.
 Flowcharts are usually drawn using some standard
symbols.
Basics of Programming Algorithms and Flowchart
ADVANTAGES OF USING FLOWCHARTS:
 Communication: Flowcharts are better way of
communicating the logic of a system
 Effective analysis: Problem can be analyzed in more
effective way.
 Proper documentation: Flowcharts serve as a good
program documentation
 Efficient Coding: Flowcharts act as a guide or blueprint
during the systems analysis and program development
phase.
 Proper Debugging: Flowchart helps in debugging
process.
 Efficient Program Maintenance: The maintenance of
operating program becomes easy with the help of
flowchart.
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
SIMPLE FLOWCHARTS:
Flowcharts with Gant chart
The following sample flowcharts are easy to customize. Simply click
on a word, shape or rule to edit, change color or adjust an element.
Contents
• Slide 2: Basic Flowchart Shapes and Definitions
• Slide 3: Flowchart Example: Brewing Coffee
• Slide 4: Flowchart with Horizontal Swimlanes
• Slide 5: Flowchart with Vertical Swimlanes
A “Swimlane” indicates the department or system responsible for a
specific part of the workflow or process.
Basic Flowchart Shapes and Definitions
Start / End
The start or end of a workflow.
Project / Task
Process or action.
Split
or
Merge
Upright indicates a process split,
inverted indicates a merge of processes.
Off Page
Connector
Connector used to connect one
page of a flowchart to another.
Connector
Used to connect one part of
a flowchart to another.
Decision
Decision point in a
process or workflow.
Input / Output
Data: Inputs to, and outputs
from, a process.
Document
Document or report.
Manual
Input
Prompt for information, manually
entered into a system.
Coffee
Mug
Start
Flowchart Example: Brewing Coffee
Add Filter
Grind Beans
Pour
Brew
Read
Instructions
Cream
Coffee
Grinder
Task
Document Add Coffee
Add Water
Inputs
Inputs
Finish
Coffee
Pot
Coffee
Mug
Sugar
Drink
Task
Manual
Input
Decision Decision
Merge
No
No
Yes
Yes
Department
Group
Three
Start
Flowchart with Horizontal Swimlanes
Input
Task Manual Input
Merge Document
Decision Finish
Department
Department
No Yes
System One
Start
Process
Improvement
Process
Improved?
Input / Output
Produce
Documents
Flowchart with Vertical Swimlanes
System Two System Three System Four
Completed
Review data
Change Process
No
Yes
The flow chart of the if statement:
The flow chart of the if…else statement:
Flow chart of the while loop :
Flow chart of the for loop:
The flow chart of the switch statement:
Flowchart for finding the sum of first five natural numbers (
i.e. 1,2,3,4,5):
Flowchart (Example):
Flowchart to find the sum of first 50 natural numbers.
Start
Read A, B
Is A > B
Print A
Print B
End
Yes No
Flow Chart to find largest of two numbers:
Flowchart to find the largest of
three numbers A,B, and C:
NO
LIMITATIONS OF USING
FLOWCHARTS:
 Complex logic: Sometimes, the program logic is quite
complicated. In that case, flowchart becomes complex
and clumsy.
 Alterations and Modifications: If alterations are
required the flowchart may require re-drawing
completely.
 Reproduction: As the flowchart symbols cannot be
typed, reproduction of flowchart becomes a problem.
Flowchart (Exercise):
1. Draw a flowchart to depict all steps that you do
reach your college.
2. Draw Flowchart for Linear search.

More Related Content

PPTX
Flowchart and algorithem
ehsanullah786
 
PPTX
Bfs and Dfs
Masud Parvaze
 
PPTX
Presentation on queue
Rojan Pariyar
 
PPTX
Static Data Members and Member Functions
MOHIT AGARWAL
 
PPTX
Fundamentals of c programming
Chitrank Dixit
 
PPTX
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA
 
PPTX
Queue - Data Structure - Notes
Omprakash Chauhan
 
Flowchart and algorithem
ehsanullah786
 
Bfs and Dfs
Masud Parvaze
 
Presentation on queue
Rojan Pariyar
 
Static Data Members and Member Functions
MOHIT AGARWAL
 
Fundamentals of c programming
Chitrank Dixit
 
Features of machine language, assembly language, high level language & their ...
SHUBHAM PATIDAR FISHERIES ADDAA
 
Queue - Data Structure - Notes
Omprakash Chauhan
 

What's hot (20)

PPSX
Stacks Implementation and Examples
greatqadirgee4u
 
PPTX
Algorithm
IHTISHAM UL HAQ
 
PPT
Linked lists
SARITHA REDDY
 
PDF
Binary Search - Design & Analysis of Algorithms
Drishti Bhalla
 
PPTX
Subroutine
PoojaChoudhary313113
 
PPTX
Queue in Data Structure
Janki Shah
 
PPTX
Queue ppt
SouravKumar328
 
PPT
Infix prefix postfix
Self-Employed
 
PPT
Two’s complement
mayannpolisticoLNU
 
PPT
Queue AS an ADT (Abstract Data Type)
Self-Employed
 
PPTX
Hashing
Amar Jukuntla
 
PDF
Cell references
Ilgar Zarbaliyev
 
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
PPTX
Graph data structure
Tech_MX
 
PPTX
Producer consumer
Mohd Tousif
 
PPT
Spreadsheet Features
khawer001
 
PPTX
Stack using Linked List
Sayantan Sur
 
PPTX
Instruction pipeline: Computer Architecture
InteX Research Lab
 
PPTX
Sorting
Ashim Lamichhane
 
PPTX
control statements in python.pptx
Anshu Varma
 
Stacks Implementation and Examples
greatqadirgee4u
 
Algorithm
IHTISHAM UL HAQ
 
Linked lists
SARITHA REDDY
 
Binary Search - Design & Analysis of Algorithms
Drishti Bhalla
 
Queue in Data Structure
Janki Shah
 
Queue ppt
SouravKumar328
 
Infix prefix postfix
Self-Employed
 
Two’s complement
mayannpolisticoLNU
 
Queue AS an ADT (Abstract Data Type)
Self-Employed
 
Hashing
Amar Jukuntla
 
Cell references
Ilgar Zarbaliyev
 
Os Swapping, Paging, Segmentation and Virtual Memory
sgpraju
 
Graph data structure
Tech_MX
 
Producer consumer
Mohd Tousif
 
Spreadsheet Features
khawer001
 
Stack using Linked List
Sayantan Sur
 
Instruction pipeline: Computer Architecture
InteX Research Lab
 
control statements in python.pptx
Anshu Varma
 
Ad

Similar to Basics of Programming Algorithms and Flowchart (20)

PDF
Flow Chart @ppsc(2)
Amiya Bhusan
 
PDF
cpuppt-150726134330-lva1-app6891.pdf
SameerKhanPathan7
 
PPTX
ppt of flowchart
140120109032
 
PPTX
ppt on flow chart by harshid panchal with help of Sejal ma'm (git.org.in)
harshid panchal
 
PDF
Flow charts
Aditya Sharat
 
PPT
Flowchart
HRdebajit
 
PPTX
Software Development Technique (Flowchart & Documentation).pptx
OVIDMAMAH
 
PPTX
IDENTIFY THE DIFFERENT KINDS OF TECHNICAL DRAWING.pptx
MsPhotoprinting
 
PPTX
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
naagin12300
 
PPTX
EXPLAINS ABOUT ALGORITHM and FLOWCHART.pptx
ssuser4ff612
 
PPTX
Understanding basic flowchart symbol.pptx
xhelsayson
 
PPTX
Flowcharts
parimala123
 
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
PPTX
Flowchart
Gracetyl Baba
 
PPTX
Presentation on Flow chart in programming language flowchart.pptx
nomanjamal98
 
PPTX
What is algorithm
mshoaib15
 
PPTX
Fundamentals of-algorithm
International Islamic University
 
PPTX
3-1S Learning Presentation for PT's.pptx
SarieTomamakGonzaga
 
PPT
Lecture 4
Anshumali Singh
 
Flow Chart @ppsc(2)
Amiya Bhusan
 
cpuppt-150726134330-lva1-app6891.pdf
SameerKhanPathan7
 
ppt of flowchart
140120109032
 
ppt on flow chart by harshid panchal with help of Sejal ma'm (git.org.in)
harshid panchal
 
Flow charts
Aditya Sharat
 
Flowchart
HRdebajit
 
Software Development Technique (Flowchart & Documentation).pptx
OVIDMAMAH
 
IDENTIFY THE DIFFERENT KINDS OF TECHNICAL DRAWING.pptx
MsPhotoprinting
 
1141_237_747_Module_1_3_process_modelling_and-simulation.pptx
naagin12300
 
EXPLAINS ABOUT ALGORITHM and FLOWCHART.pptx
ssuser4ff612
 
Understanding basic flowchart symbol.pptx
xhelsayson
 
Flowcharts
parimala123
 
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
ANUSUYA S
 
Flowchart
Gracetyl Baba
 
Presentation on Flow chart in programming language flowchart.pptx
nomanjamal98
 
What is algorithm
mshoaib15
 
Fundamentals of-algorithm
International Islamic University
 
3-1S Learning Presentation for PT's.pptx
SarieTomamakGonzaga
 
Lecture 4
Anshumali Singh
 
Ad

More from Dr. Chandrakant Divate (20)

PDF
Yoga and Mediation Lab manual Final for MSBTE Diploma Student
Dr. Chandrakant Divate
 
PPTX
Perform sitting in Dhyan Mudra and meditating. Start with five minute and slo...
Dr. Chandrakant Divate
 
PPTX
Performing Akar, Omkar, Nadishuddhi, Bhastrika, Anulom Vilom, Kapalbhati, Bhr...
Dr. Chandrakant Divate
 
PPTX
Experiment -7 Performing Asanas In Standing Position
Dr. Chandrakant Divate
 
PPTX
Experiment -6 Performing Asanas In Sitting Position
Dr. Chandrakant Divate
 
PPTX
Performing Supine Position Asanas- Sleeping on your back.
Dr. Chandrakant Divate
 
PPTX
Performing Prone Position Asanas- Sleeping on your back.
Dr. Chandrakant Divate
 
PPTX
Perform all the postures of Surya Namaskar one by one in a very slow pace, af...
Dr. Chandrakant Divate
 
PPTX
Perform warming up exercises to prepare the body from head to toe for Yoga.
Dr. Chandrakant Divate
 
PPTX
An introduction to yoga - Brief History and Publicity of Yoga in Universe
Dr. Chandrakant Divate
 
PDF
Web Technology LAB MANUAL for Undergraduate Programs
Dr. Chandrakant Divate
 
PPTX
UNIVERSAL HUMAN VALUES- Harmony in the Nature
Dr. Chandrakant Divate
 
PPTX
Study of Computer Hardware System using Block Diagram
Dr. Chandrakant Divate
 
PPTX
Computer System Output Devices Peripherals
Dr. Chandrakant Divate
 
PPTX
Computer system Input Devices Peripherals
Dr. Chandrakant Divate
 
PPTX
Computer system Input and Output Devices
Dr. Chandrakant Divate
 
PPTX
Introduction to COMPUTER’S MEMORY RAM and ROM
Dr. Chandrakant Divate
 
PPTX
Introduction to Computer Hardware Systems
Dr. Chandrakant Divate
 
PPTX
Fundamentals of Internet of Things (IoT) Part-2
Dr. Chandrakant Divate
 
PPTX
Fundamentals of Internet of Things (IoT)
Dr. Chandrakant Divate
 
Yoga and Mediation Lab manual Final for MSBTE Diploma Student
Dr. Chandrakant Divate
 
Perform sitting in Dhyan Mudra and meditating. Start with five minute and slo...
Dr. Chandrakant Divate
 
Performing Akar, Omkar, Nadishuddhi, Bhastrika, Anulom Vilom, Kapalbhati, Bhr...
Dr. Chandrakant Divate
 
Experiment -7 Performing Asanas In Standing Position
Dr. Chandrakant Divate
 
Experiment -6 Performing Asanas In Sitting Position
Dr. Chandrakant Divate
 
Performing Supine Position Asanas- Sleeping on your back.
Dr. Chandrakant Divate
 
Performing Prone Position Asanas- Sleeping on your back.
Dr. Chandrakant Divate
 
Perform all the postures of Surya Namaskar one by one in a very slow pace, af...
Dr. Chandrakant Divate
 
Perform warming up exercises to prepare the body from head to toe for Yoga.
Dr. Chandrakant Divate
 
An introduction to yoga - Brief History and Publicity of Yoga in Universe
Dr. Chandrakant Divate
 
Web Technology LAB MANUAL for Undergraduate Programs
Dr. Chandrakant Divate
 
UNIVERSAL HUMAN VALUES- Harmony in the Nature
Dr. Chandrakant Divate
 
Study of Computer Hardware System using Block Diagram
Dr. Chandrakant Divate
 
Computer System Output Devices Peripherals
Dr. Chandrakant Divate
 
Computer system Input Devices Peripherals
Dr. Chandrakant Divate
 
Computer system Input and Output Devices
Dr. Chandrakant Divate
 
Introduction to COMPUTER’S MEMORY RAM and ROM
Dr. Chandrakant Divate
 
Introduction to Computer Hardware Systems
Dr. Chandrakant Divate
 
Fundamentals of Internet of Things (IoT) Part-2
Dr. Chandrakant Divate
 
Fundamentals of Internet of Things (IoT)
Dr. Chandrakant Divate
 

Recently uploaded (20)

PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
22PCOAM21 Data Quality Session 3 Data Quality.pptx
Guru Nanak Technical Institutions
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
easa module 3 funtamental electronics.pptx
tryanothert7
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
22PCOAM21 Data Quality Session 3 Data Quality.pptx
Guru Nanak Technical Institutions
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Activated Carbon for Water and Wastewater Treatment_ Integration of Adsorptio...
EmilianoRodriguezTll
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
LEAP-1B presedntation xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hatem173148
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
easa module 3 funtamental electronics.pptx
tryanothert7
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
Principles of Food Science and Nutritions
Dr. Yogesh Kumar Kosariya
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 

Basics of Programming Algorithms and Flowchart

  • 1. Algorithms and Flow charts C. P. Divate
  • 2. Contents  Today's Topic: Problem Solving Techniques  We will learn 1. Problem Statement. 2. Algorithm  Types, Example 3. Flowchart  Symbols, Examples.
  • 4. Problem Statement: Problem Statement:  The problem statement is an integral part of creating any Question.  A good problem statement should comprise,  a clear and detailed problem description,  supporting data,  at least one sample test case with an explanation, and  constraints of the problem.
  • 5. Problem Statement: How to Specify the Problem Statement:  Collect and analyze information and data.  Talk with people familiar with the problem.  If at all possible, view the problem first hand.  Confirm all findings.
  • 6. Algorithm:  Algorithm in C Language. Algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get the desired output.  Algorithms are generally created independent of underlying languages, The algorithm is part of the blueprint or plan for the computer program, an algorithm is: “An effective procedure for solving a class of problems in a finite number of steps.” Every algorithm should have the following 5 characteristic feature: 1. Start 2. Input 3. Processing 4. Output 5. Termination
  • 7. Flowchart: What is a Flowchart?  The flowchart is a means of graphically presenting the flow of control of program.  It is a diagrametic representation of how a process works, showing, at a minimum, the sequence of steps.  Flowcharts are generally drawn in the early stages of program coding.  Flowcharts are usually drawn using some standard symbols.
  • 9. ADVANTAGES OF USING FLOWCHARTS:  Communication: Flowcharts are better way of communicating the logic of a system  Effective analysis: Problem can be analyzed in more effective way.  Proper documentation: Flowcharts serve as a good program documentation  Efficient Coding: Flowcharts act as a guide or blueprint during the systems analysis and program development phase.  Proper Debugging: Flowchart helps in debugging process.  Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart.
  • 18. Flowcharts with Gant chart The following sample flowcharts are easy to customize. Simply click on a word, shape or rule to edit, change color or adjust an element. Contents • Slide 2: Basic Flowchart Shapes and Definitions • Slide 3: Flowchart Example: Brewing Coffee • Slide 4: Flowchart with Horizontal Swimlanes • Slide 5: Flowchart with Vertical Swimlanes A “Swimlane” indicates the department or system responsible for a specific part of the workflow or process.
  • 19. Basic Flowchart Shapes and Definitions Start / End The start or end of a workflow. Project / Task Process or action. Split or Merge Upright indicates a process split, inverted indicates a merge of processes. Off Page Connector Connector used to connect one page of a flowchart to another. Connector Used to connect one part of a flowchart to another. Decision Decision point in a process or workflow. Input / Output Data: Inputs to, and outputs from, a process. Document Document or report. Manual Input Prompt for information, manually entered into a system.
  • 20. Coffee Mug Start Flowchart Example: Brewing Coffee Add Filter Grind Beans Pour Brew Read Instructions Cream Coffee Grinder Task Document Add Coffee Add Water Inputs Inputs Finish Coffee Pot Coffee Mug Sugar Drink Task Manual Input Decision Decision Merge No No Yes Yes
  • 21. Department Group Three Start Flowchart with Horizontal Swimlanes Input Task Manual Input Merge Document Decision Finish Department Department No Yes
  • 22. System One Start Process Improvement Process Improved? Input / Output Produce Documents Flowchart with Vertical Swimlanes System Two System Three System Four Completed Review data Change Process No Yes
  • 23. The flow chart of the if statement:
  • 24. The flow chart of the if…else statement:
  • 25. Flow chart of the while loop :
  • 26. Flow chart of the for loop:
  • 27. The flow chart of the switch statement:
  • 28. Flowchart for finding the sum of first five natural numbers ( i.e. 1,2,3,4,5):
  • 29. Flowchart (Example): Flowchart to find the sum of first 50 natural numbers.
  • 30. Start Read A, B Is A > B Print A Print B End Yes No Flow Chart to find largest of two numbers:
  • 31. Flowchart to find the largest of three numbers A,B, and C: NO
  • 32. LIMITATIONS OF USING FLOWCHARTS:  Complex logic: Sometimes, the program logic is quite complicated. In that case, flowchart becomes complex and clumsy.  Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.  Reproduction: As the flowchart symbols cannot be typed, reproduction of flowchart becomes a problem.
  • 33. Flowchart (Exercise): 1. Draw a flowchart to depict all steps that you do reach your college. 2. Draw Flowchart for Linear search.