State-Space Representation
General Problem Solving via
simplification
Read Chapter 3
What you should know
•
•
•
•
•

Create a state-space model
Estimate number of states
Identify goal or objective function
Identify operators
Next Lecture: how to search/use model
Everyday Problem Solving
• Route Planning
– Finding and navigating to a classroom seat
• Replanning if someone cuts in front

– Driving to school
• Constant updating due to traffic

• Putting the dishes away
– Spatial reasoning
Goal: Generality
• People are good at multiple tasks
• Same model of problem solving for all
problems
• Generality via abstraction and
simplification.
• Toy problems as benchmarks for methods,
not goal.
• AI criticism: generality is not free
State-Space Model
• Initial State
• Operators: maps a state into a next state
– alternative: successors of state

• Goal Predicate: test to see if goal achieved
• Optional:
– cost of operators
– cost of solution
Major Simplifications
• You know the world perfectly
– No one tells you how to represent the world
– Sensors always make mistakes

• You know what operators do
– Operators don’t always work

• You know the set of legal operators
– No one tells you the operators
8-Queens Model 1
• Initial State: empty 8 by 8 board
• Operators:
– add a queen to empty square
– remove a queen
– [move a queen to new empty square]

• Goal: no queen attacks another queen
– Eight queens on board

• Good enough? Can a solution be found?
8-Queens Model 2
• Initial State: empty 8 by 8 board
• Operators:
– add ith queen to some column (i = 1..8)
– Ith queen is in row i

• Goal: no queen attacks another queen
– 8 queens on board

• Good enough?
8-Queens Model 3
• Initial State:
– random placement of 8 queens ( 1 per row)

• Operators:
– move a queen to new position (in same row)

• Goal: no queen attacks another queen
– 8 queens on board
Minton
• Million Queens problem
• Can’t be solved by complete methods
• Easy by Local Improvement –
– to be covered next week

• Same method works for many real-world
problems.
Traveling Salesman Problem
• Given: n cities and distances
• Initial State: fix a city
• Operators:
–
–
–
–

add a city to current path
[move a city to new position]
[swap two cities]
[UNCROSS]

• Goal: cheapest path visiting all cities once and
returning.
TSP
• Clay prize: $1,000,000 if prove can be done
in polynomial time or not.
• Number of paths is N!
• Similar to many real-world problems.
• Often content with best achievable:
bounded rationality
Sliding Tile Puzzle
•
•
•
•

8 by 8 or 15 by 15 board
Initial State:
Operators:
Goal:
Sliding Tile Puzzle
• 8 by 8 or 15 by 15 board
• Initial State: random (nearly) of number 1..7
or 1..14.
• Operators:
– slide tile to adjacent free square.

• Goal: All tiles in order.
• Note: Any complete information puzzle fits
this model.
Cryptarithmetic
•
•
•
•

Ex: SEND+MORE = MONEY
Initial State:
Operators:
Goal:
Cryptarithmetic
• SEND+MORE = MONEY
• Initial State: no variable has a value
• Operators:
– assign a variable a digit (0..9) (no dups)
– unassign a variable

• Goal: arithmetic statement is true.
• Example of Constraint Satisfaction Problem
Boolean Satisfiability (3-sat)
•
•
•
•
•

$1,000,000 problem
Problem example (a1 +~a4+a7)&(….)
Initial State:
Operators
Goal:
Boolean Satisfiability (3-sat)
• Problem example (a1 +~a4+a7)&(….)
• Initial State: no variables are assigned values
• Operators
– assign variable to true or false
– negate value of variable (t->f, f->t)

• Goal: boolean expression is satisfied.
• $1,000,000 problem
• Ratio of clauses to variables breaks problem into 3 classes:
– low ratio : easy to solve
– high ratio: easy to show unsolvable
– mid ratio: hard
CrossWord Solving
• Initial-State: empty board
• Operators:
– add a word that
• Matches definition
• Matches filled in letters

– Remove a word

• Goal: board filled
Most Common Word
(Misspelled) Finding
• Given: word length + set of strings
• Find: most common word to all strings
– Warning: word may be misspelled.

•
•
•
•

length 5: hellohoutemary position 5
bargainsamhotseview
position 10
tomdogarmyprogramhomse position 17
answer: HOUSE
Misspelled Word Finding
•
•
•
•

Let pi be position of word in string i
Initial state: pi = random position
Operators: assign pi to new position
Goal state: position yielding word with
fewest misspellings
• Problem derived from Bioinformatics
– finds regulatory elements; these determine
whether gene are made into proteins.

