SlideShare a Scribd company logo
1 of 55
CS 221: Artificial Intelligence Planning (and Basic Logic) Peter Norvig and Sebastian Thrun Slide credits: Stuart Russell, Rina Dechter,  Rao Kambhampati
AI: Dealing with Complexity ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Finding Actions
What’s wrong with Problem-Solving Plan: [Forward, Forward, Forward, …]
What’s wrong with Problem-Solving
Planning ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Dealing with Partial Observability: World vs. Belief States
Sensorless – Belief States - Conformant Plans
Deterministic world Slippery wheels  Partial (local) Observability and Stochastic Worlds Deterministic actions; observe only local square Observe only  local square; Suck  is determ. R/L  are stoch. (may fail to move)
Slippery wheels  Planning and Sensing in  Partially Observable and Stochastic World What is a plan to achieve all states clean? [1: Suck ; 2: Right ; ( if  A :  goto  2); 3: Suck ] also written as [ Suck ; ( while  A :  Right );  Suck ] Observe only  local square; Suck  is determ. R/L  are stoch.; may fail to move
Search Graph as And/Or Tree What do we need to  guarantee success? What kind of guarantee?
As Equations, not Tree ,[object Object],[object Object],[object Object],[object Object]
Kindergarten world: dirt may appear anywhere at any time, But actions are guaranteed to work. b1  b3 =UPDATE( b1 ,[ A,Clean ])  b5  = UPDATE( b4,… )  b2 =PREDICT( b1, Suck )  b4 =PREDICT( b3 , Right )
State Representation
State Representation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Representation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Planning with Factored States ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
“ Classical” Planning ,[object Object],[object Object],[object Object],[object Object],[object Object]
Expressiveness of the language
Advantages of the Language ,[object Object],[object Object],[object Object],[object Object],[object Object]
Planning Algorithms ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Plan-space search
Plan-space search Start Finish Left  Sock Finish Start Right Shoe Finish Start Right Shoe Finish Start Left Shoe
Plan-space search
Progression vs. Regression ,[object Object],[object Object],[object Object],[object Object],[object Object],You can also do bidirectional search stop when a (leaf) state in the progression tree entails a (leaf) state (formula) in the regression tree A B A B
State of the art ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
8-puzzle state space
8-puzzle action schema ,[object Object]
8-puzzle heuristics
Convex search: ignore del lists
Factored Rep allows control
Factored Rep allows control
Beyond Classical Planning ,[object Object],[object Object],[object Object],[object Object],[object Object]
First-Order Logic ,[object Object],[object Object],[object Object],[object Object],[object Object]
Situation Calculus ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Situation Calculus ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Situations as Result of Action Situation Calculus First-order Logic ∃s, p : Goal(s) ∧ s = Result(s0, p) s = Result(s, []) Result(s, [a,b,…]) = Result(Result(s, a), [b,…])
Planning Graphs ,[object Object],[object Object],[object Object],[object Object],[object Object]
Planning Graphs ,[object Object],[object Object],[object Object],[object Object],[object Object]
Planning Graphs ,[object Object],[object Object],[object Object]
Planning Graph Example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Planning Graph Example Create level 0 from initial problem state.
Planning Graph Example Add all applicable actions. Add all effects to the next state.
Planning Graph Example Add  persistence actions  (inaction = no-ops)  to map all literals in state S i  to state S i+1 .
Planning Graph Example Identify  mutual exclusions  between actions and literals based on potential conflicts.
Mutual exclusion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Cake example ,[object Object],[object Object],[object Object]
Cake example ,[object Object],[object Object]
PG and Heuristic Estimation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PG and Heuristic Estimation ,[object Object],[object Object],[object Object],[object Object]
The GRAPHPLAN Algorithm ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
GRAPHPLAN example ,[object Object],[object Object],[object Object],[object Object],[object Object]
GRAPHPLAN example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
GRAPHPLAN example ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
GRAPHPLAN Termination ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot (6)

Notes notes vector calculus made at home (wecompress.com)
Notes notes vector calculus made at home (wecompress.com)Notes notes vector calculus made at home (wecompress.com)
Notes notes vector calculus made at home (wecompress.com)
 
