0% found this document useful (0 votes)
25 views

Q No 1: Define Algorithms. Why Algorithms Are Used. What Are Characteristics of Good Algorithm?

An algorithm is a step-by-step procedure to solve a problem. Good algorithms have characteristics like being precise, having unique and finite steps, and having inputs and outputs. Flowcharts are used to graphically represent the solution to a problem by showing the sequence and relationships between steps. They help users and programmers understand and solve problems more easily by developing and debugging programs. Benefits of flowcharts include effectively describing an algorithm's logic, aiding program development and maintenance, and helping find and remove errors.

Uploaded by

Noor Alam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Q No 1: Define Algorithms. Why Algorithms Are Used. What Are Characteristics of Good Algorithm?

An algorithm is a step-by-step procedure to solve a problem. Good algorithms have characteristics like being precise, having unique and finite steps, and having inputs and outputs. Flowcharts are used to graphically represent the solution to a problem by showing the sequence and relationships between steps. They help users and programmers understand and solve problems more easily by developing and debugging programs. Benefits of flowcharts include effectively describing an algorithm's logic, aiding program development and maintenance, and helping find and remove errors.

Uploaded by

Noor Alam
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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