State Space Search(2)

L
State Space Search •  Readings: Rich and Knight: Sect 2.1
 
 
 
 
 
 
 
 
Train Problem •  State Representation: A Lisp atom: the current city •  Initial State (define *start-state* 'sacramento) •  Goal State (define *goal-state* 'austin.texas) (define (solution-state? s) (eqv? s *goal-state*)) •  Operators (50) –  Go from neighboring capitals to each capital (define *state-operators* (list goto-atlanta goto-montgomery goto-juneau  goto-phoenix goto-sacramento goto-santa-fe goto-austin)) (define (goto-montgomery state) (if (member state '(juneau atlanta)) 'montgomery #f))
Farmer Wolf Goat and Cabbage problem A problem description consists of ;;;1. A structure to represent the state description: jug-contents A fixed sized data structure comprised of a number of fields •  (defstruct name field-1 field-2 ... fieldn) defines a structure (defstruct side farmer wolf goat cabbage) => side ;;;2. A list of operators: *jug-problem-operators* ;;;  These functions define legal moves in the state space (define *farmer-wolf-goat-cabbage-operators*  '(farmer-takes-self farmer-takes-wolf farmer-takes-goat farmer-takes-cabbage)) ;;;3. A definition of each operator:  ;;;  An operator is a scheme function, that given a state description, returns a new  ;;;  state description (Or null if the operator can't be applied) (define (farmer-takes-self state) (safe (make-side 'farmer (opposite (side.farmer state))   'wolf (side.wolf state)     'goat (side.goat state)     'cabbage (side.cabbage state))))
A particular problem requires ;;;.1. A start state (define *start-state*  (make-side 'farmer 'east 'wolf 'east  'goat 'east  'cabbage 'east)) ;;;2. A function to determine whether a state is the goal state.  ;;;  By covention, we'll call this (solution-state? x) (define (solution-state? state) ;;"A state description is the solution if the everything is on the west" (and (eqv? 'west (side.farmer state)) (eqv? 'west (side.wolf state)) (eqv? 'west (side.goat state)) (eqv? 'west (side.cabbage state))))
Water Jug Problem State Representation •  State Representation (defstruct jug-contents four three) •  Initial State (define *start-state*  (make-jug-contents 'three 0  'four 0)) •  Goal State ;;A state description is the solution if the four galloon jug has 2 gallons in it" (define (solution-state? state) (= 2 (jug-contents.four state))) •  A list of operators (define *jug-problem-operators*  '(fill-four fill-three dump-four dump-three  fill-four-from-three fill-three-from-four empty-three-into-four empty-four-into-three))
•  Operator 1 (define (fill-four state)  (when (< (jug-contents.four state) 4) (make-jug-contents 'three (jug-contents.three state) 'four 4)))
Applying the operators ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
1 de 15

Recomendados

State Space Search in ai por
State Space Search in aiState Space Search in ai
State Space Search in aivikas dhakane
596 visualizações10 slides
State space search and Problem Solving techniques por
State space search and Problem Solving techniquesState space search and Problem Solving techniques
State space search and Problem Solving techniquesKirti Verma
1.2K visualizações12 slides
Problems, Problem spaces and Search por
Problems, Problem spaces and SearchProblems, Problem spaces and Search
Problems, Problem spaces and SearchBMS Institute of Technology
12K visualizações60 slides
weak slot and filler por
weak slot and fillerweak slot and filler
weak slot and fillerBMS Institute of Technology
3.1K visualizações43 slides
Planning por
Planning Planning
Planning Amar Jukuntla
3.4K visualizações76 slides
Artificial Intelligence Searching Techniques por
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
3.1K visualizações38 slides

Mais conteúdo relacionado

Mais procurados

weak slot and filler structure por
weak slot and filler structureweak slot and filler structure
weak slot and filler structureAmey Kerkar
28.2K visualizações33 slides
Structured Knowledge Representation por
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge RepresentationSagacious IT Solution
4.5K visualizações14 slides
Problem solving agents por
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
4.2K visualizações10 slides
Heuristic Search Techniques Unit -II.ppt por
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptkarthikaparthasarath
1K visualizações31 slides
Problem Solving por
Problem Solving Problem Solving
Problem Solving Amar Jukuntla
8.1K visualizações173 slides
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf por
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfJenishaR1
472 visualizações29 slides

Mais procurados(20)

weak slot and filler structure por Amey Kerkar
weak slot and filler structureweak slot and filler structure
weak slot and filler structure
Amey Kerkar28.2K visualizações
Structured Knowledge Representation por Sagacious IT Solution
Structured Knowledge RepresentationStructured Knowledge Representation
Structured Knowledge Representation
Sagacious IT Solution4.5K visualizações
Problem solving agents por Megha Sharma
Problem solving agentsProblem solving agents
Problem solving agents
Megha Sharma4.2K visualizações
Heuristic Search Techniques Unit -II.ppt por karthikaparthasarath
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath1K visualizações
Problem Solving por Amar Jukuntla
Problem Solving Problem Solving
Problem Solving
Amar Jukuntla8.1K visualizações
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf por JenishaR1
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
JenishaR1472 visualizações
The structure of agents por Anitha Purushothaman
The structure of agentsThe structure of agents
The structure of agents
Anitha Purushothaman18.9K visualizações
Solving problems by searching por Luigi Ceccaroni
Solving problems by searchingSolving problems by searching
Solving problems by searching
Luigi Ceccaroni12.8K visualizações
Planning por ahmad bassiouny
PlanningPlanning
Planning
ahmad bassiouny26K visualizações
AI simple search strategies por Renas Rekany
AI simple search strategiesAI simple search strategies
AI simple search strategies
Renas Rekany2.8K visualizações
Informed and Uninformed search Strategies por Amey Kerkar
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
Amey Kerkar49.4K visualizações
Hill climbing algorithm por Dr. C.V. Suresh Babu
Hill climbing algorithmHill climbing algorithm
Hill climbing algorithm
Dr. C.V. Suresh Babu2.9K visualizações
Problem Formulation in Artificial Inteligence Projects por Dr. C.V. Suresh Babu
Problem Formulation in Artificial Inteligence ProjectsProblem Formulation in Artificial Inteligence Projects
Problem Formulation in Artificial Inteligence Projects
Dr. C.V. Suresh Babu2.7K visualizações
First order logic por Rushdi Shams
First order logicFirst order logic
First order logic
Rushdi Shams12.4K visualizações
8 queens problem using back tracking por Tech_MX
8 queens problem using back tracking8 queens problem using back tracking
8 queens problem using back tracking
Tech_MX189.1K visualizações
Object oriented database por Md. Hasan Imam Bijoy
Object oriented databaseObject oriented database
Object oriented database
Md. Hasan Imam Bijoy528 visualizações
AI search techniques por Omar Isaid
AI search techniquesAI search techniques
AI search techniques
Omar Isaid4.2K visualizações
Artificial Intelligence -- Search Algorithms por Syed Ahmed
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
Syed Ahmed4.3K visualizações
Stuart russell and peter norvig artificial intelligence - a modern approach... por Lê Anh Đạt
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
Lê Anh Đạt6.3K visualizações

Destaque

Knowledge Representation & Reasoning por
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
18.9K visualizações34 slides
State space search por
State space search State space search
State space search Timothy Makgato
5K visualizações7 slides
Problems problem spaces and search por
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and searchAmey Kerkar
12.5K visualizações18 slides
(Radhika) presentation on chapter 2 ai por
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 aiRadhika Srinivasan
9.3K visualizações34 slides
Predicate Logic por
Predicate LogicPredicate Logic
Predicate Logicgiki67
42.1K visualizações71 slides
Frames por
FramesFrames
Framesamitp26
24K visualizações17 slides

Destaque(9)

Knowledge Representation & Reasoning por Sajid Marwat
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
Sajid Marwat18.9K visualizações
State space search por Timothy Makgato
State space search State space search
State space search
Timothy Makgato5K visualizações
Problems problem spaces and search por Amey Kerkar
Problems problem spaces and searchProblems problem spaces and search
Problems problem spaces and search
Amey Kerkar12.5K visualizações
(Radhika) presentation on chapter 2 ai por Radhika Srinivasan
(Radhika) presentation on chapter 2 ai(Radhika) presentation on chapter 2 ai
(Radhika) presentation on chapter 2 ai
Radhika Srinivasan9.3K visualizações
Predicate Logic por giki67
Predicate LogicPredicate Logic
Predicate Logic
giki6742.1K visualizações
Frames por amitp26
FramesFrames
Frames
amitp2624K visualizações
Knowledge representation and Predicate logic por Amey Kerkar
Knowledge representation and Predicate logicKnowledge representation and Predicate logic
Knowledge representation and Predicate logic
Amey Kerkar69.7K visualizações
Issues in knowledge representation por Sravanthi Emani
Issues in knowledge representationIssues in knowledge representation
Issues in knowledge representation
Sravanthi Emani59.7K visualizações
Heuristic Search Techniques {Artificial Intelligence} por FellowBuddy.com
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com32.6K visualizações

Mais de luzenith_g

Formacion y crecimiento por
Formacion y crecimientoFormacion y crecimiento
Formacion y crecimientoluzenith_g
328 visualizações1 slide
Formacion y crecimiento por
Formacion y crecimientoFormacion y crecimiento
Formacion y crecimientoluzenith_g
213 visualizações1 slide
Carácterísticas técnicas de las wikis por
Carácterísticas técnicas de las wikisCarácterísticas técnicas de las wikis
Carácterísticas técnicas de las wikisluzenith_g
832 visualizações11 slides
Web 2 0 por
Web 2 0Web 2 0
Web 2 0luzenith_g
190 visualizações2 slides
Alg1 por
Alg1Alg1
Alg1luzenith_g
455 visualizações33 slides
Ejercicios Ada por
Ejercicios AdaEjercicios Ada
Ejercicios Adaluzenith_g
368 visualizações2 slides

Mais de luzenith_g(20)

Formacion y crecimiento por luzenith_g
Formacion y crecimientoFormacion y crecimiento
Formacion y crecimiento
luzenith_g328 visualizações
Formacion y crecimiento por luzenith_g
Formacion y crecimientoFormacion y crecimiento
Formacion y crecimiento
luzenith_g213 visualizações
Carácterísticas técnicas de las wikis por luzenith_g
Carácterísticas técnicas de las wikisCarácterísticas técnicas de las wikis
Carácterísticas técnicas de las wikis
luzenith_g832 visualizações
Web 2 0 por luzenith_g
Web 2 0Web 2 0
Web 2 0
luzenith_g190 visualizações
Alg1 por luzenith_g
Alg1Alg1
Alg1
luzenith_g455 visualizações
Ejercicios Ada por luzenith_g
Ejercicios AdaEjercicios Ada
Ejercicios Ada
luzenith_g368 visualizações
Ejercicios Ada por luzenith_g
Ejercicios AdaEjercicios Ada
Ejercicios Ada
luzenith_g501 visualizações
Proyecto Unal2009 2 por luzenith_g
Proyecto Unal2009 2Proyecto Unal2009 2
Proyecto Unal2009 2
luzenith_g166 visualizações
Taller3 Programacion Ii por luzenith_g
Taller3 Programacion IiTaller3 Programacion Ii
Taller3 Programacion Ii
luzenith_g202 visualizações
Algoritmos Voraces (Greedy) por luzenith_g
Algoritmos Voraces (Greedy)Algoritmos Voraces (Greedy)
Algoritmos Voraces (Greedy)
luzenith_g12.1K visualizações
Algoritmos Greedy por luzenith_g
Algoritmos GreedyAlgoritmos Greedy
Algoritmos Greedy
luzenith_g551 visualizações
Resumen por luzenith_g
ResumenResumen
Resumen
luzenith_g1.1K visualizações
Clase3 Notacion por luzenith_g
Clase3 NotacionClase3 Notacion
Clase3 Notacion
luzenith_g615 visualizações
Analisis Clase2 por luzenith_g
Analisis  Clase2Analisis  Clase2
Analisis Clase2
luzenith_g600 visualizações
Introducción al Análisis y diseño de algoritmos por luzenith_g
Introducción al Análisis y diseño de algoritmosIntroducción al Análisis y diseño de algoritmos
Introducción al Análisis y diseño de algoritmos
luzenith_g872 visualizações
Como construir un DSS por luzenith_g
Como construir un DSSComo construir un DSS
Como construir un DSS
luzenith_g1.4K visualizações
Mergesort por luzenith_g
MergesortMergesort
Mergesort
luzenith_g5.8K visualizações
DSS:Conceptos, metodologias y Tecnologias por luzenith_g
DSS:Conceptos, metodologias y TecnologiasDSS:Conceptos, metodologias y Tecnologias
DSS:Conceptos, metodologias y Tecnologias
luzenith_g2.9K visualizações
Soporte a las Decisiones Computarizado por luzenith_g
Soporte a las Decisiones ComputarizadoSoporte a las Decisiones Computarizado
Soporte a las Decisiones Computarizado
luzenith_g583 visualizações
Decision Support Systems por luzenith_g
Decision Support SystemsDecision Support Systems
Decision Support Systems
luzenith_g20.9K visualizações

Último

"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur por
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur
"Thriving Culture in a Product Company — Practical Story", Volodymyr TsukurFwdays
40 visualizações31 slides
Microchip: CXL Use Cases and Enabling Ecosystem por
Microchip: CXL Use Cases and Enabling EcosystemMicrochip: CXL Use Cases and Enabling Ecosystem
Microchip: CXL Use Cases and Enabling EcosystemCXL Forum
129 visualizações12 slides
MemVerge: Memory Viewer Software por
MemVerge: Memory Viewer SoftwareMemVerge: Memory Viewer Software
MemVerge: Memory Viewer SoftwareCXL Forum
118 visualizações10 slides
CXL at OCP por
CXL at OCPCXL at OCP
CXL at OCPCXL Forum
208 visualizações66 slides
Liqid: Composable CXL Preview por
Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL PreviewCXL Forum
121 visualizações8 slides
Spesifikasi Lengkap ASUS Vivobook Go 14 por
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14Dot Semarang
35 visualizações1 slide

Último(20)

"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur por Fwdays
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur
"Thriving Culture in a Product Company — Practical Story", Volodymyr Tsukur
Fwdays40 visualizações
Microchip: CXL Use Cases and Enabling Ecosystem por CXL Forum
Microchip: CXL Use Cases and Enabling EcosystemMicrochip: CXL Use Cases and Enabling Ecosystem
Microchip: CXL Use Cases and Enabling Ecosystem
CXL Forum129 visualizações
MemVerge: Memory Viewer Software por CXL Forum
MemVerge: Memory Viewer SoftwareMemVerge: Memory Viewer Software
MemVerge: Memory Viewer Software
CXL Forum118 visualizações
CXL at OCP por CXL Forum
CXL at OCPCXL at OCP
CXL at OCP
CXL Forum208 visualizações
Liqid: Composable CXL Preview por CXL Forum
Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL Preview
CXL Forum121 visualizações
Spesifikasi Lengkap ASUS Vivobook Go 14 por Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 visualizações
JCon Live 2023 - Lice coding some integration problems por Bernd Ruecker
JCon Live 2023 - Lice coding some integration problemsJCon Live 2023 - Lice coding some integration problems
JCon Live 2023 - Lice coding some integration problems
Bernd Ruecker67 visualizações
Data-centric AI and the convergence of data and model engineering: opportunit... por Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier29 visualizações
Future of Learning - Khoong Chan Meng por NUS-ISS
Future of Learning - Khoong Chan MengFuture of Learning - Khoong Chan Meng
Future of Learning - Khoong Chan Meng
NUS-ISS31 visualizações
"How we switched to Kanban and how it integrates with product planning", Vady... por Fwdays
"How we switched to Kanban and how it integrates with product planning", Vady..."How we switched to Kanban and how it integrates with product planning", Vady...
"How we switched to Kanban and how it integrates with product planning", Vady...
Fwdays61 visualizações
Five Things You SHOULD Know About Postman por Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman25 visualizações
[2023] Putting the R! in R&D.pdf por Eleanor McHugh
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh38 visualizações
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV por Splunk
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
.conf Go 2023 - How KPN drives Customer Satisfaction on IPTV
Splunk86 visualizações
Future of Learning - Yap Aye Wee.pdf por NUS-ISS
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdf
NUS-ISS38 visualizações
PharoJS - Zürich Smalltalk Group Meetup November 2023 por Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi113 visualizações
ChatGPT and AI for Web Developers por Maximiliano Firtman
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman174 visualizações
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen... por NUS-ISS
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
Upskilling the Evolving Workforce with Digital Fluency for Tomorrow's Challen...
NUS-ISS23 visualizações
Tunable Laser (1).pptx por Hajira Mahmood
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptx
Hajira Mahmood21 visualizações
.conf Go 2023 - Data analysis as a routine por Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk90 visualizações

State Space Search(2)

  • 1. State Space Search • Readings: Rich and Knight: Sect 2.1
  • 2.  
  • 3.  
  • 4.  
  • 5.  
  • 6.  
  • 7.  
  • 8.  
  • 9.  
  • 10. Train Problem • State Representation: A Lisp atom: the current city • Initial State (define *start-state* 'sacramento) • Goal State (define *goal-state* 'austin.texas) (define (solution-state? s) (eqv? s *goal-state*)) • Operators (50) – Go from neighboring capitals to each capital (define *state-operators* (list goto-atlanta goto-montgomery goto-juneau goto-phoenix goto-sacramento goto-santa-fe goto-austin)) (define (goto-montgomery state) (if (member state '(juneau atlanta)) 'montgomery #f))
  • 11. Farmer Wolf Goat and Cabbage problem A problem description consists of ;;;1. A structure to represent the state description: jug-contents A fixed sized data structure comprised of a number of fields • (defstruct name field-1 field-2 ... fieldn) defines a structure (defstruct side farmer wolf goat cabbage) => side ;;;2. A list of operators: *jug-problem-operators* ;;; These functions define legal moves in the state space (define *farmer-wolf-goat-cabbage-operators* '(farmer-takes-self farmer-takes-wolf farmer-takes-goat farmer-takes-cabbage)) ;;;3. A definition of each operator: ;;; An operator is a scheme function, that given a state description, returns a new ;;; state description (Or null if the operator can't be applied) (define (farmer-takes-self state) (safe (make-side 'farmer (opposite (side.farmer state)) 'wolf (side.wolf state) 'goat (side.goat state) 'cabbage (side.cabbage state))))
  • 12. A particular problem requires ;;;.1. A start state (define *start-state* (make-side 'farmer 'east 'wolf 'east 'goat 'east 'cabbage 'east)) ;;;2. A function to determine whether a state is the goal state. ;;; By covention, we'll call this (solution-state? x) (define (solution-state? state) ;;&quot;A state description is the solution if the everything is on the west&quot; (and (eqv? 'west (side.farmer state)) (eqv? 'west (side.wolf state)) (eqv? 'west (side.goat state)) (eqv? 'west (side.cabbage state))))
  • 13. Water Jug Problem State Representation • State Representation (defstruct jug-contents four three) • Initial State (define *start-state* (make-jug-contents 'three 0 'four 0)) • Goal State ;;A state description is the solution if the four galloon jug has 2 gallons in it&quot; (define (solution-state? state) (= 2 (jug-contents.four state))) • A list of operators (define *jug-problem-operators* '(fill-four fill-three dump-four dump-three fill-four-from-three fill-three-from-four empty-three-into-four empty-four-into-three))
  • 14. • Operator 1 (define (fill-four state) (when (< (jug-contents.four state) 4) (make-jug-contents 'three (jug-contents.three state) 'four 4)))
  • 15.