COS 102 · Problem Solving
Our notes
2 min readFour stages (after the mathematician George Pólya)
- Understand the problem. What is given (inputs)? What is wanted (outputs)? What are the conditions? Restate it in your own words; draw a picture; try a small example.
- Devise a plan. Choose a technique (next topics): look for a similar problem you have solved, break it into parts, work backwards, make a table.
- Carry out the plan. Follow the steps carefully, checking each one.
- Look back. Is the answer reasonable? Does it meet every condition? Can the method be reused or made simpler?
The same stages in software
| Stage | What you produce |
|---|---|
| Problem definition and analysis | a statement of inputs, outputs, processing and limits |
| Design | an algorithm as a flowchart or pseudocode |
| Implementation (coding) | a program in a language such as Python or C |
| Testing and debugging | test cases with expected results; errors fixed |
| Evaluation and refinement | improvements for speed, clarity, new needs |
| Documentation and maintenance | user guide, comments, later updates |
IPO analysis
A quick way to analyse a problem is the Input-Process-Output chart.
Example: "Find a student's GPA from course units and grades."
| Input | Process | Output |
|---|---|---|
| units and grade of each course | convert grades to points (A = 5, B = 4, C = 3, D = 2, E = 1, F = 0); multiply each by its units; add; divide by total units | GPA to 2 decimal places |
Worked example
Units and grades: 3 units A, 2 units B, 3 units C, 1 unit F.
- Quality points = 3 × 5 + 2 × 4 + 3 × 3 + 1 × 0 = 15 + 8 + 9 + 0 = 32.
- Total units = 9.
- GPA = 32 ÷ 9 = 3.56.
Looking back: the grades lie between A and F, and 3.56 lies between 0 and 5. Check that the failed course's units are still counted in the total (UNIPORT, like most Nigerian universities, counts them).
Exams usually ask
- List and explain the stages of problem solving.
- Prepare an IPO chart for a given problem.
Common mistake
Skipping "look back". A quick sense check (is the GPA between 0 and 5?) catches many errors.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Problem solving
(opens en.wikipedia.org in a new tab)
Wikipedia, Problem solving, CC BY-SA 4.0 · licence
-
How to Solve It
(opens en.wikipedia.org in a new tab)
Wikipedia, How to Solve It, CC BY-SA 4.0 · licence
Watch
-
Best pick Polya's Problem Solving Process
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
-
FOUR STEPS PROBLEM-SOLVING STRATEGY BY POLYA
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
POLYA'S PROBLEM SOLVING STRATEGY || MATHEMATICS IN THE MODERN WORLD
25 min · ≈ 113 MB · about ₦63
(opens youtube.com in a new tab)
-
A Guide to Polya's Problem Solving Process
2 min · ≈ 9 MB · about ₦5
(opens youtube.com in a new tab)
-
Problem Solving using Polya's 4 step method|Tano, Arjyll B.
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.