Problem Solving and Algorithm Design
Problem Solving and Algorithm Design
17 2020
How do you solve problems- understand the problem, devise a plan, carry out the plan, look back.
This is where the actual problem is clearly defined. Must be able to identify the problem and if it is
not phrased properly you should modify it.
In this stage you need to identify the inputs to be used, output required, values to be stored, and the
processing that needs to be done to get the correct outputs.
Example: get two numbers and add them together and display their sum.
Generally, all problems statements have more than one option. So, you evaluate each option to see
which is most appropriate for you and choose the best option.
Algorithm
A set of unambiguous instructions for solving a problem or sub-problem in a finite amount of time
using a finite amount of data.