More Related Content

PPT
Solving problems by searching
PDF
State Space Representation and Search
PPT
Lecture 2
PPT
Problem space
PDF
Ai 03 solving_problems_by_searching
PPT
(Radhika) presentation on chapter 2 ai
PPT
Rai practical presentations.
PPT
Solving problems by searching
State Space Representation and Search
Lecture 2
Problem space
Ai 03 solving_problems_by_searching
(Radhika) presentation on chapter 2 ai
Rai practical presentations.

What's hot (19)

PPTX
Popular search algorithms
PPTX
AI: AI & Searching
PDF
Search problems in Artificial Intelligence
PDF
AI Lesson 03
PPTX
AI: AI & Problem Solving
PDF
AI Lesson 04
PPTX
Control Strategies in AI
PDF
Heuristic search-in-artificial-intelligence
PPT
Searching methodologies
PPTX
Artificial Intelligence
PPT
Heuristic Search Techniques {Artificial Intelligence}
PDF
Uninformed search
PDF
AI Lesson 10
PPTX
AI search techniques
PPT
simple
PPT
Heuristic approach optimization
PDF
Optimization Heuristics
PPTX
Final slide4 (bsc csit) chapter 4
PDF
Optimization using soft computing
Popular search algorithms
AI: AI & Searching
Search problems in Artificial Intelligence
AI Lesson 03
AI: AI & Problem Solving
AI Lesson 04
Control Strategies in AI
Heuristic search-in-artificial-intelligence
Searching methodologies
Artificial Intelligence
Heuristic Search Techniques {Artificial Intelligence}
Uninformed search
AI Lesson 10
AI search techniques
simple
Heuristic approach optimization
Optimization Heuristics
Final slide4 (bsc csit) chapter 4
Optimization using soft computing
Ad

Viewers also liked (20)

PPT
PPT
State space analysis, eign values and eign vectors
PPSX
linear algebra in control systems
PPT
State Space Search(2)
PDF
Solved problems 1(control volume)
PPTX
State space analysis shortcut rules
PDF
Modern Control System (BE)
PPTX
Week 15 state space rep may 25 2016 final
PPT
The Space of Representation
PDF
The Controller Design For Linear System: A State Space Approach
PDF
Chap1see4113
PPT
Artificial Intelligence -- Search Algorithms
PPTX
State equations for physical systems
PPTX
Issues in knowledge representation
PPTX
Forward Backward Chaining
PPT
Predicate Logic
PPTX
Knowledge representation in AI
PDF
03 elec3114
PPTX
Knowledge representation and Predicate logic
State space analysis, eign values and eign vectors
linear algebra in control systems
State Space Search(2)
Solved problems 1(control volume)
State space analysis shortcut rules
Modern Control System (BE)
Week 15 state space rep may 25 2016 final
The Space of Representation
The Controller Design For Linear System: A State Space Approach
Chap1see4113
Artificial Intelligence -- Search Algorithms
State equations for physical systems
Issues in knowledge representation
Forward Backward Chaining
Predicate Logic
Knowledge representation in AI
03 elec3114
Knowledge representation and Predicate logic
Ad

Similar to Lec2 state space (20)

PPT
Lecutre 2-State Space for control system
PPT
Various Uninform Search Strategies in AI.ppt
PPTX
UninformedSearch (2).pptx
PPTX
AI&ML-UNIT-1 problem solving agents.pptx
PDF
Week 5.pdf
PDF
03_UninformedSearch.pdf
PPTX
AI module 2 presentation under VTU Syllabus
PPT
Uninformed Search goal based agents Representing states and operations
PPTX
Lecture - 2 - Problem Solving.pptx bbbbbb
PPT
3 probsolver edited.ppt
PPTX
Problem solving
PDF
Lecture is related to the topic of Artificial intelligence
PPT
state-spaces29Sep06.ppt
PPT
02 search problems
PPTX
chapterThree.pptx
PPTX
3. Module_2_Chapter_3hvghcyttrctrctfcf.pptx
PDF
chapter 2 Problem Solving.pdf
PPT
CH2_AI_Lecture1.ppt
PPTX
artificial intelligence bcs515b moDULE 2 notes vtu
PDF
Lecture 3 problem solving
Lecutre 2-State Space for control system
Various Uninform Search Strategies in AI.ppt
UninformedSearch (2).pptx
AI&ML-UNIT-1 problem solving agents.pptx
Week 5.pdf
03_UninformedSearch.pdf
AI module 2 presentation under VTU Syllabus
Uninformed Search goal based agents Representing states and operations
Lecture - 2 - Problem Solving.pptx bbbbbb
3 probsolver edited.ppt
Problem solving
Lecture is related to the topic of Artificial intelligence
state-spaces29Sep06.ppt
02 search problems
chapterThree.pptx
3. Module_2_Chapter_3hvghcyttrctrctfcf.pptx
chapter 2 Problem Solving.pdf
CH2_AI_Lecture1.ppt
artificial intelligence bcs515b moDULE 2 notes vtu
Lecture 3 problem solving

