Search topics and sections

Problem solving is the process of finding a way to reach a goal when the way to get there is not obvious. A problem exists when your current situation differs from the situation you want and something blocks the path between them.[1][2] Tasks with an obvious answer, such as picking up a cup of coffee, do not count as problems in this sense.[1]

Problem solving is a core topic of cognitive psychology, and research on it has fed into computer science and artificial intelligence.[2] Engineers and managers use step-by-step methods to solve technical and business problems.[3][4]

What counts as a problem

Most problems can be described with three parts.[1]

  • The given state is the starting situation, such as the pieces on a chess board or an equation you have to solve.
  • The goal state is the situation you want to reach, such as checkmate or an equation solved for xx.
  • The operators are the moves or actions you are allowed to make, such as the rules for moving each chess piece.

A goal counts as a problem only when no obvious action reaches it.[1]

Researchers call whatever stands between the given state and the goal state a barrier.[5]

Anatomy of a problemGivenstateGoalstateOperators (allowed moves)Barrier
A problem has three parts: a given state, a goal state, and a barrier that blocks the direct route between them. A solver reaches the goal by applying a sequence of operators, or allowed moves, that go around the barrier.

Well-defined and ill-defined problems

Problems differ in how clearly their three parts are stated.[2]

Feature Well-defined problem Ill-defined problem
Given state Clearly stated Unclear or open
Goal state Clear, with a known test for success Vague; success may be a matter of opinion
Allowed moves A limited set of rules Not fixed in advance
Examples Chess, an algebra equation, the Tower of Hanoi "Paint a beautiful picture", writing an essay

Well-defined problems can often be solved with fixed procedures, which is why computers handle many of them well, chess among them.[1]

Many real-world problems are ill-defined, and most tasks that call for creativity are ill-defined.[2]

The line between the two kinds is not sharp. Herbert A. Simon wrote that the boundary between well-structured and ill-structured problems is vague and fluid and cannot be pinned down in formal rules.[6]

An ill-defined task often contains well-defined parts. For example, writing an essay about a text first requires understanding the text.[1]

A general process

A widely taught general method comes from the mathematician George Pólya. In his 1945 book How to Solve It, he split solving a mathematics problem into four phases.[7][8]

Pólya's four phases of problem solvingUnderstand the problemunknown? data? condition?Devise a planrelated problem?Carry out the plancheck each stepLook backcheck the result
Pólya's four phases of problem solving from How to Solve It (1945): understand the problem, devise a plan, carry out the plan, and look back.
  1. Understand the problem. Ask what the unknown is, what the data are, and what condition links them. Draw a figure and choose good symbols.
  2. Devise a plan. Ask whether you know a related problem. If you cannot solve the problem as stated, try a more general, more special, or similar problem first, or solve part of it.
  3. Carry out the plan. Check each step as you go.
  4. Look back. Check the result, review what worked, and ask whether the method could be used on other problems.

Psychology textbooks give a similar first step: before any strategy can work, the problem itself must be clearly identified.[9]

Common strategies

A problem-solving strategy is a plan of action used to find a solution. Introductory psychology sorts strategies into three broad kinds.[9]

Strategy How it works Strength Weakness
Trial and error Keep trying different solutions until one works Needs no special knowledge Usually slow
Algorithm Follow exact step-by-step instructions Gives the same result every time Must be followed exactly
Heuristic Use a general rule of thumb or mental shortcut Saves time and effort Not always the best choice

Useful heuristics

A heuristic guides you toward a solution without guaranteeing one. Several work on many kinds of problems.

  • Working backward starts from the goal and reasons toward the start, as when you plan a departure time from the time you must arrive.[9]
  • Breaking a task into subgoals turns one large job into a series of smaller steps, such as outlining, drafting, and revising a research paper.[9]
  • Means-ends analysis repeatedly finds an important difference between where you are and the goal and applies an action that reduces it (see "Problem solving as search" below).[10]
  • Reasoning by analogy reuses the solution of a known problem on a new one with the same structure.[1]

Analogy in practice

Analogies help, but people often fail to notice them.[1]

