Simon and newell human problem solving theory 1971

From curiositech/windags-skills · View interactive version

Simon and newell human problem solving theory 1971 is an AI agent skill from the GitHub repository curiositech/windags-skills. Foundational cognitive science theory of human problem-solving through heuristic search in problem spaces

How to use this skill

Skill file

SKILL: Human Problem Solving Theory

Core Insight

Intelligence = examining the right 50 nodes out of 10^100, not searching faster through millions. This skill provides L3 decision frameworks for when and how to apply selective search principles to agent systems.

DECISION POINTS

Agent Performance Diagnosis

IF agent examines >1000 nodes for problems with <10^6 states
├── THEN selectivity problem
├── Fix: Extract structural information for heuristics
└── NOT: Add more compute power

IF same problem solved easily with different representation
├── THEN problem space construction issue  
├── Fix: Test alternative state representations
└── NOT: Optimize search within current representation

IF agent succeeds on similar problems but fails here
├── Check: Does current problem space expose task structure?
├── If NO: Reconstruct problem space
└── If YES: Refine heuristics for this structure

IF resource usage grows unbounded
├── THEN strategy exceeds architectural constraints
├── Fix: Switch to constraint-compatible strategy
└── Example: Progressive deepening for limited memory

Search Strategy Selection

Working Memory: LIMITED + Backtracking: CHEAP
└── Use progressive deepening (depth-first with backtrack)

Working Memory: ABUNDANT + State comparison: NEEDED  
└── Use scan-and-search (breadth-first)

Task Structure Assessment:
├── Clear goal state + Measurable progress → Means-ends analysis
├── Hard constraints + Dependencies → Most-constrained-first
├── Recognizable patterns + Action opportunities → Opportunistic planning
└── Multiple valid paths + Resource limits → Constraint satisfaction

Heuristic Design Decision Tree

Task has well-defined goal state?
├── YES: Extract differences between current and goal
│   ├── Differences are measurable? → Means-ends analysis
│   └── Differences are qualitative? → Pattern-based selection
└── NO: Use structural constraints
    ├── Hard constraints exist? → Most-constrained-first
    ├── Known patterns exist? → Production rules (condition→action)
    └── Multiple operators available? → Extract structural ranking info

FAILURE MODES

Speed Fallacy Anti-Pattern

Detection Rule: If solution involves "faster hardware" or "more parallelism" for search problems

Symptoms: Agent examines thousands of nodes, performance scales with compute

Diagnosis: Missing selectivity through structural information extraction

Fix: Analyze task structure for exploitable patterns, constraints, or goal-distance measures

Universal Strategy Trap

Detection Rule: If same search approach (usually means-ends) applied to all problems

Symptoms: Works on clear-goal problems, fails on constraint satisfaction or opportunistic tasks

Diagnosis: Strategy-task structure mismatch

Fix: Match search pattern to task structure—means-ends for goal reduction, constraint propagation for CSPs, pattern recognition for opportunistic planning

Representation Blindness

Detection Rule: If optimization effort goes to search algorithms before testing representations

Symptoms: Extensive tuning yields marginal gains, "obviously easy" problems remain hard

Diagnosis: Wrong problem space for task structure

Fix: Test 2-3 alternative state representations before optimizing search within any one

Architecture-Strategy Mismatch

Detection Rule: If strategy requires more working memory than system provides

Symptoms: Thrashing, exponential memory growth, inability to backtrack effectively

Diagnosis: Importing unlimited-memory strategies to constrained systems

Fix: Use progressive deepening for memory-limited, scan-and-search only when memory permits full state tracking

Construction Neglect Pattern

Detection Rule: If problem space treated as "given" without explicit construction phase

Symptoms: Agent can't initialize on new tasks, representation seems arbitrary

Diagnosis: No systematic problem space construction from task environment

Fix: Allocate design effort to representation selection proportional to search difficulty

WORKED EXAMPLES

Example 1: Cryptarithmetic Problem (SEND + MORE = MONEY)

Novice Approach:

Expert Application:

Key Insight: Same task, different problem space. Constraint-based representation exposes structure that assignment-enumeration hides.

Example 2: Tower of Hanoi (5 disks)

Representation Comparison:

Poor representation: States as disk positions [(disk1_peg, disk2_peg, ...)]

Good representation: States as peg configurations with implicit size ordering

Decision Logic Applied:

  1. Task structure: Clear goal state (all disks on peg 3), subgoal decomposition possible
  2. Strategy selection: Means-ends analysis appropriate (goal-directed with measurable progress)
  3. Heuristic design: Difference = number of disks not on target peg
  4. Architecture match: Recursive subgoaling fits human memory limits through problem decomposition

Search Performance: Expert finds solution in 31 moves (optimal) by examining ~50 nodes. Poor representation might examine 1000+ nodes and find suboptimal 100-move solution.

Example 3: Medical Diagnosis Task

Task Environment: Patient symptoms → disease identification → treatment

Problem Space Construction Decision:

Expert Choice: Hybrid approach

Decision Framework Applied:

  1. Recognizable patterns exist → Use opportunistic planning (symptom patterns trigger disease hypotheses)
  2. Hard constraints exist → Most-constrained-first for disambiguation (tests that rule out maximum candidates)
  3. Memory limits binding → Progressive deepening with early pattern termination

QUALITY GATES

NOT-FOR Boundaries

Do NOT use this skill for:

Delegation Rules:

Boundary Markers:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.