More from Praveen Kumar (20)

PDF
Summer2014 internship
PDF
Summer+training 2
PDF
Summer+training
PDF
Solutions1.1
PDF
Slides15
PDF
Scribed lec8
PDF
Scholarship sc st
PDF
Networks 2
PDF
Mithfh lecturenotes 9
PDF
Mcs student
PDF
Math350 hw2solutions
PDF
Matching
PDF
Line circle draw
PDF
Lecture3
PDF
Graphtheory
PPT
Graphics display-devicesmod-1
PDF
Games.4
PDF
Dda line-algorithm
PPT
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
PDF
Cse3461.c.signal encoding.09 04-2012
Summer2014 internship
Summer+training 2
Summer+training
Solutions1.1
Slides15
Scribed lec8
Scholarship sc st
Networks 2
Mithfh lecturenotes 9
Mcs student
Math350 hw2solutions
Matching
Line circle draw
Lecture3
Graphtheory
Graphics display-devicesmod-1
Games.4
Dda line-algorithm
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cse3461.c.signal encoding.09 04-2012

Recently uploaded (20)

PPTX
GILGIT BALTISTAN HISTORY ,ADMINISTRATIVE , CONSTITUTUINAL STATUS , GEOGRAPMY ...
PPTX
Goal - its setting ,tracking and relevance
DOCX
When Smiles Disappear: Helping Children Break Through Social Barriers
PPTX
eNTREP OHS 5jhjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjs.pptx
PDF
Module-3-Week005-to-Week006-PPT.pdf hahahgs
PPTX
Cloud Computing ppt[1].pptxkuti7t888tt8iug
PDF
Siemens NX 2506 Build 4001 Crack Free Latest Version 2025
PDF
On vacation to the wonder of the world Machu Picchu.pdf
PPTX
Health_System_in_India_Oasrganization_BSc_Nursing.pptx
PDF
Avast Premium Security Crack Full Download (Latest 2025)
PPTX
SWweredddddaregqrgWWEQEwqdewf final.pptx
PDF
mnbnyuynhncf ytdnbvdfghdfhghdhdfhdghdghdghghgfhfh
PDF
Disney Junior's Pupstruction: Great Outdoors Song
PPTX
Kids Interactive Games chatgpt based waste
PPTX
very useful for every thing in this area
PPTX
Exploring Family-Friendly, Top-Rated Aqua Destinations
PPTX
Randomiser Wheel- All About Me Wheel for KG-3 Can be used as an icebreaker
PDF
4K Video Downloader 4.33.5 Crack / Plus 25.2.0 latest Downloads 2025
PPTX
VE_Situational_Question_Set1___2et2.pptx
PDF
Lucky_MangA chapter 2. Story and Art by Enaji Studio
GILGIT BALTISTAN HISTORY ,ADMINISTRATIVE , CONSTITUTUINAL STATUS , GEOGRAPMY ...
Goal - its setting ,tracking and relevance
When Smiles Disappear: Helping Children Break Through Social Barriers
eNTREP OHS 5jhjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjs.pptx
Module-3-Week005-to-Week006-PPT.pdf hahahgs
Cloud Computing ppt[1].pptxkuti7t888tt8iug
Siemens NX 2506 Build 4001 Crack Free Latest Version 2025
On vacation to the wonder of the world Machu Picchu.pdf
Health_System_in_India_Oasrganization_BSc_Nursing.pptx
Avast Premium Security Crack Full Download (Latest 2025)
SWweredddddaregqrgWWEQEwqdewf final.pptx
mnbnyuynhncf ytdnbvdfghdfhghdhdfhdghdghdghghgfhfh
Disney Junior's Pupstruction: Great Outdoors Song
Kids Interactive Games chatgpt based waste
very useful for every thing in this area
Exploring Family-Friendly, Top-Rated Aqua Destinations
Randomiser Wheel- All About Me Wheel for KG-3 Can be used as an icebreaker
4K Video Downloader 4.33.5 Crack / Plus 25.2.0 latest Downloads 2025
VE_Situational_Question_Set1___2et2.pptx
Lucky_MangA chapter 2. Story and Art by Enaji Studio

