The General Problem Solver (GPS) was a computer program developed from 1957 by Allen Newell, J. C. Shaw and Herbert A. Simon that attempted to solve any formally described problem with one domain-independent reasoning method, called means-ends analysis. It is a landmark of AI history because it was the first program to separate general problem-solving strategy from task-specific knowledge, an idea that shaped symbolic artificial intelligence, automated planning and cognitive science for decades.
GPS followed the Logic Theorist of 1956 from the same group. Where the Logic Theorist proved theorems in one domain, GPS aimed at generality: the same core program could work on logic proofs, puzzles and symbolic algebra once a user supplied a description of the task.
How the General Problem Solver worked
GPS solved problems by repeatedly reducing the difference between the current state and the goal state. A task was described as a set of objects (states), operators that transform objects, and differences that detect how one object fails to match another. A table of connections told GPS which operators were relevant for reducing which differences.
The program pursued three types of goals, and each goal type had its own method. Working on one goal often created subgoals, so GPS built a goal tree and searched it recursively, abandoning subgoals that looked harder than their parents.
| Goal type | What it asks | Method used |
|---|---|---|
| Transform object A into B | Can the current state become the goal state | Find a difference, then set a reduce goal |
| Reduce difference D | How can this specific mismatch be removed | Look up relevant operators in the difference table |
| Apply operator Q to A | Can this operator be used on the current state | Check preconditions; if unmet, set a transform subgoal |
Differences were ranked by difficulty, so GPS tackled the hardest mismatch first and left easier ones for later. This ordering embodies a central heuristic insight: some differences, once removed, tend to stay removed, while others are easy to fix at the end.
Implementation and the tasks it solved
GPS was written in IPL (Information Processing Language), a list-processing language designed by the same group, and first ran on the JOHNNIAC computer at RAND. The first major report appeared in 1959, and the program continued to evolve until the late 1960s, when a revised version by George Ernst and Newell was documented in detail.
The later version demonstrated generality on about eleven different tasks, each requiring only a new task description. The table lists representative examples.
| Task | Objects | Operators |
|---|---|---|
| Propositional logic proofs | Logical expressions | Rewrite rules of logic |
| Tower of Hanoi | Disk configurations | Move one disk between pegs |
| Missionaries and cannibals | Positions of people and boat | Boat crossings |
| Symbolic integration | Algebraic expressions | Integration rules |
| Trigonometric identities | Trigonometric expressions | Identity substitutions |
| Letter series completion | Partial sequences | Pattern hypotheses |
All of these tasks are well-defined and fully formalized: the states, legal moves and goal tests can be written down completely. This restriction later became the main criticism of the program.
GPS as a model of human thinking
GPS was also a psychological theory, not only an engineering artifact. Newell and Simon compared its traces with think-aloud protocols recorded from people solving the same logic problems and found that both often pursued similar subgoals in a similar order.
This method, called protocol analysis, became a foundation of information-processing psychology and culminated in the 1972 book Human Problem Solving. The claim that human cognition can be modeled as symbol manipulation guided by heuristics later appeared in the physical symbol system hypothesis stated by Newell and Simon in 1976.
How GPS compares with related systems
GPS sits on a direct line from early theorem proving to modern planning and cognitive architectures. The comparison below shows what each system took from or added to the GPS approach.
| System | Period | Relation to GPS |
|---|---|---|
| Logic Theorist | 1956 | Predecessor; domain-specific heuristic search in logic |
| General Problem Solver | 1957-1969 | General means-ends analysis over task descriptions |
| STRIPS | 1971 | Adopted operator preconditions and effects for robot planning |
| DENDRAL and MYCIN | 1965-1970s | Rejected generality in favor of deep domain knowledge |
| Soar | 1980s onward | Cognitive architecture extending GPS ideas with learning |
The contrast with expert systems is especially instructive. GPS bet on powerful general methods with little knowledge; the expert systems of the 1970s bet on large amounts of domain knowledge with simple inference, a shift often summarized as the move from search to knowledge.
Limitations of the General Problem Solver
Despite its name, GPS could not solve general real-world problems. Its limits are well documented and explain why later AI research changed direction.
- Hand-made representations: a human had to define objects, operators, differences and the difference table for every task, which is where much of the intelligence lay.
- Combinatorial explosion: search grew quickly with problem size, so only small puzzle instances were tractable.
- Toy domains only: the method required fully formalized tasks and could not handle uncertainty, vague goals or common sense.
- Interacting subgoals: removing one difference could reintroduce another, a problem later studied as the Sussman anomaly in planning.
Ernst and Newell themselves concluded that broadening generality weakened problem-solving power, which is why development stopped around 1969. The lasting legacy lies in the concepts, not in the program itself.
Put simply
The General Problem Solver was an early computer program from the late 1950s. It tried to solve many kinds of puzzles with one single strategy. The strategy was simple. Look at where you are, look at where you want to be, and find a step that closes the gap.
People do this every day. To get to work, you need to travel. To travel, you need the car keys. So you find the keys first. GPS worked the same way, but it only worked on neat puzzles that someone had carefully described for it.
In practice
Consider how GPS approaches the Tower of Hanoi with three disks. The current state has all disks on the left peg, and the goal state has them on the right peg. GPS detects the most difficult difference: the largest disk is on the wrong peg. It selects the operator that moves a disk, but the precondition fails because two smaller disks sit on top of the largest one.
GPS therefore sets a subgoal: transform the current state into one where the largest disk is free and the right peg is empty. Solving this subgoal moves the two smaller disks to the middle peg, using the same method recursively. The largest disk then moves to the right peg, and GPS reduces the remaining differences until the puzzle is solved in the minimum of seven moves. The same program, given a new task description instead of the Hanoi rules, would attempt a logic proof with exactly the same reasoning procedure.