Artificial Intelligence Past Paper
Part 1: Introduction and Search
Part 2: Games and Constraint Satisfaction Problems
Games
CSPs
Vi∈Di={l0,l1,l2,l3}, {constraints}, complete / consistent assignment
constraint propagation, back-jumping
- y2005p3q3
- CSP vs A⋆
- backtracking
- minimum remaining values, the degree, the least constraining value heuristic
- y2010p4q1
- forward checking
- arc consistency
- y2012p4q2
- Gaschnig’s algorithm, graph-based backjumping vs forward checking
- y2013p4q1 (c)
- y2014p4q2
- arc consistency
- AC-3 algorithm, 3-consistency
- y2015p4q2
- backjumping (Gaschnig’s algorithm vs graph-based backjumping)
- y2017p4q1 (a,b)
- add row number and transfer to binary constraints
- later used in Planning
- y2020p6q2
- forward checking, AC-3, Constraint propagation
- y2021p6q2
Part 3: Knowledge Representation and Reasoning
Situation Calculus
- y2003p9q8
- ontological vs epistemological commitment
- representational vs inferential frame problem
- the qualification (pre), the ramification problem (effect)
- y2010p4q2
- y2014p4q1
- unique names axiom, unique actions axiom
- y2006p4q4
Part 4: Planning
|
situation space |
plan space |
Plan Representation |
Sequence of actions / vars |
Partial plans with flexible seqs / vars |
Variable Commitment |
Fixed before search |
Least-commitment (delayed) |
Search Space |
Finite (states) |
Infinite (plans) |
Efficiency |
Potentially faster when it works |
Adaptive, potentially efficient |
Application |
Smaller, well-defined problems |
Complex, dynamic problems |
For state-variable, given ground instances X, Domain, Dia
|
situation / plan |
{(state-variable=c),v∈X } / CSP |
States |
s0→[s1=result(grab,s)]... (ad hoc from 1 and onwards) |
all states RR:Dia×Da functions f:Dia×S→Da |
Logic |
propositional |
first-order logic |
Action axioms |
Probability (precondition) --- successor state Effect (for monetary action) Frame (for objects, persistent action□) |
{at(x,s)=c,v2=c′} in s γ(s,a)={(v=c)∣v∈X} ceffect cframe |
Goal |
conjunction literals at timestamp T atT(v,rowid,colid) |
a set of state variable assignments g∈γ(sn,an) |
Sols |
same |
a sequence of actions from start state (a0,a1,...an) |
- y2003p8q8
- STRIPS, States, Goals, Operators(Action, Pre, Effect)
- plan, consistent, complete [all causal links / protection intervals S′→cS, precondition c∈Effects(S′)]
- initial plan with ordering constraint Start<Finish, no v=x
- threat, S′<S′′<S and c∈/Effect(S′′)
- promotion (after the threatened connection)
- demotion (before the threatened connection)
- y2008p4q6
- y2009p4q4
- situation space vs plan space
- y2011p4q2
- y2016p4q1
Propositional Logic
- y2018p6q1
- sliding blocks puzzle, SAT
- start state, goal state, axioms
- action-exclusion (usually totally-order) vs state-constraint axioms (mutex link)
Planning Graph
- y2019p6q1
- inconsistent effects, interfering actions, competing for preconditions mutex
- the initial state level S0, the first action level A1, and the state level S1 resulting from A1
- partial order planner, multiple actions can occur simultaneously
- y2022p6q1
- GraphPlan
- plan extraction as heuristic search
State-variable
- y2017p4q1 (c-e)
- y2023p7q1
- translation to CSP (for each timestamp t)
- CSP variables
- actiont,Dactiont={a}, where a is the ground instance of an action.
- svit(v1,...vn),Dsvit=range(svit)=Dsvit, where a is the ground instance of an action.
- CSP constraints
- precondition, using binary constraint (at=a,sit=v)
- effect using binary constraint (at=a,sit+1=v)
- frame axioms using ternary constraint (at=a,sit=v,sit+1=v)
- y2019p6q2
- State-variable (rigid relation, action, state, goals/solutions)
- Heuristic search vs CSP
Part 5: Learning
Find a weight vector minimizing E(w)
Reuse δj from output layers, y=σ(aj),δj=∂aj∂E(w)=∂y∂E(w)σ′(a)