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

Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartRabin BK
 
Control structure C++
Control structure C++Control structure C++
Control structure C++Anil Kumar
 
Loops Basics
Loops BasicsLoops Basics
Loops BasicsMushiii
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?Angela DeHart
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and AlgorithmDhaval Kaneria
 
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating systemAmir Khan
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchartJordan Delacruz
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software EngineeringSaqib Raza
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithemehsanullah786
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchartSachin Goyani
 
Algorithm and flowchart
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart Shivam Sharma
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESpriyasoundar
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process FrameworkJAINAM KAPADIYA
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1Manoj Patil
 

Mais procurados (20)

Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Control structure C++
Control structure C++Control structure C++
Control structure C++
 
Loops Basics
Loops BasicsLoops Basics
Loops Basics
 
Algo and flowchart
Algo and flowchartAlgo and flowchart
Algo and flowchart
 
What is an algorithm?
What is an algorithm?What is an algorithm?
What is an algorithm?
 
Introduction to data structures and Algorithm
Introduction to data structures and AlgorithmIntroduction to data structures and Algorithm
Introduction to data structures and Algorithm
 
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating system
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Introduction to flowchart
Introduction to flowchartIntroduction to flowchart
Introduction to flowchart
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Algorithm and flowchart
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
 
Algorithm
AlgorithmAlgorithm
Algorithm
 
Introduction
IntroductionIntroduction
Introduction
 
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURESOPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
 
Software Engineering Layered Technology Software Process Framework
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process Framework
 
System Programing Unit 1
System Programing Unit 1System Programing Unit 1
System Programing Unit 1
 

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
 
Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
 
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

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Último (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

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.