about COMP90054
01 · Exam map COURSE · BRIEF
| Assessment | Wt | Format |
|---|---|---|
| Individual Programming Assignment | 25% | Week 6; ≈30 h |
| Online Quiz | 10% | 30 min; Week 7 |
| Individual Modelling Assignment | 15% | Weeks 11–12; ≈15 h |
| Closed-book Final Examination | 50% | 2 h; must be passed |
“One closed book end-of-semester examination.” COMP90054 2026 Handbook assessment table (FETCHED_UNIMELB_2026_COMP90054_ASSESSMENT_DOM.txt)
02 · Model before solving C1
Autonomous system: active system that perceives, reasons and acts towards goals or rewards. A state contains information treated as relevant to future action choice. A planning model specifies actions, preconditions, effects, initial conditions and goals.
Valid current state + action → one successor state.
Translation checklist
- Declare state variables and observability.
- List each action’s preconditions and effects.
- Write the initial state and goal.
- Represent safety constraints explicitly.
- Trace ordinary, boundary and invalid inputs.
Exam cueA planning bug may be a missing state variable. Omitted variables, wrong observability and abstraction choices can make a formally solved model unsafe.
State/action sanity audit
| Question | Evidence in the answer |
|---|---|
| What can change? | State variables have domains; every action effect changes named variables |
| When is a move legal? | Preconditions exclude invalid state–action pairs |
| What counts as success? | Goal condition is testable against a state |
| What can the system know? | Observability is stated rather than assumed |
| What must never occur? | Safety is a constraint or safely handled transition, not an afterthought |
Minimal complete explanation: “From state s, action a is applicable because its preconditions hold; γ produces s′ by its effects; s′ is then tested against the goal and safety conditions.” If the real task contains uncertainty, separate the known nominal plan from uncertain execution and say whether replanning or an uncertainty-aware policy is needed.
Model quality comes before algorithm choice. A faster solver does not recover variables, consequences or failure states omitted from the representation.
03 · Uninformed search C2
A search node stores a state plus its path, cost and frontier information. The frontier is generated nodes awaiting expansion. Match its ordering to the objective.
| Method | Frontier rule | Use / qualification |
|---|---|---|
| BFS | Shallowest first | Minimum depth; minimum cost only when step costs equal |
| DFS | Deepest first | Depth order does not optimise total cost |
| UCS | Lowest g(n) | Minimum total cost under non-negative costs; keep best-known repeated-state cost |
Guarantee audit
- Name the objective: depth or cost.
- State frontier priority and tie handling.
- For graph search, say how duplicates are handled.
- Qualify completeness/optimality by branching and cost assumptions.
If you seevarying edge costs + minimum total cost → UCS, not BFS.
05 · A-star C3
g = incurred path cost; h = estimated remaining cost.
Admissible: h(n) never overestimates true optimal remaining cost. Consistent: heuristic change across an edge does not exceed that edge cost.
| Claim | What to write |
|---|---|
| Next expansion | Compute every frontier f; choose minimum f, not minimum h |
| Optimality | Name heuristic property and graph-search handling conditions |
07 · Delete relaxation C4
Delete relaxation ignores action delete effects: achieved facts persist. A relaxed plan solves the easier relaxed problem; a helpful action comes from an early relaxed-plan layer as promising guidance.
Relaxed planning graph
- Start from facts true in state s.
- Add applicable actions at the next action layer.
- Add their positive effects; ignored deletes do not remove facts.
- Continue until goals appear or no new facts arise.
- Extract a relaxed plan backwards; count its actions.
| Useful because | Blind because |
|---|---|
| Easier reachability gives search guidance | Resource conflict and negative interaction can disappear |
| Extracted actions suggest promising successors | Low hFF is not an executable real plan |
TrapRestore deletes before claiming feasibility, ordering or resource reuse.
08 · Planning answer boundary C1 · C4
Always separate model validity, heuristic estimate and plan executability. An estimate can rank states well while its extracted relaxed sequence fails after real delete effects return.
| Prompt verb | Required output |
|---|---|
| Construct | Show alternating fact/action layers and applicability |
| Extract | Select actions supporting goals backwards through layers |
| Estimate | Count extracted relaxed actions: hFF |
| Guide | Use relaxed information to order real search |
| Validate | Restore deletes and check ordering/resources |
| Helpful | Use early relaxed-plan actions as guidance, not proof |
| Qualify | Ignored deletes can hide resource conflict and subgoal interaction; a low estimate is not executable |
09 · MDP + Bellman C5
An MDP has states, actions, transition probabilities, rewards and discounting. A policy maps states or observations to actions. Bellman reasoning combines immediate reward with discounted continuation value.
Compute in this order
- For each action, enumerate successors s′.
- Inside each successor term add reward + γ continuation.
- Weight by P(s′|s,a) and sum.
- Only then maximise over actions.
| Symbol | Role | Common error |
|---|---|---|
| P | Transition uncertainty | Taking max over successors instead of probability-weighted sum |
| R | Immediate encoded objective | Assuming it contains unmodelled safety costs |
| γ | Discount | Applying it to the immediate reward |
| maxₐ | Optimal action choice | Maximising before the expectation |
LimitThe Markov property, reward design, γ and transition model are assumptions. Correct arithmetic cannot repair a bad reward.
10 · Value vocabulary C5
Return is realised discounted reward; value is an expectation under a model or policy; optimal value uses the best available continuation. Keep sample, estimate and expectation distinct.
| Quantity | Question answered |
|---|---|
| Vπ(s) | Expected return from s while following π |
| Qπ(s,a) | Expected return after taking a in s, then following π |
| V*(s) | Best expected return achievable from s |
| π(s) | Action selected at state or observation s |
Bellman answer audit
11 · MCTS / UCT C6
MCTS repeats selection → expansion → simulation → backup. Each cycle converts a rollout into updated visit counts and return estimates.
X̄ᵢ = exploitation; bonus = exploration.
| Term changes | Effect |
|---|---|
| Higher X̄ᵢ | Raises evidence-based preference |
| Lower child visits nᵢ | Raises exploration bonus |
| Higher parent visits N | Raises pressure to revisit underexplored children |
| Higher c | Weights exploration more strongly |
Four-stage answer
- Select recursively by UCT.
- Expand an available child.
- Simulate with the stated rollout policy.
- Back up sampled return through visited nodes.
QualificationFinite rollouts, weak simulation policies and variance can make the current leader unreliable.
12 · PUCT guidance C10
A strong prior can lift a little-visited action; additional child visits shrink its bonus. Learned policy and value guidance save search only if model errors remain discoverable under the compute budget.
| Evidence source | Role | Failure check |
|---|---|---|
| Q(s,a) | Accumulated search evidence | Few or noisy rollouts |
| P(s,a) | Learned policy prior | Distribution shift or blind spot |
| Value network | Leaf outcome estimate | Calibration and objective mismatch |
| Visit counts | Allocate future search | Compute concentration |
| Self-play | Generate learning experience | Narrow coverage or changing opponents |
13 · MC, TD and control C7 · C8
MC waits for an episodic sampled return. TD learning updates before episode end from reward plus a bootstrapped next estimate.
a′ is the action actually selected.
| See | Do |
|---|---|
| Full episode rewards | Discount by powers of γ; distinguish one Gₜ sample from expected value |
| Behaviour next action given | SARSA target uses that a′ |
| Greedy bootstrap requested | Q-learning target uses max next Q |
| Update arithmetic | Write target → error → α step → new Q |
14 · Policy gradient + control C9 · C11
Actor selects actions; critic estimates value or advantage. Positive advantage drives ascent to increase the sampled action’s log probability locally. Variance, critic bias and unsafe exploration remain.
Equilibrium or reward optimality does not imply fairness, safety, legality or social desirability. Add stakeholder costs, hard constraints, monitoring, appeal and human intervention.
Bandit → prediction → control
A multi-armed bandit balances uncertain rewards without state transitions. An ε-greedy policy chooses a best action most of the time and a random action with probability ε. Monte Carlo prediction uses complete sampled returns; TD control bootstraps the unknown remainder.
| Choice boundary | Question to ask |
|---|---|
| Bandit vs sequential | Do actions change a state that affects future rewards? |