- Describe the process of solving a problem
- Solve a problem using a specific problem solving technique
Turn to your neighbor and describe a problem solving process that you've used in the past
Your answer here...
- Specification
Sub problems, inputs/outputs, constraints, edge cases
- Justification
problem statement
- Explanation
I/O explain
- Visualization
Diagrams
- Approximation
Psuedocode
- Verification
Running through examples
- Implementation
Write code
-
Lets think about an example together:
Write a function that takes a string and returns the total number of vowels found in the string.
Your answer here...
-
Use the problem solving techniques we've identified to solve the following example problem:
Write a function that accepts two strings and returns a boolean indicating if the two strings are anagrams.
Your answer here...