Problem-Solving Notes
Problem-Solving Notes
Objectives:
By the end of the lesson, students will be able to:
1. Define a problem clearly.
2. Propose and evaluate multiple solutions.
3. Determine the most efficient/best solution.
4. Develop and represent an algorithm for the chosen solution.
Problem-solving process:
Discussion: How do we make a sandwich? what steps are involved in making a sandwich?
- Input: Bread, lettuce, tomato, etc.
- Process: Layering the ingredients.
- Output: The completed sandwich.
- Storage: Keeping the sandwich in a container.
Characteristics of an Algorithms
- Finite Number of Steps: Algorithms must have a clear beginning and end.
- Precise: Each step must be clearly defined and unambiguous.
- Flow of Control: There should be a logical sequence that connects each step.
Problem-Solving
- Terminate: An algorithm must eventually come to an end after completing its steps.
START/END
START
Process
READ num1
Decision TRUE READ num2
Sum=num1+num2
NO
Flow
PRINT SUM
Lines
STOP
INPUT/OUTPUT