Experienced problem solvers do not rely on inspiration. They follow a steady process that works for a small sum and for a large software project alike. The process has four steps: understand the problem, plan a solution, execute the plan and review the result.
Step 1: Understand the Problem
The goal, the inputs, the outputs and the constraints are identified. Unclear requirements are resolved, or an assumption is stated. This step corresponds to the problem analysis already studied. Its product is a clear problem statement.
Step 2: Plan a Solution
A method is chosen and written as an algorithm. A small instance is tried by hand, and boundary cases are considered. The product of this step is an algorithm or a flowchart.
Step 3: Execute the Plan
The plan is carried out. In programming, this means writing the program from the algorithm and running it on chosen inputs. The product is a working program and its output.
Step 4: Review the Result
The result is compared with the requirement. Ordinary cases and boundary cases are checked. If something is missing or wrong, the solver returns to whichever earlier step needs more work.
Definition: Problem-solving process. An ordered set of steps, namely understand, plan, execute and review, that leads from a stated problem to a checked solution.
Table 1.8 summarizes what is done and what is produced at each step.
Table 1.8: Activities and products of each step
| Step | Main activities | Product |
|---|---|---|
| Understand | Identify goal, inputs, outputs, constraints | Clear problem statement |
| Plan | Choose a method; write and trace an algorithm | Algorithm or flowchart |
| Execute | Write and run the program | Program and its output |
| Review | Test ordinary and boundary cases | Verified solution, or a list of corrections |
Review Is Part of Solving
Review is not an optional extra performed after the problem is solved. A solution that has not been checked is only a proposal. Review frequently reveals that the plan missed a case, or that the problem was understood incorrectly, and the process then loops back. Returning to an earlier step is a normal part of the process and should not be seen as failure.
Example 1.8: Applying the four steps
Problem: Find the average of a student's scores in three tests.
Solution:
- Understand: the inputs are three scores; the output is their average. All three tests are included, and each score is from 0 to 100.
- Plan: add the three scores and divide the sum by 3.
- Execute: for the scores 70, 80 and 90, the sum is 240 and the average is 240 / 3 = 80.
- Review: by hand, the middle value of 70, 80, 90 is 80, which agrees. A boundary case, 0, 0, 0, gives an average of 0, which is also correct.
Result: The average is 80, and the review confirms the method on an ordinary case and a boundary case.
Common mistakes
- Jumping to the execute step without understanding the problem or planning.
- Treating the first output of a program as correct without review.
- Refusing to return to an earlier step when the review reveals a fault.
Key takeaways
- The four steps are understand, plan, execute and review.
- Each step has a definite product that the next step uses.
- Review compares the result with the original requirement.
- Returning to an earlier step is an expected part of the process.
Practice questions
- Name the four steps of the problem-solving process in order.
- What is the product of the plan step?
- What should be done if the review shows the result is wrong?
Answers to the practice questions
- Understand the problem, plan a solution, execute the plan, review the result.
- An algorithm or flowchart for the chosen method.
- Return to the step that needs more work, such as understanding or planning, and continue from there.
Sources
- Official BCA syllabus (NEP 2025 scheme), Problem Solving Techniques, course code 25BCA401SEC01, Unit I
