SlideShare a Scribd company logo
2
Most read
5
Most read
8
Most read
Topic To Be Covered:
Goal Stack planning with example
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-07(UNIT-02)
Prof.Dhakane Vikas N
Goal stack planning
 Basic idea to handle interactive compound goal in Artificial Intelligence is
Goal stack planning.
 Here Stack contains Goals, Operators like Add(Push) ,Delete(POP) &
Preconditions.
 We work backwards from the goal, looking for certain action to perform
and then trying to satisfy the preconditions of the action.
 The preconditions of the action become sub goals that must be satisfied.
 Goal Stack Planning Example:
Goal stack planning
 Goal stack planning uses a stack to hold goals and actions to satisfy the
goals, and a knowledge base to hold the current state, action schemas.
 Goal stack is like a node in a search tree; if there is a choice of action, we
create branches.
Goal stack planning pseudo code :
 Push the original goal on the stack. Repeat until the stack is empty
 If stack top is a compound goal, push its unsatisfied sub goals on the stack.
 If stack top is a single unsatisfied goal, replace it by an action that makes it
satisfied and push the action’s precondition on the stack.
 If stack top is an action, pop it from the stack, execute it and change the
knowledge base by the action’s effects.
 If stack top is a satisfied goal, pop it from the stack.
 Goal Stack Planning Example:
Goal stack planning
RULE PRECONDITION ACTION
Pickup(X) on(X, table)
clear(X)
handempty
holding(X)
Putdown(X) Holding(X) on(X, table)
clear(X)
handempty
Stack(X,Y) holding(X)
clear(Y)
On(X,Y)
clear(X)
Unstack(X,Y) On(X,Y)
clear(X)
holding(X)
clear(Y)
Rules to Solve Block World Puzzle Problem
Goal stack planning
Goal Stack Planning Example:
 Initial State: On(A,B)
:On(C,D)
 Goal State: On(B,D) & ON (A,B)
Solution:
Step:1:Start from Goal state with predicate form: ON(B,D)^ON (A,B)
ON(B,D)^ON (A,B)
ON(B,D)
ON (A,B)
B
A
D
C
D
A
B
In Broken Form
Goal stack planning
Solution:
Start from Goal state with predicate form: ON(B,D)^ON (A,B)
ON(B,D)^ON (A,B)
ON(B,D)
ON (A,B)
A:Stack(B,D) P:hold(B)^ clear(D)
Hold(b)
Clear(D)
A:Unstack(C,D) P:AE^On(C,D))^ clear(C)-
AE
On(C,D)
clear(C)
A:Pickup(B) P:AE^OnT(B)^ clear(B)
AE
OnT(B)
clear(B)
A:UnStack(A,B) P:AE^On(A,B))^ clear(A)
AE
On(A,B)
clear(A)
A:Putdown(C) P:hold(C)-
hold(C)
A:Putdown(A) P:hold(A)-
hold(A)
Goal stack planning
Solution:
Start from Goal state with predicate form: ON(B,D)^ON (A,B)
ON(B,D)^ON (A,B)
ON(B,D)
ON (A,B)
A:Stack(A,B) P:hold(A)^ clear(B)
Hold(A)
Clear(B)
A:Pickup(A) P:AE^OnT(A)^ clear(A)
AE
OnT(A)
clear(A)
Goal stack planning
Solution: List OF Actions
Action:1 Action:4
Action:2 Action:5
Action:3 Action:6
B
A
D
C
B
A
D C
B D C
A
A B D C
A C D
B
A D
C
B
Goal stack planning
Solution: List OF Actions
Action:7
Goal stack planning utilizes both forward planning as well backward
planning.
A
D
B
Action:8
C
A
B
D
Ai lecture  7(unit02)
Ai lecture  7(unit02)

More Related Content

PDF
I.BEST FIRST SEARCH IN AI
PPT
KNOWLEDGE REPRESENTATION ISSUES.ppt
PPTX
AI_Session 7 Greedy Best first search algorithm.pptx
PPTX
Ai 8 puzzle problem
PPTX
State space search
PDF
I. Mini-Max Algorithm in AI
PPTX
Sum of subset problem.pptx
PPTX
Control Strategies in AI
I.BEST FIRST SEARCH IN AI
KNOWLEDGE REPRESENTATION ISSUES.ppt
AI_Session 7 Greedy Best first search algorithm.pptx
Ai 8 puzzle problem
State space search
I. Mini-Max Algorithm in AI
Sum of subset problem.pptx
Control Strategies in AI

What's hot (20)

