General Problem Solver: goals and subgoals
通用问题求解器
Follow means–ends analysis while separating reusable search organization from domain knowledge and psychological evidence.
general-problem-solverThe problem in its time
You want a printed document. The printer has no toner. Before solving the original problem, you must solve a smaller one: obtain a cartridge. That smaller problem may require another step, such as opening the supply cupboard. The goal has not changed, but the route to it has acquired a hierarchy.
General Problem Solver, usually abbreviated GPS, made this kind of recursive problem solving explicit. Its historical ambition was to separate a reusable problem-solving organization from the details of a particular task. “General” did not mean that the program already possessed every useful fact about the world.
Newell, Shaw and Simon’s report P-1584 is dated 30 December 1958 and revised 9 February 1959. The distinction matters when locating the work: the year attached to a later publication is not automatically the date of its first description. The report describes GPS-I and examples from elementary symbolic logic and algebra. Report on a General Problem-Solving Program — P-1584, revised 9 February 1959
What the evidence establishes
The report organizes a task environment through objects, differences and operators. An operator changes an object or state, but may require conditions before it can be applied. Means–ends analysis selects a difference between the current and desired situation, looks for an operator that could reduce it and turns unmet applicability conditions into subgoals. This is a search organization, not a guarantee that the chosen operator is best. Report on a General Problem-Solving Program — P-1584, revised 9 February 1959
The program still needs task-specific representations and information connecting differences to useful operators. Moving from an algebra problem to a physical task is not just changing a sentence in ordinary language. Someone must provide an appropriate problem description and transformations.
The 1961 GPS paper makes a further ambition explicit: model aspects of human problem solving. Its opening limits the claim to how some people approach some simple formal problems. The authors compare a program with think-aloud records, or protocols. Matching a result and matching a process are different kinds of evidence. GPS, A Program That Simulates Human Thought — P-2257, revised 10 April 1961
Work through the idea
Make the printer example precise. The initial state contains DocumentReady and CartridgeInCupboard. Print requires DocumentReady and PrinterReady, and produces Printed. LoadCartridge requires HaveCartridge, and produces PrinterReady. FetchCartridge requires CartridgeInCupboard and CupboardOpen, and produces HaveCartridge. OpenCupboard produces CupboardOpen.
Starting from the goal Printed, select Print. Its unmet condition PrinterReady becomes a subgoal. Select LoadCartridge, then create HaveCartridge as a subgoal. Select FetchCartridge, which creates CupboardOpen. Open the cupboard, then return through the pending subgoals: fetch, load, print. The explanation is a stack of unfinished purposes, not merely a flat list of actions.
These are our invented operators, not the original GPS input language. They deliberately omit resource consumption, failures and the possibility that the cupboard is locked. If those matter, the model must include them. A plan can be flawless in the simplified model and impossible in the actual office.
A second issue is ordering. Suppose one operation prepares the printer while another operation, needed elsewhere, turns it off. Achieving a condition once does not ensure it remains true. A solver needs to represent and manage interactions between subgoals. The hierarchical explanation alone does not make those interactions disappear.
Attribution and limits
GPS is often placed between early theorem proving and later planning systems. That placement is useful if it preserves the actual mechanism: a goal-directed organization operating on a supplied task environment. It becomes misleading when “general” is treated as a demonstrated ability to solve arbitrary real-world problems.
A heuristic can also fail without proving that a solution does not exist. Choosing an unhelpful difference, exhausting a search budget or entering a cycle says something about the search procedure and its resources. It is not a mathematical impossibility result for the task.
The psychological interpretation needs its own controls. A think-aloud transcript may omit steps, and more than one internal process can produce the same final answer. The 1961 paper is evidence of a particular modeling approach and comparison, not proof that every human mind runs GPS. GPS, A Program That Simulates Human Thought — P-2257, revised 10 April 1961
Exercises with answers
1. What is the first unmet subgoal in the printer example?
PrinterReady, because DocumentReady is already true and Print needs both.
2. Which action order satisfies the stated model?
OpenCupboard, FetchCartridge, LoadCartridge, Print. Each action supplies a condition needed by the next.
3. What knowledge is still domain-specific?
The state descriptions, operator conditions and effects, and the connection between differences and candidate operators.
4. Does matching a human’s answer establish a matching thought process?
No. Process-level evidence requires comparisons beyond the final answer, with attention to alternative explanations.
Read the original sources
Read P-1584’s summary and organization of objects, operators and subgoals. Then read the opening and protocol discussion of P-2257 to see how the authors distinguish task achievement from psychological simulation. The two documents illuminate different parts of the project.
Continue with Logic Theorist, STRIPS and hierarchical task networks. Compare what each system requires from a task description before comparing its search behavior. Report on a General Problem-Solving Program — P-1584, revised 9 February 1959; GPS, A Program That Simulates Human Thought — P-2257, revised 10 April 1961
Make a prediction, then check
What does GPS still need when moving to a new task domain?
Learning objectives
- Trace a goal through unmet operator conditions and return to the original task.
- Distinguish general search organization from general world knowledge.
Prerequisites & connections
This article can be used as an entry point.
Explore related knowledge →References
- Report on a General Problem-Solving Program — P-1584, revised 9 February 1959
Allen Newell; J. C. Shaw; Herbert A. Simon · 1959 - GPS, A Program That Simulates Human Thought — P-2257, revised 10 April 1961
Allen Newell; Herbert A. Simon · 1961
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-07 · Codex single-AI-author historical check: bounded original sources, explicit attribution and chronology, original hand-traced examples, matched bilingual sections and exercises. Not independent human or second-agent review; no historical code execution claimed.
- Single-AI-author historical check of bounded primary passages, chronology, attribution, claims versus later interpretation, and corresponding bilingual examples and exercises. No independent human or second-agent review; historical essays require no executable program.
- Hand-traced the original four-action teaching example; hypothetical printer operators not attributed to the historical implementation.
- Complete bilingual prose and corresponding exercises promoted with formal status and SHA binding. Algorithm tests read formal MDX; historical essays claim no executable program or computational tests.
- Publication navigation points published topics to complete articles and removes corresponding pending wording, retaining directory entries for unwritten targets. Principles, equations, programs and exercises are unchanged; final article SHA values rebound.
Source locations checked:
- Report on a General Problem-Solving Program — P-1584, revised 9 February 1959 · P-1584 physical pages 1–10: original and revision dates, summary, task objects/operators, difference-guided methods and recursive subgoal reduction; cover visually checked.
- GPS, A Program That Simulates Human Thought — P-2257, revised 10 April 1961 · P-2257 physical pages 1–8: original/revision chronology, limited claim about some human formal-problem solving, think-aloud protocol and task rules; OCR used for bounded reading.
Related topics