Problem Solving Process
Problem Solving Process
• Problem Definition
o Before a program is written for solving a problem, it is important to define the problem
clearly.
o Define the problem statement and decide the boundaries of the problem.
o Understand the problem statement and requirements.
• Problem Analysis
o Determine the requirements like variables, functions, etc. to solve the problem.
o Gather the required resources to solve the problem defined in the problem definition
phase.
o Determine the bounds of the solution.
• Algorithm Development
o An algorithm is a plan for solving a problem.
o Develop a step by step procedure to solve the problem using the specification given in
the previous phase.
Problem Solving Process
• Coding and Documentation
o Coding refers to creating computer programming code.
o This phase uses a programming language to write or implement actual programming
instructions for the steps defined in the previous phase.
o Documentation is the information that describes the process of solving the problem to
its users.
• Testing and Debugging
o Check whether the code written in previous step is solving the specified problem or
not. That means, test the program whether it is solving the problem for various input
data values or not.
o Also test that whether it is providing the desired output or not.
o Debugging is the process of detecting and removing of existing and potential errors
(also called as ‘bugs’) in a software code.
• Maintenance
o During this phase, the program is actively used by the users.
o If any enhancements found in this phase, all the phases are to be repeated again to
make the enhancements.