Chapter 5 Planning
Chapter 5 Planning
Dr.
Dr.Kalyani
KalyaniPampattiwar
Pampattiwar
Dr.
Dr.Kalyani
KalyaniPampattiwar
Pampattiwar
Planning
• In Artificial Intelligence, there are agents which perceive the environment via
sensors and act upon the environment through actuators or effectors.
• Just like humans have sensors through which we sense our surroundings (eyes,
ears, nose, tongue, and skin) and actuators (limbs) to perform actions on these
surroundings.
• The agent starts from the initial state and performs a series of actions in order to
reach the goal state.
• For instance, a vacuum cleaner agent will perform actions of moving right and
left, and sucking in dirt to reach the goal of successfully cleaning the environment.
• Representation of actions
- actions generate successor states
• Representation of states
- A state is a complete description of the system at a given point in
time.
• Representation of goals
- contained in goal test and heuristic function
• Representation of plans
- unbroken sequence of actions leading from initial to goal state
Dr. Kalyani Pampattiwar
Planning vs. Problem Solving
• R2 : putdown(x)
Plan for the assumed blocks world problem
1. Precondition & Deletion List : holding(x) For the given problem, Start → Goal can be achieved
2. Add List : hand empty, on(x,table), clear(x) by the following sequence:
1.Unstack(C,A)
• R3 : stack(x,y) 2.Putdown(C)
1. Precondition & Deletion List :holding(x), clear(y) 3.Pickup(B)
2. Add List : on(x,y), clear(x) 4.Stack(B,C)
5.Pickup(A)
6.Stack(A,B)
• R4 : unstack(x,y)
1. Precondition & Deletion List : on(x,y), clear(x)
2. Add List : holding(x), clear(y)
Dr. Kalyani Pampattiwar
Spare Tire Problem
• Init(At(Flat,Axle) ˄ At(Spare,Trunk))
• Goal(At(Spare,Axle))