Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MatthewYee92/fbcd192ab48b4622475353d348ebfe3d to your computer and use it in GitHub Desktop.
Save MatthewYee92/fbcd192ab48b4622475353d348ebfe3d to your computer and use it in GitHub Desktop.
Problem Solving Process Lesson Notes

Problem Solving Process

Objectives

  • Describe the process of solving a problem
  • Solve a problem using a specific problem solving technique

Process

Turn to your neighbor and describe a problem solving process that you've used in the past

Your answer here...

The SJEVAVI method

  1. Specification

Sub problems, inputs/outputs, constraints, edge cases

  1. Justification

problem statement

  1. Explanation

I/O explain

  1. Visualization

Diagrams

  1. Approximation

Psuedocode

  1. Verification

Running through examples

  1. Implementation

Write code

Practice

  • 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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment