SlideShare uma empresa Scribd logo
1 de 26
Types of OS:
Operating System can also be classified as,

Single User Systems



Multi User Systems
Single User Systems:


Provides a platform for only one user at a
time.



They are popularly associated with Desk Top
operating system which run on standalone
systems where no user accounts are
required.
Example: DOS


Multi-User Systems:


Provides regulated access for a number of users by
maintaining a database of known users.



Refers to computer systems that support two or more
simultaneous users.



Another term for multi-user is time sharing.



Ex: All mainframes and are multi-user systems.
Example: Unix


Contents


Today's Topic: Problem Solving Techniques



We will learn
1.
2.

Problem Statement.
Algorithm

Types, Example
Flowchart
 Symbols, Examples.


1.
Problem Solving
Techniques
Problem Statement:
Problem Statement help diagnose the situation so that
your focus is on the problem, helpful tools at this stage
include Algorithms and flowcharts for identifying the
expected steps of a process. Therefore to solve any
problem,





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:
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.
2.
3.
4.
5.

Input
Output
Definiteness
Effectiveness
Termination
Algorithm (Contd…):


1)
2)
3)
4)

5)

6)

To find largest of three numbers
Start
Read 3 numbers: num1, num2, num3
if num1 > num2 then go to step 5
if num2 > num3 then
print num2 is largest
else
print num3 is largest
goto step 6
if num1 > num3 then
print num1 is largest
else
print num3 is largest
end.
Algorithm (Contd…):
Example: One of the simplest algorithms is to find the
largest number in an (unsorted) list of numbers.
High-level description:
1)
2)
3)

Assume the first item is largest.
Look at each of the remaining items in the list and if
it is larger than the largest item so far, make a note
of it.
The last noted item is the largest in the list when
the process is complete.
Algorithm (Contd…):
Formal description: Written in prose but much closer to
the high-level language of a computer program, the
following is the more formal coding of the algorithm in
pseudo code (find the largest number in an
(unsorted) list of numbers)
Algorithm LargestNumber
Input: A non-empty list of numbers L.
Output: The largest number in the list L.
1)
2)
3)
4)

largest ← L0 for each item in the list L, do
if the item > largest, then
largest ← the item
return largest
Flowchart:
What is a Flowchart?






The flowchart is a means of visually presenting the flow
of control through an information processing systems,
the operations performed within the system and the
sequence in which they are performed.
It is a graphic representation of how a process works,
showing, at a minimum, the sequence of steps.
Flowcharts are generally drawn in the early stages of
formulating computer solutions.
Flowchart (Contd…):
Guideline for drawing a flowchart:
Flowcharts are usually drawn using some standard
symbols; Some standard symbols, which are frequently
required for flowcharting many computer programs are
shown below,-
Flowchart (Contd…):
A set of useful standard Flowchart
symbols:








Rounded box
use it to represent an event which occurs automatically.
Rectangle or box
use it to represent an event which is controlled within
the process. Typically this will be a step or action which
is taken.
Diamond
use it to represent a decision point in the process.
Circle
use it to represent a point at which the flowchart
connects with another process.
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.
ADVANTAGES OF USING
FLOWCHARTS (Contd…):


Proper Debugging: Flowchart helps in debugging
process.



Efficient Program Maintenance: The maintenance of
operating program becomes easy with the help of
flowchart.
Flow chart of the while loop :
Flow chart of the for loop:
The flow chart of the if statement:
The flow chart of the if…else statement:
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.
Flow Chart to find largest of two numbers:
Start

Read A, B

Yes

Is A > B

No
Print B

Print A
End
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.

Mais conteúdo relacionado

Mais procurados

What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm designNahid Hasan
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and FlowchartsDeva Singh
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsMohamed Loey
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESsuthi
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)praveena p
 
Algorithm and c language
Algorithm and c languageAlgorithm and c language
Algorithm and c languagekamalbeydoun
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxSyed Zaid Irshad
 
Python unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusPython unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusDhivyaSubramaniyam
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and ComplexityRajandeep Gill
 

Mais procurados (20)

What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
Our presentation on algorithm design
Our presentation on algorithm designOur presentation on algorithm design
Our presentation on algorithm design
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Infix to postfix conversion
Infix to postfix conversionInfix to postfix conversion
Infix to postfix conversion
 
Algorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to AlgorithmsAlgorithms Lecture 1: Introduction to Algorithms
Algorithms Lecture 1: Introduction to Algorithms
 
AUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTESAUTOMATA THEORY - SHORT NOTES
AUTOMATA THEORY - SHORT NOTES
 
Unit 1 python (2021 r)
Unit 1 python (2021 r)Unit 1 python (2021 r)
Unit 1 python (2021 r)
 
Control statements
Control statementsControl statements
Control statements
 
