GPA Guarantee: Score A+ under Finals

Lecture Transcription |LMS sync |Live Tutor Q&A
50% OFFAll Plans

COMP9414 Cheatsheet · Artificial Intelligence

UNSW Sydney · Cheatsheet for the final exam. Term 3 exam period, 27 November – 10 December 2026. Full COMP9414 study guide →

A4 landscape · 7pt body · 6 columns · two-side revision sheet COMP9414 · UNSW Sydney · T3 2026
COMP9414
Artificial Intelligence
School of Computer Science and Engineering · UNSW Sydney · EXAM REVISION SHEET
COMP9414 cheatsheet QR code – open the full COMP9414 study guide
Full guide + ask Sia about COMP9414
SIDE 1/2   PRIORITIES · DEFINITIONS · FORMULAS · DECISION RULES · ASSUMPTIONS Term 3 · 2026 v2 · 2026-10-25 · revision + self-test

0 · Exam Mapcourse.json + brief

A1 20%A2 20%Tut 10%Final 50%
ComponentWeightFormat
Assignment 120%Individual; W3→W5
Assignment 220%Individual; W7→W9
Tutorial work10%Individual; weekly
Final exam50%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

appearancebounded tasksense + actlearn/search
Narrow the claim: observed behaviour ≠ mechanism, transfer or general capability.
WriteQuestion to answer
ObservationWhat succeeded, in exactly which tested setting?
MechanismSearch, learning, retrieval or unknown?
BoundaryWhich changed condition tests the broadest word?
JudgementWhat 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.

Recall → Replace “intelligent” with a falsifiable sentence: behaviour + setting + mechanism evidence + decisive next test.

Landmarks as evidence types

CaseWhat the evidence actually adds
Chess cabinetAppearance can hide a human mechanism.
Deep BlueSpecialised evaluation + many candidate continuations; bounded chess success.
RoboCupNoisy observations, movement, teamwork, opponents and time pressure.
AlphaGoLearning 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

DECISION SYSTEM ENVIRONMENT perceptsactions
Percepts inform a decision; actions alter the world that produces the next percept.

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

PropertyIf presentDesign consequence
Partially observableCurrent percept omits relevant stateStore history/belief; sense again
StochasticAction has several outcomesContingencies or expected utility
DynamicWorld changes during choiceMonitor; refresh stale facts
ContinuousVariables/actions not discreteChoose 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.
Trap → A route-only state cannot represent capacity, completion, battery or corridor knowledge; a stronger algorithm cannot repair a missing state variable.

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).

IngredientIt decidesFailure if wrong
StateWhat futures are distinguishedMerges non-equivalent choices
SuccessorsLegal next statesAllows impossible moves
Goal testWhat counts as successStops too early / never stops
Path costMeaning of “cheapest”Optimises the wrong quantity
STATE GRAPHSEARCH TREESABCGSBACABG
The graph stores world states once; the tree stores path histories, so labels may repeat.

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 separatelyMeaning
Expansion orderEntries removed and expanded
Returned pathParent chain ending at goal
Actual costSum 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 detailKeep iff changing it can alter…
Resource / tool possessionAction legality or successor facts
Completed jobsGoal truth or remaining choices
Battery / time bandFeasibility or future cost
Fixed map labelUsually problem data, not changing state

4 · Frontier ChooserC4 overview + figure

DFSBFSUCSA*deepestLIFOstackshallowestFIFOqueuelowest gpriorityqueuelowestg + hpriority
All share the loop; the frontier priority changes what “best next” means.
MethodSelectConditioned conclusion
DFSDeepest/latest pathNot generally optimal; cycles/depth need control
BFSFewest actions so farComplete in finite branching; optimal for equal action cost
UCSMinimum gCheapest path under positive action costs
GreedyMinimum hGoal-directed; ignores cost already paid
A*Minimum f=g+hOptimal 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

CaseSafe rule
Standard BFS, unweightedSuppress a state already discovered
UCS / A*Keep later route iff new g < best known g
Stale priority entryDiscard 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.

Recall → Selection rule + assumption + conclusion. A guarantee without its condition is incomplete.

Why the choice rule matters

RulePaths processed before a goalWhat may remain stored
LIFOA latest deep branchAlternatives along that descent
FIFOAll shallower frontier pathsA broad depth layer
Minimum gEvery valid lower-cost frontier pathCost-ordered alternatives
Minimum g+hLowest estimated-total candidatesPromising 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.

