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:
- Understand the Problem. This is the hardest thing to do. Here
are some questions to ask and things to try:
- Write the problem out very, very carefully.
- Substitute what you know for words used in the problem
definition. If you don't know the definition, find it.
- Prepare a case analysis. What are all the things that can
happen? Under what conditions can they happen?
- Develop a Plan:
- Identify the components of the problem.
- Determine the inter-relationships between components.
- Name the various components, data, and relationships.
- Write down the mathematical relationships.
- Determine what is given and what needs to be found.
- Write a plan for solving the problem.
- Carry Out The Plan. In our case, develop a program, run it, and
test it.
- 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.
- Axiom of Independence. Separate the requirements of the design
into things that can change independently. Choose parameters that can
be modified within the program.
- 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.
- Constraints are requirements that cannot be violated.
- Criteria are "wishes" that can be used to choose among
alternative designs.
Given attention to the above items, the process goes like:
- Develop alternative solutions.
- Evaluate alternatives.
- Choose only those that satisfy the constraints Choose among the
remaining based on criteria.
Implement the choosen solution
- Evaluate and iterate
- Look back and review what you have done.
Tips
- Keep it simple
- If you can't draw a picture of it, you can't solve it.
- The three secrets of problem solving: Case analysis,
Case analysis, Case analysis!
- Develop a list of semantics and how they act in this
problem.
- It's all about states and transitions.
- Find out what you don't have to care about.
- Focus on data and data structure representation.
- When in doubt, try a simple example program.
- 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.)
- Identify. Identify the problem and explain how it can be an
opportunity.
- Define. Define at least three different goals for the
problem-solving task at hand.
- Explore. Explore possible strategies and new information that
could help you accomplish each of the important goals listed in the
Define section.
- 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.
- Look Back. Look back and learn.
- After acting on your strategies, what did you notice about the
problem you identified?
- After acting on your strategies, what did you notice about the
goals that you had defined?
- After acting on your strategies, what did you notice about the
strategies you explored?
- After acting on your strategies, what did you notice about your
ability to anticipate their effect?