In a classic study by Mary Gick and Keith Holyoak (1980), people tried Karl Duncker's radiation problem: destroy a deep tumor with rays that would also harm the healthy tissue they pass through.[1] The solution is to send several weak rays from different directions so they meet at the tumor. Some people first read a story about a general who split his army to attack a fortress from many roads.[1]

Condition Share who solved the problem
No story Ten percent
Read the story first Thirty percent
Read the story and were told to use it Seventy-five percent

Gick and Holyoak concluded that analogy needs two steps: recognizing that an analogy exists, and mapping the parts of one problem onto the other.[1]

The most influential theory of problem solving comes from Allen Newell and Herbert Simon, who began the work in the late 1950s. Their research approach was the main one in the field for more than three decades, and their book Human Problem Solving appeared in 1972.[10]

The theory's central claim is that people solve problems by heuristic search through a problem space, meaning the possible states and actions a person considers while solving a problem.[10]

The problem space

A problem space has three parts: the solver's mental picture of the starting situation, the goal, and the set of actions the solver will consider.[10]

  • Operators are mental versions of actions. Each one moves the solver from one problem state to another.
  • A search strategy chooses which operator to apply. It is made of heuristics.
  • Some heuristics are preferences, which pick an action before its result is known. Others are evaluations, which judge a result and decide whether to continue or back up.
  • A solution path is the sequence of actions a strategy produces. If it ends at the goal, the problem is solved.

One problem can usually be represented in several different problem spaces, though not with equal ease, and each space can be searched with different strategies.[10]

The figure below draws a problem space as a search tree, a branching diagram of possible states and moves.

Why search must be selective

Newell and Simon tied the shape of search to limits of the human mind. In their account, people have three main limits.[11]

  • They think mostly one step at a time.
  • They hold only a few symbols in short-term memory.
  • They need several seconds to store a new item in long-term memory.

These limits strongly restrict how people can search large problem spaces, so people carry out "selective search in a problem space" rather than trying every path.[11][10]

Means-ends analysis

Newell and Simon built their theory into computer programs. Their General Problem Solver (GPS) used means-ends analysis, which works in a loop.[10]

  1. Find an important difference between the current state and the goal state.
  2. Look up that difference in a table that lists which operators reduce which kinds of difference.
  3. Choose one of the operators found.
  4. Apply it.
  5. Repeat until no differences remain.

According to Ohlsson, when UNESCO held the first international conference on information processing in Paris in 1959, GPS was the closest thing to working artificial intelligence the world had yet seen.[10]

The program's weakness was the difference table, which had to be rebuilt by hand for each new kind of task.[10]

Means-ends analysis loop in the General Problem SolverDifference-operatortableFind a differencebetween currentstate and goalLook up operatorsthat reducethis differenceChoose an operatorApply itAny differencesleft?Goal reachedyesno
Means-ends analysis in the General Problem Solver. The solver finds a difference between the current state and the goal, looks up operators for it in a difference-operator table, applies one, and repeats until no differences are left.

Example: the Tower of Hanoi

The Tower of Hanoi is a standard well-defined test problem.[1] A stack of nn disks of different sizes sits on one of three pegs, and the goal is to move the whole stack to another peg, one disk at a time, never putting a larger disk on a smaller one.

Breaking it into subgoals gives a short solution. To move nn disks, use three steps.[12]

  1. Move the top n−1n-1 disks to the spare peg.
  2. Move the largest disk to the goal peg.
  3. Move the n−1n-1 disks back on top of it.

This solution is recursive: moving the smaller stack uses the same three steps again, on fewer disks each time.

If ana_n is the number of moves this takes, then

an=2an−1+1,a1=1,soan=2n−1.a_n = 2a_{n-1} + 1, \quad a_1 = 1, \qquad \text{so} \qquad a_n = 2^n - 1.

Here nn is the number of disks and ana_n is the number of single-disk moves. No solution uses fewer than 2n−12^n - 1 moves, so three disks need at least 7 moves.[12]