CheckDoInterpret
Numerical auditSolve exact remaining cost h*Compare every h with h*
Route updateCompute new g through parentUpdate only if strictly smaller
PriorityRecompute f=g+hSelect smallest valid f
ReportSum actual edgesCost is g(goal), not Σh

A* ledger template

NodeParentghfstatus
———giveng+hfrontier / expanded
—replace?new gfixednew fimproved / 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 pressureDFS; show stack and cycle risk
Fewest actions, equal costsBFS; show FIFO layers
Lowest weighted costUCS; show g and improvements
Weighted cost + estimateA*; show g,h,f and admissibility
Goal-directed but no cost assuranceGreedy; 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.

Trap → Never add heuristic values along the returned path. h orders; g improves and reports cost.

Heuristic stress test

  1. Solve the tiny remaining-cost problem exactly; write h* beside every node.
  2. Set every h to zero and confirm the frontier choices reduce to UCS.
  3. Raise one h above h*: identify the lost assurance without claiming failure is certain.

6 · STRIPS TransitionC5 overview + figure

state strue factsPre(a) ⊆ s?gatedelete; addpreserve restResult(s,a)successor
Applicability first; then delete, add and preserve every unmentioned fact.

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.

LayerContainsQuestion answered
DomainPredicates; action schemasWhat can exist and change?
ProblemObjects; initial facts; goalsWhich concrete case?
Grounded actionVariables replaced by objectsIs this step applicable now?

6b · Validate + RepairC5 FAQ + worked example

  1. Ground the next action with concrete objects.
  2. Compare every precondition with the current fact set.
  3. If one is false, name the first illegal action + missing fact; do not continue the original plan.
  4. If legal, cross out deletes, insert adds, preserve all other facts.
  5. 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 assumesExecution response if false
Fully observable factsSense / update belief
Deterministic effectsConditional plan / monitor
Static world during planningReplan on changed status
Symbolic feasibilityCheck geometry / motion separately
Recall → A plausible itinerary is not a valid plan if an earlier action was inapplicable.

Planning as search

https://www.asksia.ai/cheatsheet/unsw-comp9414 · Full COMP9414 study guide →
Forward this to your tutorial group · Shared by ________
AskSiav2 · 2026-10-25
Term 3 exam period, 27 November – 10 December 2026.
Check your exam instructions on the LMS for what you may bring; use this sheet to revise and self-test.
COMP9414
Artificial Intelligence
School of Computer Science and Engineering · UNSW Sydney · EXAM REVISION SHEET
COMP9414 cheatsheet QR code – open the full COMP9414 study guide
Full guide + ask Sia about COMP9414
SIDE 2/2   SELF-TEST · 4 WORKED MINI-EXAMPLES · JUDGEMENT CARDS · CLASSIC TRAPS · MORNING PLAN Answer path visible v2 · 2026-10-25 · cover, solve, check

7 · Worked A* Tracecourse worked example

SABCG242612 h: S5 · A4 · B2 · C1 · G0
Equal f is broken alphabetically; update a parent only when the new g is smaller.
RemoveGenerate / improveFrontier decision
SA: g2,h4,f6; B: g4,h2,f6Tie → A
AC: g4,h1,f5; G: g8,h0,f8Minimum → C
CG improves: g6,h0,f6Minimum → G
GGoal removedReturn parents

answerS–A–C–G; cost = 2+2+2 = 6.

A later B→C route gives g=4+1=5, worse than C’s current g=4, so reject it. The earlier direct goal at cost 8 becomes stale after the improvement to 6.

Admissibility audit

nhTrue cheapest h*Check
A44 via C4≤4 ✓
B23 via C2≤3 ✓
C121≤2 ✓
G000≤0 ✓
Cover + answer → Why is the returned cost 6 rather than the sum of f or h? Because g is the accumulated real edge cost.

7b · A* Failure ChecksC3–C4 strategy

If you see…Repair
Visited rule copied to UCS/A*Compare new g; reopen/update on improvement
BFS called “cheapest”Say fewest edges; require equal costs
Σh reported as route costSum real edges; report g(goal)
Admissible called “accurate”State only h≤h*; h=0 is allowed

7c · Fast Recall Gridglossary

TermSay this
CompleteFinds a solution when one exists, under stated conditions
OptimalReturns minimum defined path cost, under stated assumptions
FrontierGenerated partial paths waiting for selection
Ground factPredicate with concrete objects, no variables

