SlideShare a Scribd company logo
Algorithm and Flowcharts
Goals
By the end of this lecture you should …
Understand the role of a computer as a tool in
Computer Science.
Understand the study of algorithms.
Be able to identify how algorithms are developed &
evaluated.
Flowcharts
The Computer as a Tool
Much like the microscope does not define biology or
the test tube does not define chemistry, the computer
doesn't define Computer Science.
The computer is a tool by which Computer Scientists
accomplish their goals – to solve problems.
What is Computer Science?
NOT about coding or hardware or software!
Computer Science is about PROBLEM SOLVING
Computer Science is about DEVELOPING
ALGORITHMS to solve complex problems
Algorithm and Flowcharts
What is an Algorithm?
An algorithm is a well-developed, organized approach
to solving a complex problem.
It refers to the logic of the program .
It is step by step solution to given problem.
Now a Create Algorithm!!
Problem: Dad said you to buy books from a shop
10km from your house.
Step 1: GET THE NAME OF BOOK
STEP2: GET MONEY FROM DAD
STEP 3: GET THE ADDRESS OF THE SHOP
STEP4: TAKE BUS TO SHOP
STEP 5: SEARCH FOR THE BOOK IN SHOP
STEP 6: BUY THE BOOK FROM SHOPKEEPER
STEP 7: COME BACK TO HOME
Algorithm Characteristics
Precise and unambiguous
Each instruction should be executed in finite time.
Should not repeat loop for infinite.
Correct output.
Developing an Algorithm
1. Identify inputs to the system.
2. Identify output of the system.
3. Identify the process.
4. Break the solution to steps.
1. Identify the Inputs
What data do I need?
How will I get the data?
In what format will the data be?
2. Identify the Outputs
What outputs do I need to return to the user?
What format should the outputs take?
3. Identify the Processes
How can I manipulate data to produce meaningful
results?
Data vs. Information
4. Break the Solution to steps.
By breaking the solution to the steps we can easily
understand the logic of program
Create a program to get name and
roll number from user and print it!
Step 1: Initialize name as character and roll number as
integer
Step2: Display message “ENTER NAME:” on screen
Step 3: GET NAME FROM USER
STEP 4: Display message “ENTER R.NO:”
Step 5: GET Roll number from USER
STEP 6: CLEAR THE SCREEN
STEP 7: PRINT NAME on SCREEN
STEP 8: PRINT ROLL NUMBER on SCREEN
STEP 9: STOP
NOW WHAT IS FLOW CHART??
Flow Chart
Flow Chart is pictorial representation of an
algorithm.
Whatever we have done in algorithm we can
represent it in picture.
It is easy to understand.
Shows the flow of the instruction
FLOW CHART SYMBOLS
/output operations
Example:1
Example 2: ADD 2 INTEGERS
START
INPUT VALUE OF A
and B
SUM=A+B
PRINT :SUM
STOP
Any questions?
Thank You

More Related Content

PPTX
Command & statement
PPT
Algorithmic Notations
PPT
Regular expressions-Theory of computation
PPTX
Flowchart and algorithm
PPTX
Application of Stack For Expression Evaluation by Prakash Zodge DSY 41.pptx
PPT
Digital Logic & Design (DLD) presentation
DOC
Time and space complexity
PPTX
Types of algorithms
Command & statement
Algorithmic Notations
Regular expressions-Theory of computation
Flowchart and algorithm
Application of Stack For Expression Evaluation by Prakash Zodge DSY 41.pptx
Digital Logic & Design (DLD) presentation
Time and space complexity
Types of algorithms

What's hot (20)

PDF
Von Neumann Architecture
PPTX
Microprocessor and assambly language programming
PPTX
Merge Sort
PPTX
Analysis and Design of Algorithms
PPT
Fundamentals of the Analysis of Algorithm Efficiency
PPTX
Euler graph
PPTX
Algorithm Design & Implementation
DOC
Telephone directory in c
PPTX
Algorithms, flow charts and pseudocodes
PPTX
Classification of Programming Languages
PPTX
Lec 2 algorithms efficiency complexity
PDF
Bus structure in Computer Organization.pdf
PPTX
Automata presentation turing machine programming techniques
PPTX
Huffman's algorithm in Data Structure
PPTX
sorting and its types
PPTX
Lex & yacc
PPT
3 algorithm-and-flowchart
PDF
Introduction to Bus | Address, Data, Control Bus
PDF
Algorithm and Programming (Introduction of Algorithms)
Von Neumann Architecture
Microprocessor and assambly language programming
Merge Sort
Analysis and Design of Algorithms
Fundamentals of the Analysis of Algorithm Efficiency
Euler graph
Algorithm Design & Implementation
Telephone directory in c
Algorithms, flow charts and pseudocodes
Classification of Programming Languages
Lec 2 algorithms efficiency complexity
Bus structure in Computer Organization.pdf
Automata presentation turing machine programming techniques
Huffman's algorithm in Data Structure
sorting and its types
Lex & yacc
3 algorithm-and-flowchart
Introduction to Bus | Address, Data, Control Bus
Algorithm and Programming (Introduction of Algorithms)
Ad

Similar to Algorithm and Flowcharts (20)

