This website is preserved for historical and scholarly reference and is no longer actively maintained.

Polya-Suh Problem Solving Process

Much of the technique in computer science and computer programming can be traced by the seminal book by George Pólya called How to
Solve It.
(Princeton, NJ: Princeton University Press, 1971.) Polya was a world renouned mathematician when he decided that rather than continue research he would try to understand how people solved problems. Like most good ideas, it is very simple and straightforward. In a nutshell, his approach was put forward in a humorous vein:


"If you can't solve a problem, then there is an easier problem you can't solve: find it."

While this might strike you as a cruel joke, it is very sage advice. What he means is if you can't solve this problem, keep looking for related problems and try to solve them. Continue until you can solve and then work your way back.

Pólya's Method

Polya's Method has four phases:

  1. Understand the Problem. This is the hardest thing to do. Here
    are some questions to ask and things to try:
  1. Develop a Plan:
  1. Carry Out The Plan. In our case, develop a program, run it, and
    test it.
  2. Look back and review what you have done.

Suh's Method

Nam P. Suh in The Principles of Design (Oxford University Press. 1990) propose two principles, which he wrongly calls
axioms.

  1. Axiom of Independence. Separate the requirements of the design
    into things that can change independently. Choose parameters that can
    be modified within the program.
  2. Axiom of Minimal Information. Keep problem-specific information
    out of the design as much as possible.

Aside form this, there are two pieces of information to focus on: development of constraints and criteria.

  1. Constraints are requirements that cannot be violated.
  2. Criteria are "wishes" that can be used to choose among
    alternative designs.

Given attention to the above items, the process goes like:

  1. Develop alternative solutions.
  2. Evaluate alternatives.
  3. Choose only those that satisfy the constraints Choose among the
    remaining based on criteria.
    Implement the choosen solution
  4. Evaluate and iterate
  5. Look back and review what you have done.

Tips

  1. Keep it simple
  2. If you can't draw a picture of it, you can't solve it.
  3. The three secrets of problem solving: Case analysis, Case analysis, Case analysis!
  4. Develop a list of semantics and how they act in this problem.
  5. It's all about states and transitions.
  6. Find out what you don't have to care about.
  7. Focus on data and data structure representation.
  8. When in doubt, try a simple example program.
  9. Sort the tasks by logical precedent and chronology. Don't sweat the "not important yet."


IDEAL Worksheet

An menomnic for the details outlined above is the keyword IDEAL taken from appendix C of the The Ideal Problem Solver (John
D. Bransford and Barry S. Stein. New York: W. H. Freeman and Company. 1993.)

  1. Identify. Identify the problem and explain how it can be an opportunity.
  2. Define. Define at least three different goals for the problem-solving task at hand.
  3. Explore. Explore possible strategies and new information that could help you accomplish each of the important goals listed in the
    Define section.
  4. Anticipate. Anticipate and Act: Anticipate the outcome of the different strategies to help you decided which ones you will act on. This analysis must list both pros and cons.
  5. Look Back. Look back and learn.
    1. After acting on your strategies, what did you notice about the
      problem you identified?
    2. After acting on your strategies, what did you notice about the
      goals that you had defined?
    3. After acting on your strategies, what did you notice about the
      strategies you explored?
    4. After acting on your strategies, what did you notice about your
      ability to anticipate their effect?