C if else
C if elseC if else
C if else
 
Algorithm and c language
Algorithm and c languageAlgorithm and c language
Algorithm and c language
 
Design and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptxDesign and Analysis of Algorithms.pptx
Design and Analysis of Algorithms.pptx
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Python unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabusPython unit 2 as per Anna university syllabus
Python unit 2 as per Anna university syllabus
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Turing machine-TOC
Turing machine-TOCTuring machine-TOC
Turing machine-TOC
 
Asymptotic Notation and Complexity
Asymptotic Notation and ComplexityAsymptotic Notation and Complexity
Asymptotic Notation and Complexity
 
History of c
History of cHistory of c
History of c
 
Loops in C
Loops in CLoops in C
Loops in C
 
Lecture: Automata
Lecture: AutomataLecture: Automata
Lecture: Automata
 

Destaque (14)

Flowchart and algorithm
Flowchart and algorithmFlowchart and algorithm
Flowchart and algorithm
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
1
11
1
 
Flow chart
Flow chartFlow chart
Flow chart
 
Algorithms & flowcharts
Algorithms & flowchartsAlgorithms & flowcharts
Algorithms & flowcharts
 
Flow chart
Flow chartFlow chart
Flow chart
 
Binary search
Binary searchBinary search
Binary search
 
Electronic Voting System
Electronic Voting SystemElectronic Voting System
Electronic Voting System
 
Linear search algorithm
Linear search algorithmLinear search algorithm
Linear search algorithm
 
Nursing Audit
Nursing AuditNursing Audit
Nursing Audit
 
Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer   Unit 1. Problem Solving with Computer
Unit 1. Problem Solving with Computer
 
Chapter 11 - Sorting and Searching
Chapter 11 - Sorting and SearchingChapter 11 - Sorting and Searching
Chapter 11 - Sorting and Searching
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
3 algorithm-and-flowchart
3 algorithm-and-flowchart3 algorithm-and-flowchart
3 algorithm-and-flowchart
 

Semelhante a Algorithms and flowcharts

DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME
DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME
DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME ijdpsjournal
 
Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Prashanth Shivakumar
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithmmshoaib15
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxAmr E. Mohamed
 
B.sc i agri u 2 computer software
B.sc i agri u 2 computer softwareB.sc i agri u 2 computer software
B.sc i agri u 2 computer softwareRai University
 
B.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer softwareB.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer softwareRai University
 
B.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer softwareB.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer softwareRai University
 
B.sc i cs u 2 computer software
B.sc i cs u 2 computer softwareB.sc i cs u 2 computer software
B.sc i cs u 2 computer softwareRai University
 
B.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer softwareB.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer softwareRai University
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure Prof Ansari
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sitSaurabh846965
 

Semelhante a Algorithms and flowcharts (20)

Lect1.pptx
Lect1.pptxLect1.pptx
Lect1.pptx
 
DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME
DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME
DETECTION OF CONTROL FLOW ERRORS IN PARALLEL PROGRAMS AT COMPILE TIME
 
Lec1
Lec1Lec1
Lec1
 
Lec1
Lec1Lec1
Lec1
 
Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01
 
What is algorithm
What is algorithmWhat is algorithm
What is algorithm
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
 
Flowcharting and Algorithm
Flowcharting and Algorithm Flowcharting and Algorithm
Flowcharting and Algorithm
 
Df dtutorial
Df dtutorialDf dtutorial
Df dtutorial
 
B.sc i agri u 2 computer software
B.sc i agri u 2 computer softwareB.sc i agri u 2 computer software
B.sc i agri u 2 computer software
 
B.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer softwareB.sc i bio tech u 2 computer software
B.sc i bio tech u 2 computer software
 
B.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer softwareB.sc i bio chem u 2 computer software
B.sc i bio chem u 2 computer software
 
B.sc i cs u 2 computer software
B.sc i cs u 2 computer softwareB.sc i cs u 2 computer software
B.sc i cs u 2 computer software
 
B.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer softwareB.sc i micro bio u 2 computer software
B.sc i micro bio u 2 computer software
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
 
Flow chart
Flow chartFlow chart
Flow chart
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 
6272 cnote
6272 cnote6272 cnote
6272 cnote
 
C progrmming
C progrmmingC progrmming
C progrmming
 
2 flow charts
2 flow charts2 flow charts
2 flow charts
 

Mais de Sajib

Social science lecture 1(part-2) ppt summer 2011
Social science lecture 1(part-2) ppt summer 2011Social science lecture 1(part-2) ppt summer 2011
Social science lecture 1(part-2) ppt summer 2011Sajib
 
Schaefer6e ppt ch03
Schaefer6e ppt ch03Schaefer6e ppt ch03
Schaefer6e ppt ch03Sajib
 