2d transformation
2d transformation2d transformation
2d transformation
 
CLIM Fall 2017 Course: Statistics for Climate Research, Analysis for Climate ...
CLIM Fall 2017 Course: Statistics for Climate Research, Analysis for Climate ...CLIM Fall 2017 Course: Statistics for Climate Research, Analysis for Climate ...
CLIM Fall 2017 Course: Statistics for Climate Research, Analysis for Climate ...
 
Design and Analysis of Algorithms
Design and Analysis of AlgorithmsDesign and Analysis of Algorithms
Design and Analysis of Algorithms
 
Deep Learning and Optimization Methods
Deep Learning and Optimization MethodsDeep Learning and Optimization Methods
Deep Learning and Optimization Methods
 
Algorithm chapter 2
Algorithm chapter 2Algorithm chapter 2
Algorithm chapter 2
 

Viewers also liked

Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11
darwinrlo
 
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Miguel Andrade
 
Why prayers go unanswered
Why prayers go unansweredWhy prayers go unanswered
Why prayers go unanswered
John Guyola
 
How to Use Punkmoney
How to Use PunkmoneyHow to Use Punkmoney
How to Use Punkmoney
punkmoney
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
darwinrlo
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio
Prabanjan TR
 
Nanook of the north close study
Nanook of the north close studyNanook of the north close study
Nanook of the north close study
Emma Wilkinson
 
Ashi standards
Ashi standardsAshi standards
Ashi standards
buyersally
 

Viewers also liked (20)

Forward Branding
Forward BrandingForward Branding
Forward Branding
 
Wil Group global survey 2015 16
Wil Group global survey 2015 16Wil Group global survey 2015 16
Wil Group global survey 2015 16
 
Cs221 lecture6-fall11
Cs221 lecture6-fall11Cs221 lecture6-fall11
Cs221 lecture6-fall11
 
DML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).SqlserverDML (Data Manipulation Language).Sqlserver
DML (Data Manipulation Language).Sqlserver
 
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
Foro XXIII : Perspectivas Economicas para el 2014 (Santander)
 
Best Internet Uses B Dodge
Best Internet Uses B DodgeBest Internet Uses B Dodge
Best Internet Uses B Dodge
 
Why prayers go unanswered
Why prayers go unansweredWhy prayers go unanswered
Why prayers go unanswered
 
Treball 11111
Treball 11111Treball 11111
Treball 11111
 
Engineering
EngineeringEngineering
Engineering
 
Urban/Rural Distribution and Economic Growth
Urban/Rural Distribution and Economic GrowthUrban/Rural Distribution and Economic Growth
Urban/Rural Distribution and Economic Growth
 
How to Use Punkmoney
How to Use PunkmoneyHow to Use Punkmoney
How to Use Punkmoney
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
 
leva_bomba_gasolina
leva_bomba_gasolinaleva_bomba_gasolina
leva_bomba_gasolina
 
Me
MeMe
Me
 
La carta de garcia.
La carta de garcia.La carta de garcia.
La carta de garcia.
 
.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio.: 3rd i innovations :. Portfolio
.: 3rd i innovations :. Portfolio
 
Fmintlfs instructions
Fmintlfs instructionsFmintlfs instructions
Fmintlfs instructions
 
Nanook of the north close study
Nanook of the north close studyNanook of the north close study
Nanook of the north close study
 
Ashi standards
Ashi standardsAshi standards
Ashi standards
 
 

Similar to Cs221 lecture7-fall11

CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligence
butest
 
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Praveen Kumar
 
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
AmirMohamedNabilSale
 
09 logic programming
09 logic programming09 logic programming
09 logic programming
saru40
 

Similar to Cs221 lecture7-fall11 (20)

RPT_AI-06_A_Planning Intro.ppt
RPT_AI-06_A_Planning Intro.pptRPT_AI-06_A_Planning Intro.ppt
RPT_AI-06_A_Planning Intro.ppt
 
21CSC206T_UNIT 5.pptx artificial intelligence
21CSC206T_UNIT 5.pptx artificial intelligence21CSC206T_UNIT 5.pptx artificial intelligence
21CSC206T_UNIT 5.pptx artificial intelligence
 