Tower of Hanoi with three disks solved recursively Start After 3 moves After 4 moves Goal, after 7 moves ABC ABC ABC ABC Move top 2 disks(3 moves) Move largest disk(1 move) Move 2 disks on top(3 moves) 3 + 1 + 3 = 7 = 23 − 1
The recursive solution of the three-disk Tower of Hanoi moves the top two disks to the spare peg, moves the largest disk to the goal peg, then moves the two disks back on top of it, using 3+1+3=7=23−13 + 1 + 3 = 7 = 2^3 - 1 moves. A larger disk never sits on a smaller one.

Insight and restructuring

Some problems are not solved step by step but all at once. Gestalt psychologists studied these from the 1920s. They argued that solving them requires restructuring, which means changing how the problem is represented in the mind.[1]

Sudden versus gradual solutions

Early animal studies gave two different pictures of problem solving.

  • Edward Thorndike put cats in puzzle boxes for his 1898 doctoral thesis. Their escape times fell gradually over many trials, and he argued that a cat that understood the latch would show a sudden drop instead.[13]
  • Wolfgang Köhler, stranded with chimpanzees in the Canary Islands during the First World War, hung food out of reach. A typical chimpanzee jumped for it, gave up, paused, looked between the food and the boxes and sticks, then used them to reach it.[14]

Köhler's pattern of failure, pause, and sudden solution seemed to involve planning and insight, the sudden realization of a solution, at least the first time.[14][1] Later writers note that some of these abilities were less unique to chimpanzees than they appeared at the time.[14]

