SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Loops in c
Loops in cLoops in c
Loops in c
 
C language ppt
C language pptC language ppt
C language ppt
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Chap3 flow charts
Chap3 flow chartsChap3 flow charts
Chap3 flow charts
 
C# basics
 C# basics C# basics
C# basics
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Flowchart and algorithem
Flowchart and algorithemFlowchart and algorithem
Flowchart and algorithem
 
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
 
Strings in C
Strings in CStrings in C
Strings in C
 
Control statements
Control statementsControl statements
Control statements
 
Python programming : Standard Input and Output
Python programming : Standard Input and OutputPython programming : Standard Input and Output
Python programming : Standard Input and Output
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Algorithm and flowchart
Algorithm and flowchart Algorithm and flowchart
Algorithm and flowchart
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Problem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to CProblem Solving Techniques and Introduction to C
Problem Solving Techniques and Introduction to C
 
structured programming
structured programmingstructured programming
structured programming
 
Input output statement
Input output statementInput output statement
Input output statement
 
Steps for c program execution
Steps for c program executionSteps for c program execution
Steps for c program execution
 

Andere mochten auch (15)

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
 
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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
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
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 

Kürzlich hochgeladen (20)

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
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
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
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.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...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

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.