0 · Exam Mapcourse.json + brief
| Component | Weight | Format |
|---|---|---|
| Assignment 1 | 20% | Individual; W3→W5 |
| Assignment 2 | 20% | Individual; W7→W9 |
| Tutorial work | 10% | Individual; weekly |
| Final exam | 50% | Individual; examination period |
Permitted materials: not confirmed for this offering in the course materials we hold — check the exam instructions on the LMS.
double-pass ruleoverall mark ≥ 50/100 AND exam mark ≥ 20/50.
Revision priority from the grounded material: state the model → expose the frontier or fact-set update → name the assumption behind the guarantee → report the path/goal check separately.
1 · Capability ClaimsC1 topic map + FAQ
| Write | Question to answer |
|---|---|
| Observation | What succeeded, in exactly which tested setting? |
| Mechanism | Search, learning, retrieval or unknown? |
| Boundary | Which changed condition tests the broadest word? |
| Judgement | What is supported; what remains an inference? |
Boundary test = changed-condition evaluation that reveals where a claim stops holding. Change wording, world state, feedback or task distribution one at a time; failure narrows the claim without erasing the original success.
Landmarks as evidence types
| Case | What the evidence actually adds |
|---|---|
| Chess cabinet | Appearance can hide a human mechanism. |
| Deep Blue | Specialised evaluation + many candidate continuations; bounded chess success. |
| RoboCup | Noisy observations, movement, teamwork, opponents and time pressure. |
| AlphaGo | Learning combined with tree search in a defined task. |
Equal headline success does not imply equal transfer: compare task model, mechanism and evaluation conditions, not a single vague intelligence scale.
2 · Decision System LoopC2 overview + figure
Rational action maximises expected utility relative to the stated objective, model and available information. A sound decision can still have a poor stochastic outcome: decision quality ≠ luck.
task modelstate + percepts + legal actions + transition assumptions + goal test + path cost / utility.
State-minimality test: if two histories map to the same proposed state, every future action must have the same legality, goal meaning and future cost. If not, add the missing variable; if yes, discard irrelevant history.
2b · Environment → DesignC2 topic map + FAQ
| Property | If present | Design consequence |
|---|---|---|
| Partially observable | Current percept omits relevant state | Store history/belief; sense again |
| Stochastic | Action has several outcomes | Contingencies or expected utility |
| Dynamic | World changes during choice | Monitor; refresh stale facts |
| Continuous | Variables/actions not discrete | Choose an abstraction or motion model |
Library-return formulation
- State: cart location, remaining boxes, load, battery band, latest corridor status.
- Percepts: location, box/load and corridor observations.
- Actions: move, collect, unload, recheck.
- Goal: both boxes cleared; cart at sorting; nothing loaded.
- Cost: travel time plus missing-closing penalty; re-sense because the corridor is dynamic and partly observed.
Information + objective audits
3 · Search FormulationC3 overview + topic map
write before tracinginitial state s₀ · successor function Succ(s) · goal test Goal(s) · path cost g(path).
| Ingredient | It decides | Failure if wrong |
|---|---|---|
| State | What futures are distinguished | Merges non-equivalent choices |
| Successors | Legal next states | Allows impossible moves |
| Goal test | What counts as success | Stops too early / never stops |
| Path cost | Meaning of “cheapest” | Optimises the wrong quantity |
Frontier entry must retain enough to reconstruct a candidate plan: state + parent/full path + depth; cost-sensitive search also stores g and priority. A state label alone cannot explain how it was reached.
3b · Trace Cycle + InvariantsC3 worked example
general loopchoose frontier entry → test goal → expand → generate ordered successors → apply duplicate/cost rule → insert.
| Record separately | Meaning |
|---|---|
| Expansion order | Entries removed and expanded |
| Returned path | Parent chain ending at goal |
| Actual cost | Sum of route edges = g(goal) |
Before step 1, write conventions: neighbour order; goal test on generation or removal; tree/graph search; duplicate policy; tie rule. Different conventions can alter the visible sequence without changing the algorithm family.
Debug at first divergence: wrong successor order, wrong visited time, duplicate inserted twice, or a worse path replacing a cheaper parent.
State-design defence
| Candidate detail | Keep iff changing it can alter… |
|---|---|
| Resource / tool possession | Action legality or successor facts |
| Completed jobs | Goal truth or remaining choices |
| Battery / time band | Feasibility or future cost |
| Fixed map label | Usually problem data, not changing state |
4 · Frontier ChooserC4 overview + figure
| Method | Select | Conditioned conclusion |
|---|---|---|
| DFS | Deepest/latest path | Not generally optimal; cycles/depth need control |
| BFS | Fewest actions so far | Complete in finite branching; optimal for equal action cost |
| UCS | Minimum g | Cheapest path under positive action costs |
| Greedy | Minimum h | Goal-directed; ignores cost already paid |
| A* | Minimum f=g+h | Optimal with the taught admissibility condition |
symbolsg(n)=actual cost from start
h(n)=estimated cheapest remaining cost
f(n)=g(n)+h(n).
BFS minimises edge count, not arbitrary weight. A shallow route can be expensive. UCS ignores depth and expands lowest cumulative cost.
4b · Duplicate PolicyC3 FAQ + C4 strategy
| Case | Safe rule |
|---|---|
| Standard BFS, unweighted | Suppress a state already discovered |
| UCS / A* | Keep later route iff new g < best known g |
| Stale priority entry | Discard if its g exceeds best-cost table |
Replace a parent only on strict cost improvement. Reconstruct the result by following parents backwards; never read the expansion order as if it were the returned route.
Why the choice rule matters
| Rule | Paths processed before a goal | What may remain stored |
|---|---|---|
| LIFO | A latest deep branch | Alternatives along that descent |
| FIFO | All shallower frontier paths | A broad depth layer |
| Minimum g | Every valid lower-cost frontier path | Cost-ordered alternatives |
| Minimum g+h | Lowest estimated-total candidates | Promising alternatives plus best-cost records |
5 · Heuristic ChecksC4 FAQ + worked example
admissibilityfor every n: 0 ≤ h(n) ≤ h*(n), where h*(n) is the true cheapest remaining cost; h(goal)=0.
Admissible means optimistic, not necessarily accurate. One overestimate removes the stated A* optimality condition. h≡0 ⇒ f=g ⇒ A* becomes UCS: admissible but supplies no direction.
| Check | Do | Interpret |
|---|---|---|
| Numerical audit | Solve exact remaining cost h* | Compare every h with h* |
| Route update | Compute new g through parent | Update only if strictly smaller |
| Priority | Recompute f=g+h | Select smallest valid f |
| Report | Sum actual edges | Cost is g(goal), not Σh |
A* ledger template
| Node | Parent | g | h | f | status |
|---|---|---|---|---|---|
| — | — | — | given | g+h | frontier / expanded |
| — | replace? | new g | fixed | new f | improved / stale |
Tie handling: apply only the stated rule. In the guide’s worked graph equal f is broken alphabetically. State the rule before expanding so a trace is reproducible.
Do not overclaim: an inadmissible estimate removes the assurance; it does not prove A* must return a bad path on every graph.
5b · Method ChooserC4 topic map
| If the task asks… | Choose / show |
|---|---|
| Any deep route; memory pressure | DFS; show stack and cycle risk |
| Fewest actions, equal costs | BFS; show FIFO layers |
| Lowest weighted cost | UCS; show g and improvements |
| Weighted cost + estimate | A*; show g,h,f and admissibility |
| Goal-directed but no cost assurance | Greedy; show h-only priority |
Compare expansion counts only after aligning neighbour order, goal-test timing, duplicate policy and tie-breaking; otherwise the comparison mixes conventions with algorithms.
Heuristic stress test
- Solve the tiny remaining-cost problem exactly; write h* beside every node.
- Set every h to zero and confirm the frontier choices reduce to UCS.
- Raise one h above h*: identify the lost assurance without claiming failure is certain.
6 · STRIPS TransitionC5 overview + figure
applicablePre(a) ⊆ s. If any grounded precondition is absent, STOP: action is illegal.
successorResult(s,a) = (s − Del(a)) ∪ Add(a).
Closed-world convention: facts absent from the current set are treated as false in the tutorial model. Frame assumption: facts not named in effects persist.
| Layer | Contains | Question answered |
|---|---|---|
| Domain | Predicates; action schemas | What can exist and change? |
| Problem | Objects; initial facts; goals | Which concrete case? |
| Grounded action | Variables replaced by objects | Is this step applicable now? |
6b · Validate + RepairC5 FAQ + worked example
- Ground the next action with concrete objects.
- Compare every precondition with the current fact set.
- If one is false, name the first illegal action + missing fact; do not continue the original plan.
- If legal, cross out deletes, insert adds, preserve all other facts.
- After the last step, test that every goal fact is present.
Goal interaction occurs when achieving one goal deletes a fact needed to achieve or preserve another. Put the goal-producing actions beside their preconditions and delete effects; repair by a valid interleaving, then replay forward.
| Formal model assumes | Execution response if false |
|---|---|
| Fully observable facts | Sense / update belief |
| Deterministic effects | Conditional plan / monitor |
| Static world during planning | Replan on changed status |
| Symbolic feasibility | Check geometry / motion separately |