Gradual versus sudden learning curves Trial and error (Thorndike's cats) Insight (expected pattern) Trial number Trial number Time to solve Time to solve
With trial and error, as in Thorndike's puzzle-box cats, the time to solve falls slowly and unevenly over many trials. With insight, the expected pattern is a long solving time that drops in one step and then stays low.

Insight and the aha experience

Gestalt psychologists separated two kinds of thinking. Reproductive thinking reuses a response from past experience, while productive thinking needs something new.[1] Insight is often felt as an "aha" moment after a period of no progress.[1]

Max Wertheimer gave a classic example of restructuring. An older boy keeps beating a younger one at badminton until the younger boy quits; instead of bribing or shaming him, the older boy proposes that they try to keep the shuttlecock in the air as long as possible, turning competition into cooperation.[1]

The nine-dot problem (Maier, 1930) is a well-known test. You must join nine dots in a three-by-three grid with four straight lines without lifting the pen, and the standard solution draws lines that extend beyond the square the dots form.[1][9] The puzzle is often used to illustrate the phrase thinking outside the box.[1]

Nine-dot puzzle solution1234
The standard solution to the nine-dot puzzle uses four straight lines drawn without lifting the pen. Lines 1 and 2 extend past the dashed square around the grid.

Why insight happens

Search theory and insight can be joined. Stellan Ohlsson and others propose that a solver's first view of a problem can produce a problem space in which the problem cannot be solved, so search reaches an impasse, a point where progress stops.[10] Seeing the problem a new way revises the starting state, and so the problem space, which can bring options into view that were ignored before.[10]

Stages of creative thought

Graham Wallas described the creative process in four stages in his 1926 book The Art of Thought.[15]

  1. Preparation: gather information and work on the problem.
  2. Incubation: set the problem aside.
  3. Illumination: the solution appears.
  4. Verification: check and develop the solution.

Incubation is now studied directly. People are more likely to solve a problem when they take a break between attempts than when they work without stopping.[1]

Common barriers

Past experience usually helps, but it can also block new solutions. This effect is called fixation.[1]

Mental set and the Einstellung effect

A mental set is the tendency to keep using an approach that worked in the past, even when it no longer works or a better one exists.[9][1]

Abraham Luchins showed this in 1942 with water jar problems.[1] One task asks for 100 cups using jars that hold 127, 21, and 3 cups; the answer is to fill the 127-cup jar, pour off 21 once, then pour off 3 twice. People who solved that first then used the same long method to get 18 cups from jars of 39, 15, and 3 cups, while others simply added 3 to 15.[1]

Sticking to a worse method because of earlier success is called the Einstellung effect.[1]

Luchins water jar problems Training problem: get 100 cups A = 127 cups B = 21 cups C = 3 cups A − B − 2C = 127 − 21 − 3 − 3 = 100 Test problem: get 18 cups A = 39 cups B = 15 cups C = 3 cups Learned long method: 39 − 15 − 3 − 3 = 18 (used by those who saw row 1 first) Simple method: 15 + 3 = 18
Luchins's water jar problems, with jar heights on one shared scale. After solving training problems with the rule A−B−2CA - B - 2C, many people still use that long method on the test problem, 39−15−3−3=1839 - 15 - 3 - 3 = 18, and miss the simpler 15+3=1815 + 3 = 18.

Functional fixedness

Functional fixedness is a type of mental set in which you cannot see an object being used for anything other than its usual purpose.[9] It has been found in both industrialized and nonindustrialized cultures.[9]

  • In Karl Duncker's candle problem (1945), people get a candle, a book of matches, and a box of tacks, and must fix the candle to the wall so wax does not drip. The answer is to tack the empty box to the wall as a shelf, which people find easier when the tacks are shown outside the box.[1]
  • In Norman Maier's two-string problem (1931), two strings hang from the ceiling too far apart to hold both at once, and the task is to tie them together. The answer is to tie a pair of pliers to one string and swing it like a pendulum.[1]
Duncker's candle problem candle matches box of tacks Materials box tacked to wall as a shelf Solution
Duncker's candle problem. People are given a candle, a book of matches, and a box of tacks, and the solution is to empty the box and tack it to the wall as a shelf that holds the lit candle.

Fixation on examples and biases

Examples can also fix thinking. In a 1993 study, people asked to draw alien creatures after seeing examples copied the examples' shared features, such as four legs, antennae, and a tail, even when told to make their drawings different.[1]

Cognitive biases can also distort problem solving.[9]

  • Confirmation bias is the tendency to focus on information that confirms what you already believe.
  • Anchoring bias is focusing on one piece of information, such as a budget figure, while ignoring others.
  • The availability heuristic is judging from whatever example comes to mind most easily, even if it is a poor one.

Getting unstuck

Taking a break is a simple way past fixation. One explanation, called forgetting fixation, is that time away lets unhelpful ideas fade, so new information can be used.[1] Changing how a problem is presented can also help, as with the empty box in the candle problem.[1]

Experts and novices

Experts solve problems in their field faster and more often correctly than beginners. Research has found three main differences.[1]

  1. Experts know more about their field.
  2. Their knowledge is organized differently.
  3. They spend more time analyzing a problem before trying to solve it.

In a 1973 study, William Chase and Herbert Simon showed chess positions briefly to players of different skill and asked them to recall the positions.[1]

Position type Experts Novices
Real game position Recalled far better than novices Recalled much less
Random position Did no better than novices About the same as experts

The result suggests that experts recognize familiar patterns.[1] See chess expertise for more.

In a 1981 study by Michelene Chi and colleagues, physics students sorted problems by surface features, such as the objects pictured. Physics professors sorted them by the physical principles underneath.[1]

Expertise is limited to its field, and it can backfire.[1] On Remote Associates Test items, which ask for one word linked to three others (WISE, WORK, TOWER: CLOCK), baseball experts did worse than novices when items used baseball words but had answers unrelated to baseball.[1]

Structured methods in engineering and business

Organizations use written methods so that teams solve problems the same careful way each time. Many focus on finding the root cause of a problem rather than its symptoms, a practice known as root cause analysis.[3] Several methods speak of countermeasures, meaning actions taken to deal with a problem.[4]

Method Origin or main use Main idea
Eight disciplines (8D) Ford Motor Company, 1980s[16] A team works through fixed steps to contain a problem, find and verify root causes, and stop the problem from happening again[3]
A3 problem solving Toyota[4] The problem, analysis, countermeasures, and action plan fit on one A3 sheet[4]
Kepner-Tregoe Charles Kepner and Benjamin Tregoe; The Rational Manager (1965)[17] Separate questions about what is going on, why, which action to take, and what lies ahead[17]
TRIZ Genrikh Altshuller, from study of patents[18] Resolve the contradiction at the heart of a technical problem instead of compromising[18]
Issue tree Widely used in management consulting[19] Break a large question into smaller questions in a branching diagram[19]

Eight disciplines (8D)

8D is common in the auto industry and has also been used in healthcare, retail, finance, government, and manufacturing.[3] Its steps are named D1 to D8, and some organizations add a planning step, D0.[3]

Step Action
D0 Plan the work and set out what is needed
D1 Form a team with knowledge of the product or process
D2 Describe the problem in measurable terms
D3 Contain the problem with a temporary fix
D4 Find and verify the root causes, using tools such as the five whys and cause-and-effect diagrams
D5 Choose permanent corrections and confirm they will work
D6 Put the corrections in place and check that they work
D7 Change systems and procedures to prevent this and similar problems
D8 Recognize the team's work

A3 problem solving

An A3 report puts a whole problem-solving effort on one sheet of A3 paper (297 by 420 mm).[4][20]

  • Layout: the left side covers the problem and current condition, and the right side covers the countermeasures considered, tested, and chosen.[4]
  • Cycle: the report captures thinking organized around the plan-do-check-act (PDCA) cycle.[21]
  • Teaching: at Toyota, the A3 is also a way for managers to teach staff through dialogue about real problems.[4]

Kepner-Tregoe problem analysis

Charles Kepner and Benjamin Tregoe developed their approach in the late 1950s and described it in The Rational Manager in 1965. It now includes four processes.[17]

  • Situation Appraisal
  • Problem Analysis
  • Decision Analysis
  • Potential Problem (Opportunity) Analysis

The method defines a problem narrowly, as a difference between expected and actual performance whose cause is unknown.[17]

A problem asks "Why?", while a decision asks "How?" or "Which?" and calls for a different process.[17]

To find a cause, the analyst describes what the problem is and what it could be but is not. The description covers four dimensions.[17]

  • What
  • Where
  • When
  • Extent

The contrast between what is and what is not narrows the search for the cause.[17]

TRIZ

TRIZ looks for patterns in past inventions and turns them into general tools.

  • Name and origin: TRIZ is a Russian acronym for "theory of inventive problem solving".[18] Altshuller, who reviewed patents for the Soviet navy, found that the most inventive patents solved problems containing conflicting requirements, which he called contradictions.[18] A common kind is a trade-off, such as a suitcase that must be strong but light.[22]
  • Features and principles: Altshuller described technical systems with 39 features, qualities that can get better or worse, such as stress or pressure, power, or productivity. He listed 40 inventive principles used to resolve conflicts between these features.[18]
  • Contradiction matrix: this 39 by 39 table links each pair of conflicting features to up to four suggested principles.[18] It shows which principles have been used most often, not which is best for a given case.[22]

Problem solving in artificial intelligence

In computing, a problem is stated formally so that a program can search for a solution.[23]

The program or system that takes actions to solve the problem is called an agent.[23]

A standard textbook defines a problem by five parts.[23]

  • The initial state, where the agent starts.
  • The actions available in each state.
  • A transition model, which gives the state that results from each action.
  • A goal test, which decides whether a state is a goal.
  • A path cost, which gives each sequence of actions a number.

The initial state, actions, and transition model together define the state space: all states reachable from the start. It forms a graph whose nodes are states and whose links are actions.[23] A solution is a sequence of actions from the initial state to a goal state, and an optimal solution has the lowest path cost.[23]

The textbook assumes that a path's cost is the sum of its step costs, the costs of the single actions along it, and that each step cost is zero or more:[23]

cost(path)=∑ic(si,ai,si+1),c≥0.\text{cost}(\text{path}) = \sum_{i} c(s_i, a_i, s_{i+1}), \qquad c \ge 0.

Here sis_i is a state along the path, aia_i is the action taken in it, si+1s_{i+1} is the state that results, and cc is the cost of that step.

Search methods, studied under state space search, fall into two families.[23]

  • Uninformed (blind) search uses only the problem definition.
  • Informed or heuristic search can also tell whether one state looks more promising than another, as in A* search.

Formulating any real problem means leaving out details that do not matter, a step called abstraction.[23]

Complex problem solving

Lab puzzles have a fixed start, goal, and rules, but many real problems do not. Complex problem solving studies tasks in which the start, the goal, and the barriers are complex, change over time, and are partly hidden from the solver.[5]

Early work by Dietrich Dörner used "Lohhausen", a simulated small town with more than 2,000 variables, or factors that can change. Participants played the mayor for ten simulated years, fit into ten hours.[5] Joachim Funke lists five typical features of such problems.[5]

  • Complexity: many variables.
  • Connectivity: the variables depend on one another.
  • Dynamics: the situation changes over time.
  • Intransparency: some variables and their values are hidden.
  • Polytely: several goals that may conflict.

Solutions to complex problems are often patched together rather than perfect or best.[5]

Limits of current theory

In Ohlsson's view, Newell and Simon's lasting contribution is the theory of heuristic search through a problem space. He argues that it remains the centerpiece of how researchers explain the solving of unfamiliar problems.[10]

Ohlsson (2012) also argues that the theory is seriously incomplete and that several parts of the original program did not hold up.[10]

  • In his account, the search for general problem-solving strategies failed. Programs that copied experts showed that task-specific knowledge mattered more than general principles, as in work on expert systems.
  • Means-ends analysis as built into GPS faded, and the simpler idea of backward chaining took its place as one general method among others.
  • In the early 1990s, problem solving stopped driving research on complex thinking.

The main open question is one Newell and Simon posed themselves in 1971: how do people build a problem space when they face a new task?[10] Ohlsson splits it into five questions about how people perceive the problem, recall relevant actions, set the goal, choose actions, and judge progress.[10]

References

  1. Chapter 10: Problem Solving, Cognitive Foundations (open textbook), n.d.
  2. 10.1 Introduction (Problem Solving), Cognitive Psychology, R. Graham and S. Griffin, 2025.
  3. What is 8D? Eight Disciplines Problem Solving Process, American Society for Quality, n.d.
  4. A3 Report, Lean Enterprise Institute, n.d.
  5. Complex Problem Solving: What It Is and What It Is Not, Frontiers in Psychology, 2017.
  6. The Structure of Ill Structured Problems, H. A. Simon, Artificial Intelligence, 1973.
  7. 5.2: George Pólya's Strategy, Mathematics LibreTexts, n.d.
  8. How to Solve It, G. Pólya, Princeton University Press, 1945 (2nd ed. 1957).
  9. 7.3 Problem Solving, Psychology 2e, OpenStax, 2020.
  10. The Problems with Problem Solving: Reflections on the Rise, Current Status, and Possible Future of a Cognitive Research Paradigm, S. Ohlsson, Journal of Problem Solving, 2012.
  11. Human Problem Solving: The State of the Theory in 1970, H. A. Simon and A. Newell, American Psychologist, 1971.
  12. Simple Variations on the Tower of Hanoi to Guide the Study of Recurrences and Proofs by Induction, S. Mneimneh, Hunter College, CUNY, n.d.
  13. Thorndike's Puzzle Boxes and the Origins of the Experimental Analysis of Behavior, P. Chance, Journal of the Experimental Analysis of Behavior, 1999.
  14. Kohler's Research on the Mentality of Apes, excerpt from The Animal Mind by J. L. Gould and C. G. Gould, Tufts University, 2001.
  15. Wallas' Four-Stage Model of the Creative Process: More Than Meets the Eye?, Creativity Research Journal (ERIC record), 2015.
  16. Eight Disciplines of Problem Solving (8D), Quality-One International, n.d.
  17. The New Rational Manager, Chapters 1 and 2, C. H. Kepner and B. B. Tregoe, Kepner-Tregoe, n.d.
  18. Introduction to TRIZ: Innovative Problem Solving, P. R. Apte, IIT Bombay, n.d.
  19. Issue Tree: The Complete Guide with Examples, MyConsultingOffer, 2025.
  20. The A3 Problem Solving Report: A 10-Step Scientific Method to Execute Performance Improvements in an Academic Research Vivarium, PLOS ONE, 2013.
  21. How to Start the A3 Problem-Solving Process, Lean Enterprise Institute, n.d.
  22. Resolving Contradictions with 40 Inventive Principles, The TRIZ Journal, n.d.
  23. Solving Problems by Searching (Chapter 3), S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach, 3rd ed., Pearson, 2010.

Figure