Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ch.21 Problem-solving Procedures - Coggle Diagram
Ch.21 Problem-solving Procedures
21.1 Problem-solving Concepts
Problem-solving
Process of analysing the description of a problem until we reach a solution
Need a systematic way of solving problems
Solving a problem in an organized and systematic way can greatly enhance the chances of finding the best solution
We solve them individually and after that combine them together to give a whole solution to the original problem.
It is usually easier to solve a smaller module than a bigger one
21.2 Problem-solving Procedures
Problem identification
The initial step of solving a problem
Obtain a precise definition of the problem
Problem analysis
Look into the problem from different perspectives in order to diagnose it correctly and
gain a full picture of it
Identify the inputs, processing steps and outputs required for solving the proble
Algorithm design
A finite sequence of steps arranged in specific logical order to generate a solution to a problem
Pseudocode
flowchart
Developing a solution
Hard problem
Easy subproblem
Hard subproblem
Easy subsubproblem
Hard subsubproblem
Easy subsubproblem
easy subproblem
Debugging and testing
The checking processes required to ensure that a program fulfils the purposes for which it was created
Syntax error
Run-time error
Logic error
Documentation
Common users
User manual
Programmers
Program manual
Help programmers maintain the program in the future
21.4 Different Ways to Solve the Same Problems
Top-down approach
Start from system level
Suitable for larger problems
Bottom-up approach
Start from the component level
suitable for smaller problems