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

PPT
Linked lists
PPTX
Algorithm and flowchart
PPTX
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
PDF
Matlab-Data types and operators
PPTX
Linked List
PPTX
Storage class in C Language
PPTX
Sparse matrix
PPTX
Stack in 8085 microprocessor
Linked lists
Algorithm and flowchart
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
Matlab-Data types and operators
Linked List
Storage class in C Language
Sparse matrix
Stack in 8085 microprocessor

What's hot (20)

PPT
Instruction format
PPT
Structure of a C program
PPT
C program compiler presentation
PPT
Parallel processing
PPTX
SOP POS, Minterm and Maxterm
PPTX
Data types
PPT
Searching in c language
PPTX
Register organization, stack
PPTX
3. Addressing Modes in 8085 microprocessor.pptx
PPTX
Control statements in c
PPTX
Data Structure - Elementary Data Organization
PPT
Number System
PPTX
Assembly Language
PPT
Control chap9
PPTX
Linear Search Presentation
PPTX
Unit 2. Elements of C
PPTX
Dynamic memory allocation in c
PPTX
PPTX
Queue - Data Structure - Notes
Instruction format
Structure of a C program
C program compiler presentation
Parallel processing
SOP POS, Minterm and Maxterm
Data types
Searching in c language
Register organization, stack
3. Addressing Modes in 8085 microprocessor.pptx
Control statements in c
Data Structure - Elementary Data Organization
Number System
Assembly Language
Control chap9
Linear Search Presentation
Unit 2. Elements of C
Dynamic memory allocation in c
Queue - Data Structure - Notes
Ad

Similar to Basics of Programming Algorithms and Flowchart (20)

PPT
PPTX
Software Development Technique (Flowchart & Documentation).pptx
PDF
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
PPT
PPT
Unit 1 python (2021 r)
PPTX
Software develop....
PPTX
Algorithm and flowchart2010
PDF
Algorithm & Flowchart.pdf
PDF
Flow charts
PDF
GE3151 PSPP _Unit 1 notes and Question bank.pdf
PPT
Chap3 flow charts
PPTX
Learn About Flow Chart Suitable for beginner and Diploma students
PPTX
Chapter 2- Study about Flow Chart before We learn about PLC
PPTX
FLOWCHART.pptx
PPTX
Flow Chart Guide PPT
PPTX
Introduction to computer science
PPTX
lecture 5
PPTX
What is algorithm
PPTX
Prepare and Interpret Technical Drawing.pptx
PDF
Problem solving methodology
Software Development Technique (Flowchart & Documentation).pptx
Python Unit 1.pdfPython Notes for Bharathiar university syllabus
Unit 1 python (2021 r)
Software develop....
Algorithm and flowchart2010
Algorithm & Flowchart.pdf
Flow charts
GE3151 PSPP _Unit 1 notes and Question bank.pdf
Chap3 flow charts
Learn About Flow Chart Suitable for beginner and Diploma students
Chapter 2- Study about Flow Chart before We learn about PLC
FLOWCHART.pptx
Flow Chart Guide PPT
Introduction to computer science
lecture 5
What is algorithm
Prepare and Interpret Technical Drawing.pptx
Problem solving methodology
Ad

More from Dr. Chandrakant Divate (20)

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

Recently uploaded (20)

PPTX
additive manufacturing of ss316l using mig welding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
composite construction of structures.pdf
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
web development for engineering and engineering
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPT
Mechanical Engineering MATERIALS Selection
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Digital Logic Computer Design lecture notes
PPT
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
CYBER-CRIMES AND SECURITY A guide to understanding
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
UNIT 4 Total Quality Management .pptx
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Internet of Things (IOT) - A guide to understanding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
composite construction of structures.pdf
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
web development for engineering and engineering
Operating System & Kernel Study Guide-1 - converted.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
Lecture Notes Electrical Wiring System Components
Mechanical Engineering MATERIALS Selection
Structs to JSON How Go Powers REST APIs.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Digital Logic Computer Design lecture notes
Project quality management in manufacturing

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.