PDF
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
PPTX
Algorithmics, intro to data structures.pptx
PPTX
Data Structures_Introduction to algorithms.pptx
PPTX
Binary to hexadecimal algorithmic old.pptx
PPTX
FDFDRERSFDSGAGAFGGFGFGFGFGAFDGFDGFGFFAGFGGDF
PPTX
flowchart & algorithms
PPTX
Algo_Lecture01.pptx
PDF
Introduction to analysis algorithm in computer Science
PDF
introduction to analysis of algorithm in computer science
PDF
Basics of Algorithms.pdf
PPTX
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
PPTX
Algorithm and flowchart with pseudo code
PDF
c_algo_flowchart.pdf
PPT
AOA Week 01.ppt
PPTX
Unit 1(1).pptx Program Logic Development
PPTX
UNIT-1.pptx python for engineering first year students
PDF
Introduction to data structure and algorithm
PPT
Lecture01 algorithm analysis
PPSX
Ds03 part i algorithms by jyoti lakhani
PDF
Lecture 2 role of algorithms in computing
PROGRAMMING IN C UNIT I.pdffffffffffffffffffffffffd
Algorithmics, intro to data structures.pptx
Data Structures_Introduction to algorithms.pptx
Binary to hexadecimal algorithmic old.pptx
FDFDRERSFDSGAGAFGGFGFGFGFGAFDGFDGFGFFAGFGGDF
flowchart & algorithms
Algo_Lecture01.pptx
Introduction to analysis algorithm in computer Science
introduction to analysis of algorithm in computer science
Basics of Algorithms.pdf
C LANGUAGE-FLOWCHARTS,PSEUDOCODE,ALGORITHMS APPROCHES
Algorithm and flowchart with pseudo code
c_algo_flowchart.pdf
AOA Week 01.ppt
Unit 1(1).pptx Program Logic Development
UNIT-1.pptx python for engineering first year students
Introduction to data structure and algorithm
Lecture01 algorithm analysis
Ds03 part i algorithms by jyoti lakhani
Lecture 2 role of algorithms in computing
Ad

More from Sabik T S (7)

PPT
Managers roles and skills
PPTX
Introduction to C programming
PPTX
Data Input and Output
PPT
decision table training session
DOC
cover letter
PPT
pseudo code basics
PDF
Types of welding
Managers roles and skills
Introduction to C programming
Data Input and Output
decision table training session
cover letter
pseudo code basics
Types of welding

Recently uploaded (20)

PDF
Computing-Curriculum for Schools in Ghana
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Lesson notes of climatology university.
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Institutional Correction lecture only . . .
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Presentation on HIE in infants and its manifestations
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
01-Introduction-to-Information-Management.pdf
Computing-Curriculum for Schools in Ghana
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Chinmaya Tiranga quiz Grand Finale.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Lesson notes of climatology university.
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Module 4: Burden of Disease Tutorial Slides S2 2025
STATICS OF THE RIGID BODIES Hibbelers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Institutional Correction lecture only . . .
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Presentation on HIE in infants and its manifestations
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
Final Presentation General Medicine 03-08-2024.pptx
A systematic review of self-coping strategies used by university students to ...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Anesthesia in Laparoscopic Surgery in India
01-Introduction-to-Information-Management.pdf

Algorithm and Flowcharts

  • 2. Goals By the end of this lecture you should … Understand the role of a computer as a tool in Computer Science. Understand the study of algorithms. Be able to identify how algorithms are developed & evaluated. Flowcharts
  • 3. The Computer as a Tool Much like the microscope does not define biology or the test tube does not define chemistry, the computer doesn't define Computer Science. The computer is a tool by which Computer Scientists accomplish their goals – to solve problems.
  • 4. What is Computer Science? NOT about coding or hardware or software! Computer Science is about PROBLEM SOLVING Computer Science is about DEVELOPING ALGORITHMS to solve complex problems
  • 6. What is an Algorithm? An algorithm is a well-developed, organized approach to solving a complex problem. It refers to the logic of the program . It is step by step solution to given problem.
  • 7. Now a Create Algorithm!! Problem: Dad said you to buy books from a shop 10km from your house. Step 1: GET THE NAME OF BOOK STEP2: GET MONEY FROM DAD STEP 3: GET THE ADDRESS OF THE SHOP STEP4: TAKE BUS TO SHOP STEP 5: SEARCH FOR THE BOOK IN SHOP STEP 6: BUY THE BOOK FROM SHOPKEEPER STEP 7: COME BACK TO HOME
  • 8. Algorithm Characteristics Precise and unambiguous Each instruction should be executed in finite time. Should not repeat loop for infinite. Correct output.
  • 9. Developing an Algorithm 1. Identify inputs to the system. 2. Identify output of the system. 3. Identify the process. 4. Break the solution to steps.
  • 10. 1. Identify the Inputs What data do I need? How will I get the data? In what format will the data be?
  • 11. 2. Identify the Outputs What outputs do I need to return to the user? What format should the outputs take?
  • 12. 3. Identify the Processes How can I manipulate data to produce meaningful results? Data vs. Information
  • 13. 4. Break the Solution to steps. By breaking the solution to the steps we can easily understand the logic of program
  • 14. Create a program to get name and roll number from user and print it! Step 1: Initialize name as character and roll number as integer Step2: Display message “ENTER NAME:” on screen Step 3: GET NAME FROM USER STEP 4: Display message “ENTER R.NO:” Step 5: GET Roll number from USER STEP 6: CLEAR THE SCREEN STEP 7: PRINT NAME on SCREEN STEP 8: PRINT ROLL NUMBER on SCREEN STEP 9: STOP
  • 15. NOW WHAT IS FLOW CHART??
  • 16. Flow Chart Flow Chart is pictorial representation of an algorithm. Whatever we have done in algorithm we can represent it in picture. It is easy to understand. Shows the flow of the instruction
  • 19. Example 2: ADD 2 INTEGERS START INPUT VALUE OF A and B SUM=A+B PRINT :SUM STOP