8 · Worked BFS vs UCSC4 search drill

SXYZG88222
Same goal, different objective: 2 edges cost 16; 3 edges cost 6.
MethodReturnsReason
BFSS–X–G; cost 8+8=16Two edges is shallower
UCSS–Y–Z–G; cost 2+2+2=6Lowest cumulative g

Answer sentence: BFS is optimal in action count when every action has equal cost; that condition is false here. UCS processes paths by accumulated cost and therefore returns the deeper but cheaper route.

Trap → “BFS finds the shortest path” is ambiguous. Say fewest edges; say “cheapest” only under equal action costs.

9 · Worked Capability AuditC1 worked example

observetest setmethod?proof?varysettingboundedclaim
Audit a campus kiosk without inflating or dismissing its demonstrated performance.
  1. Observation: tested scripted orientation responses were correct.
  2. Mechanism question: retrieval, map search, pattern matching or generated language?
  3. Boundary: ambiguous room, closed corridor or dependent follow-up.
  4. Judgement: evidence supports the tested query set; broader understanding depends on changed-condition results.

Nearest unsupported word: “understands”. Turn it into a test instead of praise or dismissal.

Transfer matrix

Change one columnDiagnostic question
Task wordingDoes paraphrase preserve the response?
Environment stateDoes a closed corridor update the answer?
FeedbackCan correction alter later behaviour?
Evaluation setDoes performance survive a shifted case distribution?
20-second answer → supported behaviour → operating scope → open mechanism question → decisive next test.

10 · Worked FIFO TraceC3 worked example

SABCG
Successor order A then B; graph search marks on discovery; goal test is on removal.
RemoveFrontier after insertionEvent
SS–A, S–BDiscover A,B
S–AS–B, S–A–CDiscover C
S–BS–A–C, S–B–GSuppress known C; add G
S–A–CS–B–GC removed before G
S–B–G—Goal → return path

answerexpansion/removal sequence includes S,A,B,C,G; returned parent chain = S–B–G.

Expansion order ≠ returned path. C precedes G because A’s expansion put C into the FIFO queue earlier, even though C is not on the final parent chain.

11 · Trace Repair CardsC3 FAQ + study strategy

If you see…Do this
Same state, new pathApply the declared duplicate/cost policy
Wrong final routeFind first frontier divergence, not last answer
Weighted graph + BFSSeparate edge count from cost
UCS/A* later cheaper routeLower best g; replace parent; insert new priority
Different reference sequenceCompare ties, neighbour order and goal timing

Invariants while tracing

  • FIFO progresses by depth layers.
  • LIFO selects the latest path.
  • Priority search removes the lowest valid priority.
  • Returned edge sum equals g(goal).
Self-test → Erase the explored set and follow a cycle: what repeated work appears, and which identity test prevents it?

Blank ledger to reconstruct

Stepremoved pathprioritygeneratedduplicate / improvefrontier after
0——startrecord[start]
1_________________________
2_________________________
3_________________________

After stopping, write three separate lines: removed/expanded order; returned parent chain; actual edge-sum cost. If a reference differs, compare the convention box before changing the algorithm.

Memory compression drill: replace full stored paths with parent pointers, then reconstruct backwards. This changes the storage representation, not the explored state space or frontier semantics.

12 · Worked Plan RepairC5 worked example

currentfactsall Prepresent?first false→ STOPDel, Addpersistgoaltest
Run the gate before the update; never repair a plan by narrating past an illegal step.

Scenario: one gripper; sample in store; access token in reception; lab door locked. Proposed plan picks up the sample, travels to reception, then tries to pick up the token.

StepFact-set consequenceVerdict
pickup_sampleDelete sample-at-store and handempty; add carrying-sampleLegal
move to receptionUpdate location; preserve carrying-sampleLegal if move preconditions hold
pickup_tokenRequires handempty, which is absentFirst illegal action

Repair: under an explicit separate token-storage fact, collect the token first; then obtain the sample, unlock the door and execute the final drop. Replay every successor and verify sample-at-lab in the final state.

answer pathillegal = pickup_token; missing precondition = handempty; cause = pickup_sample deleted it.

13 · Planning Error CardsC5 FAQ + strategy