PPT
B trees in Data Structure
PPTX
Logics for non monotonic reasoning-ai
PPTX
Lecture 21 problem reduction search ao star search
PPTX
Artificial Intelligence Searching Techniques
PPTX
Feedforward neural network
PPTX
Problem solving agents
PPT
2.5 backpropagation
PPTX
Artificial Intelligence- TicTacToe game
PPT
backpropagation in neural networks
PDF
I. AO* SEARCH ALGORITHM
PDF
P, NP, NP-Complete, and NP-Hard
PPTX
Problem solving in Artificial Intelligence.pptx
PPTX
Matching techniques
PPTX
Introdution and designing a learning system
PPTX
Data Structure and Algorithm - Divide and Conquer
PPTX
Priority Queue in Data Structure
PPTX
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
PPTX
First order logic
PPTX
0 1 knapsack using branch and bound
PDF
UNIT-V.pdf daa unit material 5 th unit ppt
B trees in Data Structure
Logics for non monotonic reasoning-ai
Lecture 21 problem reduction search ao star search
Artificial Intelligence Searching Techniques
Feedforward neural network
Problem solving agents
2.5 backpropagation
Artificial Intelligence- TicTacToe game
backpropagation in neural networks
I. AO* SEARCH ALGORITHM
P, NP, NP-Complete, and NP-Hard
Problem solving in Artificial Intelligence.pptx
Matching techniques
Introdution and designing a learning system
Data Structure and Algorithm - Divide and Conquer
Priority Queue in Data Structure
AI_Session 11: searching with Non-Deterministic Actions and partial observati...
First order logic
0 1 knapsack using branch and bound
UNIT-V.pdf daa unit material 5 th unit ppt
Ad

Similar to Ai lecture 7(unit02) (20)

PPTX
21CSC206T_UNIT 5.pptx artificial intelligence
PPTX
classical planning ..
PPTX
Unit 5 Introduction to Planning and ANN.pptx
PPT
Classical And Htn Planning
PDF
Ai lecture 06(unit-02)
PDF
Ai lecture 04(unit-02)
PDF
AI_Planning.pdf
PPT
Detailed notes on Artificial Intelligence planning sjm.ppt
PPT
cs344-lect15-robotic-knowledge-inferencing-prolog-11feb08.ppt
PPT
Goal stack planning.ppt
PDF
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
PDF
Planning Agent
PDF
22PCOAM11_IAI_Unit IV Full Notes Merged .pdf
PPT
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
PPT
Cs221 lecture7-fall11
PPT
Cs221 logic-planning
PPT
Planning
PPT
Planning
PPT
aaaaaaaaaaaaaaaaaaaaaaaaaaac24_planning.ppt
PPTX
ML .pptx
21CSC206T_UNIT 5.pptx artificial intelligence
classical planning ..
Unit 5 Introduction to Planning and ANN.pptx
Classical And Htn Planning
Ai lecture 06(unit-02)
Ai lecture 04(unit-02)
AI_Planning.pdf
Detailed notes on Artificial Intelligence planning sjm.ppt
cs344-lect15-robotic-knowledge-inferencing-prolog-11feb08.ppt
Goal stack planning.ppt
2.a-CMPS 403-F20-Session 2-Search Problems.pdf
Planning Agent
22PCOAM11_IAI_Unit IV Full Notes Merged .pdf
Cs344 lect15-robotic-knowledge-inferencing-prolog-11feb08
Cs221 lecture7-fall11
Cs221 logic-planning
Planning
Planning
aaaaaaaaaaaaaaaaaaaaaaaaaaac24_planning.ppt
ML .pptx
Ad

More from vikas dhakane (20)

PDF
Ai lecture 14(unit03)
PPTX
Ai lecture 13(unit03)
PDF
Ai lecture 13(unit03)
PPTX
Ai lecture 12(unit03)
PDF
Ai lecture 12(unit03)
PPTX
Ai lecture 11(unit03)
PDF
Ai lecture 11(unit03)
PPTX
Ai lecture 10(unit03)
PDF
Ai lecture 10(unit03)
PDF
Ai lecture 09(unit03)
PDF
Ai lecture 07(unit03)
PPTX
Ai lecture 05(unit03)
PDF
Ai lecture 05(unit03)
PPTX
Ai lecture 04(unit03)
PDF
Ai lecture 04(unit03)
PPTX
Ai lecture 03(unit03)
PDF
Ai lecture 03(unit03)
PPTX
Ai lecture 003(unit03)
PDF
Ai lecture 003(unit03)
PPTX
Ai lecture 02(unit03)
Ai lecture 14(unit03)
Ai lecture 13(unit03)
Ai lecture 13(unit03)
Ai lecture 12(unit03)
Ai lecture 12(unit03)
Ai lecture 11(unit03)
Ai lecture 11(unit03)
Ai lecture 10(unit03)
Ai lecture 10(unit03)
Ai lecture 09(unit03)
Ai lecture 07(unit03)
Ai lecture 05(unit03)
Ai lecture 05(unit03)
Ai lecture 04(unit03)
Ai lecture 04(unit03)
Ai lecture 03(unit03)
Ai lecture 03(unit03)
Ai lecture 003(unit03)
Ai lecture 003(unit03)
Ai lecture 02(unit03)

