Skip to main content

Semester 2 Common Failure Modes

Use a minimal counterexample and a fresh recheck. This table targets specific failures, not a quota of mistakes or generic advice to “add more evidence.”

FailureSeparating example or checkRepair
Numeric magnitude mistaken for input lengthLarge B written with few bits creates a huge DP tableS1: bit model, table-cell budget, explicit decline
Sorted values hide lost identityEqual-key records A,C swap or disappearS2: stable record oracle and tie rule
Endpoint convention changes in prose onlyTwo intervals touch at time 2S2/S4: predecessor, proof and witness tests updated together
BFS levels substituted for readinessUnequal task durations on a diamond graphS3: weighted longest predecessor finish and certificate
Cycle returns a partial resultBack edge leaves unprocessed verticesS3: complete coverage or explicit rejection
Correct objective paired with invalid scheduleDuplicate IDs, overlaps or budget overspendS4: validate witness independently of the reported value
Greedy choice has no exchange argumentEarliest-finish fixture yields 11 instead of 18S4: derive sufficient state or prove a valid greedy rule
Zero cost causes unbounded reuseOne cost-0 job repeatedly selectedS4: prefix decreases on every inclusion
Latest version used instead of requested versionTwo forks from version 0 have different deletionsS5: recheck every retained version against copied models
Shallow copy leaks nested mutationsCaller appends to returned prerequisite listS5: ownership contract and isolation checks
Invalid batch consumes an ID or publishes partial workValid delete followed by missing-key deleteS5: validate working snapshot before publication
Amortized bound sold as request latencyAppend at full capacity copies old elementsS5: actual/potential ledger and per-call distinction
Current-only filter hides historical keyA deleted key remains in version 0S5/S6: supported population, safe rebuild, exact confirmation
Timing or random seed presented as theoremOne run, one input familyS6: measured scope, proof assumptions and repetition
Unsafe search pruningLow-value partial branch still has a high-value completionS6: upper bound for maximization or explicit approximation

Record affected competency, failed assumption, repair and changed-case result. Use the rubric to decide whether the error blocks completion.