If you see…Do this
Variable action schemaGround every variable before testing
One false preconditionStop; name it and current state
Delete effect omittedLook for impossible coexisting facts
Unmentioned fact disappearsRestore it via the frame assumption
All actions legalStill test every final goal fact
World changes during executionMonitor and replan from updated facts
Trap → Repair the model and the sequence separately; do not smuggle in hidden storage or capacity.

Fact ledger

Actionmissing Pre?DelAddpreservedgoal now?
grounded a₁_________________________
grounded a₂_________________________

14 · Goal InteractionC5 topic map + FAQ

shared fact Paction for G₁requires Paction for G₂deletes P threat
An action achieving one goal can delete a condition needed for the other.

Repair procedure

  1. Write each goal-producing final action.
  2. Regress each goal to the facts required immediately before it.
  3. Mark shared resources and any delete effect that threatens the other route.
  4. Choose an interleaving that preserves prerequisites—or deliberately undo/rebuild them.
  5. Validate the proposed repair forward from the initial facts.

Three-crate cue: goals Red on Blue and Blue on Green share Blue; with a one-crate crane, solving subgoals independently can destroy a precondition. Delete effects expose the dependency.

A repair is complete only after forward replay shows that the later goal remains true without silently changing capacity, storage or action effects.

15 · Method Chooserall grounded chapters

If you see X…Do YFinal check
Broad capability headlineObservation–mechanism–boundary–judgementChanged condition is falsifiable
Controller scenarioState, percepts, actions, objective, environmentEvery stored detail changes a future
Unweighted graphDeclare order and goal timing; trace FIFO/LIFOPath ≠ expansion list
Weighted graphUse g; keep best-cost and parentsEdge sum = g(goal)
Heuristic tableCompute f; test h≤h*h(goal)=0
Symbolic planGround; Pre gate; Del/Add; preserveAll goal facts true
Two interacting goalsRegress; mark threats; interleaveReplay repair forward

One-line judgement stems

Search: “Method M selects ___; under condition ___ this guarantees ___.” Heuristic: “At node n, h=___ and true remainder=___, so h≤h* [holds/fails].” Plan: “Action a first fails because required fact ___ is absent from state ___.”

16 · Classic TrapsFAQ + study strategies

TrapWhy wrongRepair
Broad intelligence claim from one demoBehaviour does not reveal mechanism or transferBound task + boundary test
Calling poor outcome irrationalUncertainty separates choice from luckJudge expected utility with available information
State = location onlyMay omit load, door, battery, completionAdd variables that change legality/goal/cost
Graph = search treeTree nodes are histories; labels can repeatCarry parent/path explicitly
Apply effects before Pre checkIllegal action has no successorGate first; stop on false fact
Drop unmentioned factsViolates frame assumptionPreserve everything not in Del/Add
Symbolic validity = real reliabilityFacts/effects may be stale or incompleteMonitor, check motion, replan

17 · Exam-Morning Plancourse study strategy

PassClosed-note self-testEvidence of readiness
1 · ReciteDefine state space, tree, frontier, admissible, grounded action, delete effectEach definition includes its discriminating clause
2 · ChooseGiven task cue, select DFS/BFS/UCS/A*/STRIPS reasoningRule + assumption + conclusion
3 · TraceRedo A*, FIFO and plan-repair examplesEvery frontier/fact update visible
4 · AuditFind one deliberate wrong duplicate or delete stepIdentify first divergence
5 · ExplainSay one boundary failure for each modelNo guarantee stated without assumptions

60-second final recall

formulate → declare conventions → select by frontier rule → update ledger → test stopping condition → reconstruct route → verify cost/goal → state guarantee + assumption.

Search ledger: node, parent, depth, g, h, f, status. Planning ledger: action, missing Pre, Del, Add, preserved facts, successor, goal truth. Capability ledger: observation, mechanism, boundary, judgement.

Do not study logistics from memory. Check the LMS instructions for current time, venue and permitted materials.

https://www.asksia.ai/cheatsheet/unsw-comp9414 · Full COMP9414 study guide →
Forward this to your tutorial group · Shared by ________
AskSiav2 · 2026-10-25
Term 3 exam period, 27 November – 10 December 2026.
Check your exam instructions on the LMS for what you may bring; use this sheet to revise and self-test.

Want one for YOUR exact syllabus?

Sia is your free desktop study agent. Drop your UNSW Sydney COMP9414 slides — Sia builds a sheet tailored to YOUR exam. Better than this library because it knows YOUR materials.

↓ Download Sia · Free