Professional Documents
Culture Documents
it’s representation
Problem solving
• The process of finding solutions to difficult or complex
issues.
• A complex Problem required a methodical approach
to find the right solution.
• Problem solving begins with the precise identification
of the problem and ends with a complete working
solution in terms of a program or software.
Problem solving steps
• Analysing the problem
• Developing an algorithm
• Coding
• Testing and debugging
Analysing the problem
• Problem analysis therefore involves
identifying the overriding problem and
establishing the causes and effects related
to that problem.
• Problem Analysing Is used To find the cause
of a positive or negative deviation.
• The process of understanding The real
world Problems and users Needs And
proposing abstract solutions to those
Problems.
Developing an algorithm
• The solution is represented in natural language and is
called algorithm.
• It is essential to device a solution before writing a
program code for a given problem.
• Developing an algorithm is a high level language.
• The development of an algorithm is a key step in
solving a problem.
Coding
• Coding ia a high level programing
language.
• Syntax is the set of rules or
grammar that governs the
formulation of the statements in
the language.
• A program written in a high level
language is called source code.
Testing and debugging
• The program created should be tested on various
parameters.
• The program should meet the requirements of the user.
• It must respond within the expected time.
• It should generate correct output for all possible inputs.
• The errors or defects found in the testing phases are
debugged or rectified and the program is again tested.
Algorithm
• A process or set of rules to be followed
in calculations or other problem-
solving operations, especially by a
computer.
• The word algorithm itself is derived
from the name of the 9th-century
mathematician Muhammad ibn Musa
al Khwarizmi whose nisba was
Latinized as Algoritmi.
• A for finite sequence of steps required
to get the desired output is called
algorithm.
Why do we need an algorithm?
• A programmer writes a program to instruct the
computer to do certain tasks as desired.
• The computer then follows the steps written in the
program code.
• Algorithm is the building block of a computer program.
• Tha purpose of algorithm using an algorithm is to
increase the reliability, accuracy and efficiency of
obtaining solutions.
Characteristics of a algorithm
• PRECISION — The steps are precisely stated or defined.
• UNIQUENESS — Results of each step are uniquely defined
and only depend on the input and the results of the
preceding steps.
• FINITENESS — The algorithm always stops after a finite
number of steps.
• INPUT — The algorithm receives some input.
• OUTPUT — The algorithm produces some output.
Things required to write an algorithm