Recently uploaded (20)

PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Construction Project Organization Group 2.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Well-logging-methods_new................
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPT
Project quality management in manufacturing
PPT
Mechanical Engineering MATERIALS Selection
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
UNIT 4 Total Quality Management .pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Construction Project Organization Group 2.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Well-logging-methods_new................
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Project quality management in manufacturing
Mechanical Engineering MATERIALS Selection
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Embodied AI: Ushering in the Next Era of Intelligent Systems
Arduino robotics embedded978-1-4302-3184-4.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
bas. eng. economics group 4 presentation 1.pptx
UNIT 4 Total Quality Management .pptx

Ai lecture 7(unit02)

  • 1. Topic To Be Covered: Goal Stack planning with example Jagdamba Education Society's SND College of Engineering & Research Centre Department of Computer Engineering SUBJECT: Artificial Intelligence & Robotics Lecture No-07(UNIT-02) Prof.Dhakane Vikas N
  • 2. Goal stack planning  Basic idea to handle interactive compound goal in Artificial Intelligence is Goal stack planning.  Here Stack contains Goals, Operators like Add(Push) ,Delete(POP) & Preconditions.  We work backwards from the goal, looking for certain action to perform and then trying to satisfy the preconditions of the action.  The preconditions of the action become sub goals that must be satisfied.  Goal Stack Planning Example:
  • 3. Goal stack planning  Goal stack planning uses a stack to hold goals and actions to satisfy the goals, and a knowledge base to hold the current state, action schemas.  Goal stack is like a node in a search tree; if there is a choice of action, we create branches. Goal stack planning pseudo code :  Push the original goal on the stack. Repeat until the stack is empty  If stack top is a compound goal, push its unsatisfied sub goals on the stack.  If stack top is a single unsatisfied goal, replace it by an action that makes it satisfied and push the action’s precondition on the stack.  If stack top is an action, pop it from the stack, execute it and change the knowledge base by the action’s effects.  If stack top is a satisfied goal, pop it from the stack.  Goal Stack Planning Example:
  • 4. Goal stack planning RULE PRECONDITION ACTION Pickup(X) on(X, table) clear(X) handempty holding(X) Putdown(X) Holding(X) on(X, table) clear(X) handempty Stack(X,Y) holding(X) clear(Y) On(X,Y) clear(X) Unstack(X,Y) On(X,Y) clear(X) holding(X) clear(Y) Rules to Solve Block World Puzzle Problem
  • 5. Goal stack planning Goal Stack Planning Example:  Initial State: On(A,B) :On(C,D)  Goal State: On(B,D) & ON (A,B) Solution: Step:1:Start from Goal state with predicate form: ON(B,D)^ON (A,B) ON(B,D)^ON (A,B) ON(B,D) ON (A,B) B A D C D A B In Broken Form
  • 6. Goal stack planning Solution: Start from Goal state with predicate form: ON(B,D)^ON (A,B) ON(B,D)^ON (A,B) ON(B,D) ON (A,B) A:Stack(B,D) P:hold(B)^ clear(D) Hold(b) Clear(D) A:Unstack(C,D) P:AE^On(C,D))^ clear(C)- AE On(C,D) clear(C) A:Pickup(B) P:AE^OnT(B)^ clear(B) AE OnT(B) clear(B) A:UnStack(A,B) P:AE^On(A,B))^ clear(A) AE On(A,B) clear(A) A:Putdown(C) P:hold(C)- hold(C) A:Putdown(A) P:hold(A)- hold(A)
  • 7. Goal stack planning Solution: Start from Goal state with predicate form: ON(B,D)^ON (A,B) ON(B,D)^ON (A,B) ON(B,D) ON (A,B) A:Stack(A,B) P:hold(A)^ clear(B) Hold(A) Clear(B) A:Pickup(A) P:AE^OnT(A)^ clear(A) AE OnT(A) clear(A)
  • 8. Goal stack planning Solution: List OF Actions Action:1 Action:4 Action:2 Action:5 Action:3 Action:6 B A D C B A D C B D C A A B D C A C D B A D C B
  • 9. Goal stack planning Solution: List OF Actions Action:7 Goal stack planning utilizes both forward planning as well backward planning. A D B Action:8 C A B D