Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Q no 1: Define Algorithms.

Why algorithms are


used. What are characteristics of good
algorithm?
DEFINITION
“An algorithm is a step-by-step procedure to solve a
problem”
The process of solving problem becomes simpler
and easier with the help of algorithm. It is better to
write an algorithm before writing the actual
computer program.
CHARACTERISTICS OF GOOD ALGORITHM;
 Precision – The steps are precisely stated (defined).
 Uniqueness – Results of each step are uniquely
defined and only depend on the input and the result
of the preceding steps.
 Finiteness – The algorithm stops after a finite number
of instructions are executed.
 Input – The algorithm receives input.
 Output – The algorithm produces output.
 Generality – The algorithm applies to a set of inputs.

Q no 2: What are flowcharts, why they are used,


what are its benefits in designing a solution?
FLOWCHARTS
A flowchart is a graphical representation of the solution
of a problem. It shows the sequence of the steps
required to solve a problem. It presents the flow of data,
the operations performed on data and the sequence of
these operations.

A flowchart is an important tool for analyzing the


processes. It allows the user to easily understand
different operations and their relationship. It helps the
user to solve a problem easily. The process of writing a
program becomes easier with the help of flowchart.

BENEFITS IN DESIGNING A SOLUTION


 The logic of an algorithm can be described more
effectively using flowchart.
 A flowchart is part of design document that
makes program maintenance easier.
 The flowchart acts like a guide for program
development.
 The flowchart helps the programmer in writing
the program.
 The flowchart also helps in finding and removing
errors in the program.

THE END

You might also like