Problem Solving & Programming Flashcards
List the Steps in the Problem-Solving Process
- Define the Problem
- Propose and evaluate solutions
- Determine the best solution
- Develop the algorithm
- Represent the algorithm
- Test and validate the solution
Divide-and-conquer
a problem-solving strategy that divides complex problems into smaller more easily solvable tasks.
https://www.youtube.com/watch?v=wVPCT1VjySA
What are IPO Charts/Diagrams and what are they used for
IPO stands for Input/Process/Output
Used to better understand the problem by specifying the components of the problem.
A table showing the
1. the list of desired outputs
- the list of inputs needed to obtain the desired outputs
- the instructions the computer must follow to transform the inputs into the desired outputs
https://youtu.be/FJV3mj0wz-M?si=RRfuFHvcF8fr5Qap
Define the problem
Activity: Breaking the problem down into 3 main components
Tool: IPO Chart used to provide a visual representation of the components of the problem
Propose and evaluate solutions
Activity: brainstorming to
identify alternative solutions to the problem
Evaluate each proposed solution
Determine the best solution
Determine which solution is the best based on the evaluation of the solutions from the previous step
Develop the algorithm
Formulate the solution into a set of instructions for the computer to follow
Represent the algorithm
Rewrite the algorithm either diagrammatically as a flowchart or as a set of numbered step by step instructions
Test and validate the solution
Tool: Trace table and data set with expected results
Activity: manually step through the algorithm using a set of predetermined data to ensure that the algorithm produces correct results
https://youtu.be/x1FbZImHfVM?si=a_5SzsMzZKHj7Mtf