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
The process of analyzing the description of a problem until we reach a solution
The need for 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
In computer programming, we split a problem into several smaller and simpler parts which are called subproblems
Divide and conquer
We solve them individually and after that combine them together to give a whole solution to the original problem
Solving a problem in a systematic way means breaking a problem into some smaller and more manageable modules.
Breaking a problem into smaller modules which are more manageable to us
21.2 Problem-solving Procedures
Problem identification
The initial step of solving a problem
Problem analysis
Identify the inputs, processing steps and outputs required for solving the problem.
We can use an IPO chart to analyze the problem.
Algorithm design
Pseudocode
Flowchart
Documentation
user manual
program manual
Debugging and testing
Debugging
The process of locating and fixing defects in a program
Testing
Ensure that a program works and is free of error
Syntax error
Run-time error
Logic error
Developing a solution
Top-down apporach
We use the divide and conquer strategy to work from the
abstract to the particular
21.3 Real-life Applications and Practical Considerations
https://drive.google.com/file/d/1RkpVmWNFpLVrreJAcZCXb9jD5Tr2q4r3/view?usp=sharing
21.4 Different Ways to Solve the Same Problems
Solve a problem systematically by
Top-down approach
more easily managed for a larger problem
Bottom-up approach
more suitable for a smaller one