Module 1: Algorithm Analysis & Design Paradigms: Mistake Clinic
This clinic turns wrong moves into reusable judgment. Use it after each practice page and again before the quiz or checkpoint.
Module-Specific Mistake Radar
Start with these traps. Replace or extend them with real mistakes from your own work.
| Mistake to look for | Where it shows up | Symptom | Repair evidence |
|---|---|---|---|
| Finishing Complexity Analysis Workshop with only a final answer | Complexity Analysis Workshop | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Algorithm Correctness Lab with only a final answer | Algorithm Correctness Lab | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Design Paradigm Clinic with only a final answer | Design Paradigm Clinic | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Finishing Code Katas with only a final answer | Code Katas | The work has no failed case, trace, test, proof gap, or design stress point. | Add the smallest broken example and show the repair that changes the result. |
| Treating Big-O, Omega, and Theta Bound Growth, Not Time as vocabulary instead of a tool | Big-O, Omega, and Theta Bound Growth, Not Time | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
| Treating Loops and Summations Turn Code Into a Sum as vocabulary instead of a tool | Loops and Summations Turn Code Into a Sum | The explanation names the concept but cannot decide between two cases. | Write one example, one non-example, and the rule that separates them. |
Practice Mistake Checks
Pull any miss from these checks into your mistake log.
Complexity Analysis Workshop
Source: practice/01-complexity-analysis-workshop.md
Identify the error in each statement:
- "Because the algorithm is
O(n^2), onn = 10it runs in roughly 100 operations." - "
T(n) = 2 T(n/2) + n^2solves toTheta(n^2 log n)by the Master Theorem." - "Merging two linked lists of length
nisTheta(log n)because we halve the work." - "A binary counter's
nincrements costTheta(n log n)because each increment flips up tolog nbits." - "Because my algorithm has the same big-O as quicksort, it will run equally fast in practice."
Algorithm Correctness Lab
Source: practice/02-algorithm-correctness-lab.md
Identify the error:
- "My invariant is that the array will be sorted after the loop ends."
- "I proved correctness by running the algorithm on 50 random inputs and it always worked."
- "My recursive function calls itself on
n - 1or onndepending on the branch; termination is obvious." - "I do not need a base case because the inductive step handles everything."
- "The loop terminates because the index variable changes every iteration."
Design Paradigm Clinic
Source: practice/03-design-paradigm-clinic.md
Identify the error:
- "My greedy works on all the sample inputs, so it is correct."
- "I memoized the recursion, so the runtime is polynomial."
- "Divide-and-conquer is always faster than iteration."
- "Backtracking is the same as brute force, just recursive."
- "Since I have optimal substructure, greedy will work."
Repair Protocol
For each real mistake:
- Reproduce the failure on the smallest example, trace, proof, query, command, or design sketch.
- Name the hidden assumption.
- Repair the artifact.
- Save evidence that changed: failing then passing test, corrected proof step, revised diagram, safer command, benchmark, or review note.
- Add one retrieval card beginning with Check... before... or Do not use... when....
Mistake Log
| Date | Mistake | Symptom | Root cause | Repair evidence | Retrieval card |
|---|---|---|---|---|---|
| Starter | Pick one radar row above | Explain how it would fail in this module | Name the assumption | Add a counterexample or corrected artifact | Write the card before closing the page |
Completion Standard
- At least five real mistakes are logged.
- At least two mistakes include a counterexample or failing test.
- At least one mistake connects to an older semester skill.
- At least one correction changes code, a proof, a diagram, a command transcript, a query, or a design decision.