📝 Planning — Quick Notes
GATE Cheatsheet
1. STRIPS Notation Summary
| Component | Description |
|---|---|
| State | Set of ground atomic propositions (fluents) that are true. CWA: everything else is false. |
| Preconditions | Conjunction of positive literals that must be true for the action to be applicable. |
| Add List (effects+) | Literals that become true after the action. Also called positive effects. |
| Delete List (effects−) | Literals that become false after the action. Also called negative effects. |
| Result(s, a) | (s − Del(a)) ∪ Add(a) — delete first, then add. |
| Applicable | Action a is applicable in state s iff Precond(a) ⊆ s. |
| Frame Assumption | Fluents not in Add or Delete lists are unchanged. |
2. Planning Algorithm Comparison
| Algorithm | Approach | Direction | Complete? | Optimal? | Key Feature |
|---|---|---|---|---|---|
| Forward Search | State-space | s0 → goal | Yes | With A* | Simple; large branching factor |
| Backward Search | State-space | goal → s0 | Yes | With A* | Only relevant actions; smaller branching |
| STRIPS (Goal Stack) | Means-ends | goal → s0 | No | No | Simple but fails on Sussman Anomaly |
| POP | Plan-space | Refinement | Yes | No* | Least commitment; handles sub-goal interaction |
| GraphPlan | Planning graph | Expand + backward extract | Yes | Shortest parallel plan | Mutex detection; level-off termination |
* POP can be made optimal with appropriate cost tracking, but standard POP is satisficing.
3. Mutex Types (GraphPlan)
| Mutex Type | Level | Condition | Static? |
|---|---|---|---|
| Inconsistent Effects | Action | Add(a1) ∩ Del(a2) ≠ ∅ | Yes |
| Interference | Action | Del(a1) ∩ Precond(a2) ≠ ∅ | Yes |
| Competing Needs | Action | Preconditions of a1, a2 are mutex in Pi | No |
| Inconsistent Support | Proposition | All achiever pairs are mutex in Ai | No |
⚠ Remember
Static mutexes (inconsistent effects, interference) never disappear. Derived mutexes (competing needs, inconsistent support) may vanish as the graph grows — mutexes shrink monotonically.
4. Blocks World Quick Reference
Common Predicates: On(x,y), OnTable(x), Clear(x), Holding(x), HandEmpty
| Operator | Preconditions | Add | Delete |
|---|---|---|---|
| MoveToBlock(b,x,y) | On(b,x), Clear(b), Clear(y) | On(b,y), Clear(x) | On(b,x), Clear(y) |
| MoveToTable(b,x) | On(b,x), Clear(b) | OnTable(b), Clear(x) | On(b,x) |
| MoveFromTable(b,y) | OnTable(b), Clear(b), Clear(y) | On(b,y) | OnTable(b), Clear(y) |
5. POP Quick Reference
Plan = ⟨A, O, L, OC⟩
- A — Actions (includes Start & Finish)
- O — Ordering constraints (ai ≺ aj)
- L — Causal links (ai ⟶p aj)
- OC — Open preconditions (not yet supported)
Threats: action at threatens link ai ⟶p aj if p ∈ Del(at) and at can be between ai and aj.
Resolution:
- Promotion: aj ≺ at (consumer before threat)
- Demotion: at ≺ ai (threat before producer)
6. Key Definitions
| Term | Definition |
|---|---|
| Closed-World Assumption | Any fluent not stated is false. |
| Frame Problem | How to represent that most things don’t change when an action occurs. |
| STRIPS Assumption | Only add/delete list fluents change; everything else persists. |
| Sussman Anomaly | A problem where linear planners fail because sub-goals interact negatively. |
| Least Commitment | Delay ordering/binding decisions until forced. POP embodies this principle. |
| Causal Link | ai ⟶p aj: action ai achieves precondition p for aj. |
| Level-Off | Planning graph property: layers stabilise (Pk = Pk+1, same mutexes). Guarantees GraphPlan termination. |
| Relaxed Plan | Plan in the problem with delete effects removed. Used for heuristic computation. |
7. Planning Heuristics
| Heuristic | Admissible? | Description |
|---|---|---|
| hmax | Yes | Cost of the hardest single goal fluent |
| hadd | No | Sum of individual goal fluent costs (ignores positive interaction) |
| hFF | No | Length of relaxed plan from relaxed planning graph |
| hLM-cut | Yes | Landmark-based cost partitioning lower bound |
| hmax-level | Yes | Max first-appearance level of any goal in planning graph |
| hset-level | Yes | First level all goals appear non-mutex |
| hsum-level | No | Sum of first-appearance levels of goals |
8. Common GATE Questions on Planning
- Given a STRIPS operator, compute the resulting state after applying it to a given state. Just apply: Result(s,a) = (s − Del(a)) ∪ Add(a).
- Identify mutex actions/propositions in a given planning graph layer. Check all four mutex conditions systematically.
- Sussman Anomaly: explain why a given ordering fails; provide the correct interleaved plan.
- Determine if an action is applicable in a given state. Check Precond(a) ⊆ s.
- POP threat resolution: given a causal link and a threatening action, specify promotion and demotion orderings.
- Planning graph layer construction: build the next proposition/action layer and identify new mutexes.
- True/False conceptual questions: “STRIPS goal-stack planning is complete” (False), “GraphPlan always terminates” (True), etc.
9. Tips & Common Mistakes
- When applying STRIPS actions, always delete before adding. If a fluent is in both lists, it ends up true.
- In POP, Start has no preconditions and its effects = initial state. Finish has the goal as preconditions and no effects.
- Don’t confuse interference (delete vs. precondition) with inconsistent effects (delete vs. add).
- The planning graph over-approximates reachable propositions. Just because a proposition appears doesn’t mean it’s actually achievable — mutex checking tightens this.
- In the blocks world, always check Clear predicates carefully. Forgetting to update them is the most common error.
- GraphPlan finds the shortest parallel plan (minimum number of time steps), not necessarily the fewest total actions.