Lec2 state space

  • 1. State-Space Representation General Problem Solving via simplification Read Chapter 3
  • 2. What you should know • • • • • Create a state-space model Estimate number of states Identify goal or objective function Identify operators Next Lecture: how to search/use model
  • 3. Everyday Problem Solving • Route Planning – Finding and navigating to a classroom seat • Replanning if someone cuts in front – Driving to school • Constant updating due to traffic • Putting the dishes away – Spatial reasoning
  • 4. Goal: Generality • People are good at multiple tasks • Same model of problem solving for all problems • Generality via abstraction and simplification. • Toy problems as benchmarks for methods, not goal. • AI criticism: generality is not free
  • 5. State-Space Model • Initial State • Operators: maps a state into a next state – alternative: successors of state • Goal Predicate: test to see if goal achieved • Optional: – cost of operators – cost of solution
  • 6. Major Simplifications • You know the world perfectly – No one tells you how to represent the world – Sensors always make mistakes • You know what operators do – Operators don’t always work • You know the set of legal operators – No one tells you the operators
  • 7. 8-Queens Model 1 • Initial State: empty 8 by 8 board • Operators: – add a queen to empty square – remove a queen – [move a queen to new empty square] • Goal: no queen attacks another queen – Eight queens on board • Good enough? Can a solution be found?
  • 8. 8-Queens Model 2 • Initial State: empty 8 by 8 board • Operators: – add ith queen to some column (i = 1..8) – Ith queen is in row i • Goal: no queen attacks another queen – 8 queens on board • Good enough?
  • 9. 8-Queens Model 3 • Initial State: – random placement of 8 queens ( 1 per row) • Operators: – move a queen to new position (in same row) • Goal: no queen attacks another queen – 8 queens on board
  • 10. Minton • Million Queens problem • Can’t be solved by complete methods • Easy by Local Improvement – – to be covered next week • Same method works for many real-world problems.
  • 11. Traveling Salesman Problem • Given: n cities and distances • Initial State: fix a city • Operators: – – – – add a city to current path [move a city to new position] [swap two cities] [UNCROSS] • Goal: cheapest path visiting all cities once and returning.
  • 12. TSP • Clay prize: $1,000,000 if prove can be done in polynomial time or not. • Number of paths is N! • Similar to many real-world problems. • Often content with best achievable: bounded rationality
  • 13. Sliding Tile Puzzle • • • • 8 by 8 or 15 by 15 board Initial State: Operators: Goal:
  • 14. Sliding Tile Puzzle • 8 by 8 or 15 by 15 board • Initial State: random (nearly) of number 1..7 or 1..14. • Operators: – slide tile to adjacent free square. • Goal: All tiles in order. • Note: Any complete information puzzle fits this model.
  • 15. Cryptarithmetic • • • • Ex: SEND+MORE = MONEY Initial State: Operators: Goal:
  • 16. Cryptarithmetic • SEND+MORE = MONEY • Initial State: no variable has a value • Operators: – assign a variable a digit (0..9) (no dups) – unassign a variable • Goal: arithmetic statement is true. • Example of Constraint Satisfaction Problem
  • 17. Boolean Satisfiability (3-sat) • • • • • $1,000,000 problem Problem example (a1 +~a4+a7)&(….) Initial State: Operators Goal:
  • 18. Boolean Satisfiability (3-sat) • Problem example (a1 +~a4+a7)&(….) • Initial State: no variables are assigned values • Operators – assign variable to true or false – negate value of variable (t->f, f->t) • Goal: boolean expression is satisfied. • $1,000,000 problem • Ratio of clauses to variables breaks problem into 3 classes: – low ratio : easy to solve – high ratio: easy to show unsolvable – mid ratio: hard
  • 19. CrossWord Solving • Initial-State: empty board • Operators: – add a word that • Matches definition • Matches filled in letters – Remove a word • Goal: board filled
  • 20. Most Common Word (Misspelled) Finding • Given: word length + set of strings • Find: most common word to all strings – Warning: word may be misspelled. • • • • length 5: hellohoutemary position 5 bargainsamhotseview position 10 tomdogarmyprogramhomse position 17 answer: HOUSE
  • 21. Misspelled Word Finding • • • • Let pi be position of word in string i Initial state: pi = random position Operators: assign pi to new position Goal state: position yielding word with fewest misspellings • Problem derived from Bioinformatics – finds regulatory elements; these determine whether gene are made into proteins.