Copy of schaefer6e ppt ch01
Copy of schaefer6e ppt ch01Copy of schaefer6e ppt ch01
Copy of schaefer6e ppt ch01Sajib
 
Chapter 07
Chapter 07Chapter 07
Chapter 07Sajib
 
Ch 3 org culture and the environment (1)
Ch 3  org culture and the environment (1)Ch 3  org culture and the environment (1)
Ch 3 org culture and the environment (1)Sajib
 
Ch 1 intro to management and org (1)
Ch 1  intro to management and org (1)Ch 1  intro to management and org (1)
Ch 1 intro to management and org (1)Sajib
 
Chapter -13_-_marketing_strategy
Chapter  -13_-_marketing_strategyChapter  -13_-_marketing_strategy
Chapter -13_-_marketing_strategySajib
 
Chapter -10_and_11_-_human_resource_management
Chapter  -10_and_11_-_human_resource_managementChapter  -10_and_11_-_human_resource_management
Chapter -10_and_11_-_human_resource_managementSajib
 
Chapter -8_-_organizing_the_business1.0
Chapter  -8_-_organizing_the_business1.0Chapter  -8_-_organizing_the_business1.0
Chapter -8_-_organizing_the_business1.0Sajib
 
Chapter -7-_fundamentals_of_management_part-ii
Chapter  -7-_fundamentals_of_management_part-iiChapter  -7-_fundamentals_of_management_part-ii
Chapter -7-_fundamentals_of_management_part-iiSajib
 
Chapter -7-_fundamentals_of_management_part-i
Chapter  -7-_fundamentals_of_management_part-iChapter  -7-_fundamentals_of_management_part-i
Chapter -7-_fundamentals_of_management_part-iSajib
 
Chapt 18, part 2
Chapt 18, part 2Chapt 18, part 2
Chapt 18, part 2Sajib
 
Chapt 18, intro to bus part 1
Chapt 18, intro to bus part 1Chapt 18, intro to bus part 1
Chapt 18, intro to bus part 1Sajib
 
Intro business chapter1_part2
Intro business chapter1_part2Intro business chapter1_part2
Intro business chapter1_part2Sajib
 
Intro business _chapter1part1
Intro business _chapter1part1Intro business _chapter1part1
Intro business _chapter1part1Sajib
 
Number system
Number systemNumber system
Number systemSajib
 
Input output painted
Input output paintedInput output painted
Input output paintedSajib
 
Compsystem2
Compsystem2Compsystem2
Compsystem2Sajib
 
Compgenerations pented
Compgenerations pentedCompgenerations pented
Compgenerations pentedSajib
 
Compgenerations pented
Compgenerations pentedCompgenerations pented
Compgenerations pentedSajib
 

Mais de Sajib (20)

Social science lecture 1(part-2) ppt summer 2011
Social science lecture 1(part-2) ppt summer 2011Social science lecture 1(part-2) ppt summer 2011
Social science lecture 1(part-2) ppt summer 2011
 
Schaefer6e ppt ch03
Schaefer6e ppt ch03Schaefer6e ppt ch03
Schaefer6e ppt ch03
 
Copy of schaefer6e ppt ch01
Copy of schaefer6e ppt ch01Copy of schaefer6e ppt ch01
Copy of schaefer6e ppt ch01
 
Chapter 07
Chapter 07Chapter 07
Chapter 07
 
Ch 3 org culture and the environment (1)
Ch 3  org culture and the environment (1)Ch 3  org culture and the environment (1)
Ch 3 org culture and the environment (1)
 
Ch 1 intro to management and org (1)
Ch 1  intro to management and org (1)Ch 1  intro to management and org (1)
Ch 1 intro to management and org (1)
 
Chapter -13_-_marketing_strategy
Chapter  -13_-_marketing_strategyChapter  -13_-_marketing_strategy
Chapter -13_-_marketing_strategy
 
Chapter -10_and_11_-_human_resource_management
Chapter  -10_and_11_-_human_resource_managementChapter  -10_and_11_-_human_resource_management
Chapter -10_and_11_-_human_resource_management
 
Chapter -8_-_organizing_the_business1.0
Chapter  -8_-_organizing_the_business1.0Chapter  -8_-_organizing_the_business1.0
Chapter -8_-_organizing_the_business1.0
 
Chapter -7-_fundamentals_of_management_part-ii
Chapter  -7-_fundamentals_of_management_part-iiChapter  -7-_fundamentals_of_management_part-ii
Chapter -7-_fundamentals_of_management_part-ii
 
Chapter -7-_fundamentals_of_management_part-i
Chapter  -7-_fundamentals_of_management_part-iChapter  -7-_fundamentals_of_management_part-i
Chapter -7-_fundamentals_of_management_part-i
 
