02 — Experiment
I try things.
Most of them don’t fit anything yet. I keep them anyway.
03 — Build
Every attempt becomes a part.
A heap, a graph, a decision tree: things I worked out once now hold the structure up.
04 — Takeoff
Then it carries you.
Not because the wings were given. Because they were made.
05 — The next idea
The sun was never the finish.
Get close to one idea and it turns into the drawing for the next one.
06 — The lab
Things I’ve made, and things I’m still making.
10 specimens on 4 shelves · catalogued · open any one to inspect it
Built
Things that exist and can be used.
KB-001 nerdhuba world of study sites
Study sites I built for my own courses. Each one turns a course's past papers into a place to read, practise and revise: notes, past questions, mock tests, flashcards, a mistakes list and a study plan.
Four sites live there now. PDSA treats the course as a graph: every topic is marked visited, frontier or unvisited. The MLT platform reads like handwritten notes in pen-blue ink, with a formula drawer and search across every note and question. MAD 1 draws the whole course as one conversation: a request goes out, a response comes back. MLF starts from what a matrix does to a circle, then works through the past papers.
Decisions, in the code’s own words
Adding a topic = add one data file and flip status to "ready". The engine never changes.
nerdhub/mlt/js/manifest.jsBuilt from the loaded topic data, so it never goes out of date.
nerdhub/mlt/js/cheat.jsThe backend sits behind a small adapter (init, onAuth, signIn, signOut, load, save) so the logic can be tested without a network.
nerdhub/mlt/js/sync.jsFirebase web config is public by design; who can read or write is decided by firestore.rules
nerdhub/mlt/js/firebase-config.js
- PDSA
- 5 topics · 159 past questions from 10 papers · course map, practice, mock exam, flashcards, last-night sheet
- MLT
- 8 topics · Quiz 2 notes and solved PYQs · practice next, mock test, cheatsheet, glossary, formula drawer
- MAD 1
- 8 topics · 160 past questions from 10 papers · being built, one topic at a time
- MLF
- 6 topics · 140 past questions from 10 papers · 90% route, practice next, mock exam, flashcards, mistakes
- Sync
- optional on PDSA, MLT and MAD 1: sign in with any Google account and progress follows you across devices, kept to your own record by Firestore rules
Enter nerdhub → PDSA MLT MAD 1 MLF
Connected
- KB-005 A graph that lays itself out — draws the graphs in the PDSA site
- KB-004 Does adaptive practice help? — ranks what to practise in the MLT site
- KB-009 Two copies, one state — keeps a student's progress whole across two devices
The study sites work without signing in. Sign-in only syncs your progress, and MLF has none.
KB-002 This sitea pair of wings
Drawn by hand in SVG, with no framework. Every fragment in the wings is redrawn from something worked out in nerdhub: a heap, a shortest-path graph, a recurrence, a decision tree, a regression fit, a nearest-neighbour sketch.
The geometry is computed by a small script and written out as plain HTML, so the page needs nothing to run. The motion is a layer on top; switch it off and the drawing is all still here.
- Source
- index.html, tools/build-home.py, assets/
Connected
- KB-001 nerdhub — where the fragments in the wings come from
Experiments
Things made to find something out.
KB-004 Does adaptive practice help?a memory model, tested on 2,000 simulated students
MLT's “Practice next” ranks ideas by the marks you are likely to lose on them. Each idea carries a chance that you know it, updated after every answer (Bayesian knowledge tracing), and a memory half-life that doubles after a confident right answer and halves after a miss.
It was then tested against simpler ways of choosing. Most of the gain comes from weighting by marks: marks-weighted random gains 7.0 points over random, the full model 7.1. Over 30 days the memory model earns more (8.2 against 7.3). Practising your weakest topic first does worse than random.
The students are simulated, with a different forgetting law from the model, so it is tested on something it was not built for. It shows the method behaves sensibly. It does not show it helps real students.
Below are the recorded results for all five settings the simulation was run in. Nothing is re-simulated here.
All five recorded settings, as tables
| way of choosing | exam score % | gain over random |
|---|---|---|
| No practice | 33.3 ± 0.3 | -20.2 |
| Random concept | 53.5 ± 0.2 | +0.0 |
| Syllabus order | 54.0 ± 0.2 | +0.6 |
| Weakest accuracy | 50.1 ± 0.3 | -3.3 |
| Marks-weighted random | 60.5 ± 0.2 | +7.0 |
| Adaptive (ours) | 60.6 ± 0.2 | +7.1 |
| Adaptive, equal weights | 47.4 ± 0.2 | -6.1 |
| Oracle (sees truth) | 62.5 ± 0.2 | +9.0 |
| way of choosing | exam score % | gain over random |
|---|---|---|
| No practice | 35.8 ± 0.3 | -11.8 |
| Random concept | 47.6 ± 0.2 | +0.0 |
| Syllabus order | 47.7 ± 0.2 | +0.1 |
| Weakest accuracy | 44.1 ± 0.3 | -3.5 |
| Marks-weighted random | 52.5 ± 0.2 | +4.9 |
| Adaptive (ours) | 53.1 ± 0.2 | +5.5 |
| Adaptive, equal weights | 44.3 ± 0.3 | -3.3 |
| Oracle (sees truth) | 54.5 ± 0.2 | +7.0 |
| way of choosing | exam score % | gain over random |
|---|---|---|
| No practice | 33.3 ± 0.3 | -10.9 |
| Random concept | 44.1 ± 0.2 | +0.0 |
| Syllabus order | 44.0 ± 0.2 | -0.2 |
| Weakest accuracy | 41.2 ± 0.3 | -2.9 |
| Marks-weighted random | 49.0 ± 0.2 | +4.9 |
| Adaptive (ours) | 49.8 ± 0.2 | +5.7 |
| Adaptive, equal weights | 41.1 ± 0.3 | -3.1 |
| Oracle (sees truth) | 51.5 ± 0.2 | +7.3 |
| way of choosing | exam score % | gain over random |
|---|---|---|
| No practice | 30.4 ± 0.3 | -34.2 |
| Random concept | 64.6 ± 0.2 | +0.0 |
| Syllabus order | 65.5 ± 0.2 | +0.9 |
| Weakest accuracy | 60.2 ± 0.2 | -4.4 |
| Marks-weighted random | 71.9 ± 0.2 | +7.3 |
| Adaptive (ours) | 72.8 ± 0.2 | +8.2 |
| Adaptive, equal weights | 56.5 ± 0.2 | -8.1 |
| Oracle (sees truth) | 72.6 ± 0.2 | +8.0 |
| way of choosing | exam score % | gain over random |
|---|---|---|
| No practice | 33.3 ± 0.3 | -34.4 |
| Random concept | 67.6 ± 0.2 | +0.0 |
| Syllabus order | 68.8 ± 0.2 | +1.2 |
| Weakest accuracy | 62.7 ± 0.2 | -5.0 |
| Marks-weighted random | 73.8 ± 0.1 | +6.2 |
| Adaptive (ours) | 74.3 ± 0.2 | +6.7 |
| Adaptive, equal weights | 61.9 ± 0.3 | -5.7 |
| Oracle (sees truth) | 73.2 ± 0.2 | +5.6 |
- Settings
- five: 7, 14 or 30 study days; 5, 10 or 20 questions a day; 49 ideas, marks from the real past papers
- Source
- results from nerdhub/mlt/js/evidence.js; the simulation itself is not in this repository
- Read
- nerdhub/mlt/js/adapt.js
Read the model → Practice next, in MLT
Connected
- KB-009 Two copies, one state — the ranking reads the answer log, which merging keeps whole
- KB-001 nerdhub — lives in the MLT site as Practice next
KB-005 A graph that lays itself outnodes push apart, edges pull together, then it cools
The PDSA site draws its graphs with its own force layout, about thirty lines long: every pair of nodes repels, every edge pulls its ends together, and each step is allowed to move a little less than the last, for 260 steps.
Below, the same code runs in your browser on real data: PDSA's five topics, joined to the topics each one builds on. Scrub through the 260 steps, play them, or pick a topic to see what it connects to.
- D&C uses nothing earlier
- Trees uses D&C
- Heaps uses Trees
- Greedy uses Heaps
- Graphs uses Heaps, Greedy, Trees
- Read
- fr() in nerdhub/pdsa/js/core.js
Connected
- KB-001 nerdhub — the PDSA site uses it for every graph it draws
KB-006 A solver that shows where the work istype a recurrence; see which level of the tree pays
A small widget in PDSA's divide and conquer topic. You type a, b and d for T(n) = a·T(n/b) + O(nᵈ) and it walks through the three steps of the master theorem, ending with why: the leaves do the most work, every level does the same, or the root does.
Below, choose a recurrence, or set a, b and d yourself, and read the work level by level down to the leaves.
T(n) = 2T(n/2) + n, with n = 32
| level | subproblems | size of each | work in each | level total |
|---|---|---|---|---|
| 0 | 1 | 32 | 32 | 32 |
| 1 | 2 | 16 | 16 | 32 |
| 2 | 4 | 8 | 8 | 32 |
| 3 | 8 | 4 | 4 | 32 |
| 4 | 16 | 2 | 2 | 32 |
| leaves | 32 | 1 | 1 | 32 |
log2 2 = 1 against d = 1: every level does the same work, so T(n) = O(n log n).
- Read
- P.widgets.master in nerdhub/pdsa/js/widgets.js
Connected
- KB-007 Remember lines — the same rule, as one remember line
Notes
Things written down along the way.
Greedy = locally best, never undone. Fast, not always correct.KB-007 Remember linesone of 38 at the ends of PDSA's sections
Every section of the PDSA site ends in one line meant to survive the night before the exam. A few more:
from nerdhub/pdsa/js/data/, maths typeset as plain text
- Height is cost. Balanced height is log n, a chain is n.
- Heap = complete tree + parent-child order. Not sorted.
- Relax: if dist[u]+w < dist[v], lower dist[v].
- Divide, conquer (recursion + base case), combine.
- Compare a with bᵈ: bigger → n^(log_b a); equal → nᵈ log n; smaller → nᵈ.
- Read
- the "remember" fields in nerdhub/pdsa/js/data/
Connected
- KB-006 A solver that shows where the work is — that line, as a solver you can try
[FLAG] = my calculation and the bank disagreeKB-008 [FLAG]where the key was missing or wrong, and the working
The MLT notes tag every claim with where it came from. In the notes' own words:
[SRC] from your files, [DERIVED] answer I worked out because the bank gives no key, [ADDED] my own example, [FLAG] disagreement between my calculation and a key.Across MLT's 8 topic files, 82 past questions had no key in the bank, so the answer is worked out and tagged [DERIVED]. 3 are [FLAG]: the working and the bank disagree, or the bank's text is cut off, and both are shown.
- Read
- nerdhub/mlt/topics/
Connected
- KB-001 nerdhub — the tags run through every MLT topic
Merge two copies of the study state without losing either.KB-009 Two copies, one statethe rules at the top of merge.js
When the same student studies on two devices, both copies have to survive. The rules, as written in the file:
from the comment at the top of nerdhub/mlt/js/merge.js, lightly shortened
- the answer log: union, de-duplicated
- past-question results: the newer attempt wins
- counters: the larger count wins, because counters cannot be added without a log
- sections read: union
- a reset bumps the epoch, and a new epoch replaces instead of merging
- Read
- nerdhub/mlt/js/merge.js
Connected
- KB-004 Does adaptive practice help? — the answer log it merges is what Practice next reads
Unfinished
Not yet.
KB-010 Postspromised on the nerdhub page; none written yet
The nerdhub page has said “study sites, notes and posts” from the start. The posts do not exist yet.
Connected
- KB-001 nerdhub — the page that promised them
KB-003 not built yetreserved
Reserved for whatever comes next.
The collection grows when something new gets made. ↑ 01, again