Planning
PlanningPlanning
Planning
 
Planning
PlanningPlanning
Planning
 
lecture12.pdf
lecture12.pdflecture12.pdf
lecture12.pdf
 
CptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial IntelligenceCptS 440 / 540 Artificial Intelligence
CptS 440 / 540 Artificial Intelligence
 
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
 
AI_unit IV Full Notes.pdf
AI_unit IV Full Notes.pdfAI_unit IV Full Notes.pdf
AI_unit IV Full Notes.pdf
 
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf2.a-CMPS 403-F20-Session 2-Search Problems.pdf
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
 
15 predicate
15 predicate15 predicate
15 predicate
 
Lesson 23
Lesson 23Lesson 23
Lesson 23
 
AI Lesson 23
AI Lesson 23AI Lesson 23
AI Lesson 23
 
An Introduction to Radical Minimalism: Merge & Agree
An Introduction to Radical Minimalism: Merge & AgreeAn Introduction to Radical Minimalism: Merge & Agree
An Introduction to Radical Minimalism: Merge & Agree
 
09 logic programming
09 logic programming09 logic programming
09 logic programming
 
Slides2if85 assmeth2
Slides2if85 assmeth2Slides2if85 assmeth2
Slides2if85 assmeth2
 
Goal stack planning.ppt
Goal stack planning.pptGoal stack planning.ppt
Goal stack planning.ppt
 
AI_Planning.pdf
AI_Planning.pdfAI_Planning.pdf
AI_Planning.pdf
 
Scala as a Declarative Language
Scala as a Declarative LanguageScala as a Declarative Language
Scala as a Declarative Language
 
Intro to AI STRIPS Planning & Applications in Video-games Lecture4-Part2
Intro to AI STRIPS Planning & Applications in Video-games Lecture4-Part2Intro to AI STRIPS Planning & Applications in Video-games Lecture4-Part2
Intro to AI STRIPS Planning & Applications in Video-games Lecture4-Part2
 
cps270_planning.ppt
cps270_planning.pptcps270_planning.ppt
cps270_planning.ppt
 

More from darwinrlo

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theory
darwinrlo
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
darwinrlo
 
Cs221 linear algebra
Cs221 linear algebraCs221 linear algebra
Cs221 linear algebra
darwinrlo
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11
darwinrlo
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11
darwinrlo
 
Cs221 lecture3-fall11
Cs221 lecture3-fall11Cs221 lecture3-fall11
Cs221 lecture3-fall11
darwinrlo
 

More from darwinrlo (7)

Cs221 probability theory
Cs221 probability theoryCs221 probability theory
Cs221 probability theory
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
 
Cs221 linear algebra
Cs221 linear algebraCs221 linear algebra
Cs221 linear algebra
 
Cs221 lecture8-fall11
Cs221 lecture8-fall11Cs221 lecture8-fall11
Cs221 lecture8-fall11
 
Cs221 lecture5-fall11
Cs221 lecture5-fall11Cs221 lecture5-fall11
Cs221 lecture5-fall11
 
Cs221 lecture3-fall11
Cs221 lecture3-fall11Cs221 lecture3-fall11
Cs221 lecture3-fall11
 
Cs221 rl
Cs221 rlCs221 rl
Cs221 rl
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

Cs221 lecture7-fall11

Editor's Notes

  1. This course: Spiral approach to dealing with complexity
  2. Executing a plan without looking at the world often fails
  3. In the real world actions are at many levels: the action of driving from one city to the next involves a series of intersection-to-intersection actions, each of which involves a sequence of steering wheel, accelerator, and brake actions.
  4. Deterministic, fully observable world: how to get from upper left to clean state?
  5. Conformant plan to clean everything? Didn’t know where we were, but didn’t matter
  6. Slippery wheels: may move, may not. Suck always works.
  7. Slippery wheels: may move, may not. Suck always works.
  8. Does predict add or subtract states? Does update?
  9. What about h(s)? Is that atomic?
  10. In classical planning, schema over finite domain – abbreviation for spelling out individual variables.