Chapt 18, part 2
Chapt 18, part 2Chapt 18, part 2
Chapt 18, part 2
 
Chapt 18, intro to bus part 1
Chapt 18, intro to bus part 1Chapt 18, intro to bus part 1
Chapt 18, intro to bus part 1
 
Intro business chapter1_part2
Intro business chapter1_part2Intro business chapter1_part2
Intro business chapter1_part2
 
Intro business _chapter1part1
Intro business _chapter1part1Intro business _chapter1part1
Intro business _chapter1part1
 
Number system
Number systemNumber system
Number system
 
Input output painted
Input output paintedInput output painted
Input output painted
 
Compsystem2
Compsystem2Compsystem2
Compsystem2
 
Compgenerations pented
Compgenerations pentedCompgenerations pented
Compgenerations pented
 
Compgenerations pented
Compgenerations pentedCompgenerations pented
Compgenerations pented
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Último (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Algorithms and flowcharts

  • 1. Types of OS: Operating System can also be classified as, Single User Systems  Multi User Systems
  • 2. Single User Systems:  Provides a platform for only one user at a time.  They are popularly associated with Desk Top operating system which run on standalone systems where no user accounts are required. Example: DOS 
  • 3. Multi-User Systems:  Provides regulated access for a number of users by maintaining a database of known users.  Refers to computer systems that support two or more simultaneous users.  Another term for multi-user is time sharing.  Ex: All mainframes and are multi-user systems. Example: Unix 
  • 4. Contents  Today's Topic: Problem Solving Techniques  We will learn 1. 2. Problem Statement. Algorithm Types, Example Flowchart  Symbols, Examples.  1.
  • 6. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this stage include Algorithms and flowcharts for identifying the expected steps of a process. Therefore to solve any problem,     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
  • 7. Algorithm: 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. 2. 3. 4. 5. Input Output Definiteness Effectiveness Termination
  • 8. Algorithm (Contd…):  1) 2) 3) 4) 5) 6) To find largest of three numbers Start Read 3 numbers: num1, num2, num3 if num1 > num2 then go to step 5 if num2 > num3 then print num2 is largest else print num3 is largest goto step 6 if num1 > num3 then print num1 is largest else print num3 is largest end.
  • 9. Algorithm (Contd…): Example: One of the simplest algorithms is to find the largest number in an (unsorted) list of numbers. High-level description: 1) 2) 3) Assume the first item is largest. Look at each of the remaining items in the list and if it is larger than the largest item so far, make a note of it. The last noted item is the largest in the list when the process is complete.
  • 10. Algorithm (Contd…): Formal description: Written in prose but much closer to the high-level language of a computer program, the following is the more formal coding of the algorithm in pseudo code (find the largest number in an (unsorted) list of numbers) Algorithm LargestNumber Input: A non-empty list of numbers L. Output: The largest number in the list L. 1) 2) 3) 4) largest ← L0 for each item in the list L, do if the item > largest, then largest ← the item return largest
  • 11. Flowchart: What is a Flowchart?    The flowchart is a means of visually presenting the flow of control through an information processing systems, the operations performed within the system and the sequence in which they are performed. It is a graphic representation of how a process works, showing, at a minimum, the sequence of steps. Flowcharts are generally drawn in the early stages of formulating computer solutions.
  • 12. Flowchart (Contd…): Guideline for drawing a flowchart: Flowcharts are usually drawn using some standard symbols; Some standard symbols, which are frequently required for flowcharting many computer programs are shown below,-
  • 13. Flowchart (Contd…): A set of useful standard Flowchart symbols:     Rounded box use it to represent an event which occurs automatically. Rectangle or box use it to represent an event which is controlled within the process. Typically this will be a step or action which is taken. Diamond use it to represent a decision point in the process. Circle use it to represent a point at which the flowchart connects with another process.
  • 14. 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.
  • 15. ADVANTAGES OF USING FLOWCHARTS (Contd…):  Proper Debugging: Flowchart helps in debugging process.  Efficient Program Maintenance: The maintenance of operating program becomes easy with the help of flowchart.
  • 16. Flow chart of the while loop :
  • 17. Flow chart of the for loop:
  • 18. The flow chart of the if statement:
  • 19. The flow chart of the if…else statement:
  • 20. The flow chart of the switch statement:
  • 21. Flowchart for finding the sum of first five natural numbers ( i.e. 1,2,3,4,5):
  • 22. Flowchart (Example): Flowchart to find the sum of first 50 natural numbers.
  • 23. Flow Chart to find largest of two numbers: Start Read A, B Yes Is A > B No Print B Print A End
  • 24. Flowchart to find the largest of three numbers A,B, and C: NO
  • 25. 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.
  • 26. Flowchart (Exercise): 1. Draw a flowchart to depict all steps that you do reach your college. 2. Draw Flowchart for Linear search.