Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/autopilot.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Nothing. The exam-stack block (since 2026-11-06, over #68's inline practice ques

Newest first. One line per run: date and run, what was done, PR link, merged or open.

- 2026-11-18 14:50 (run C): from the 2026-11-12 audit, the Discrete Mathematics `birthday-problem` curve (120 px too wide at 390 px) now fits: the SVG scales to the screen with its 420 px minimum kept from sm up, its axis labels get larger font sizes on phones (smallest 13 px on screen), and the group-size row wraps. Left from the audit: union-find, the multilevel feedback queue, order-statistics, lab-bit-manipulation, the merge-levels diagram, codes-and-floating-point, memory-unit, modular-inverses and order-and-primitive-roots, plus the circuit schematics, which need a phone layout. PR #103, open.
- 2026-11-17 14:50 (run C): from the 2026-11-12 audit, the Computer Organization `bits-and-bytes` unit ladder (124 px too wide at 390 px) now fits. Its captions now sit under their bars in a two-column grid at every width, which also fixes the desktop TB and PB captions wrapping unindented, and "2^0 = 1 bytes" now reads "1 byte". PR #99, open. Its CI check is red only because main is: The Exam Mind's round 7 (#97) renamed a heading that a bank question points at; fixed in PR #100.
- 2026-11-17 10:40 (run B): exam phase 4c, Computer Organization: +26 questions over all 9 taught lessons, numbers checked by script (500 GB shown as 465.7, G = 01000111, 2¹⁶ and 2¹² locations, the disk capacity 516,096,000 bytes, 4.2 ms average wait at 7,200 rpm). PR #96, open, stacked on #94.
- 2026-11-17 06:10 (run A): exam phase 4c, Microprocessors: +34 questions over all 11 taught lessons, every value checked by script (C8h + 64h flags, CS:IP and segment limits, effective address, MUL/DIV results, XOR case flip, LOOP sum, SP after push/pop, INT 21h vector at 84h). PR #94, open, stacked on #91.
Expand Down
17 changes: 9 additions & 8 deletions src/components/mdx/DiscreteVisualizers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1034,22 +1034,23 @@ export function BirthdayCurve() {
<span className="font-mono text-[11px] uppercase tracking-widest text-muted-foreground">values</span>
<Toggle<string> value={space} onChange={(v) => { setSpace(v); setK(birthdayHalf(SPACES.find((s) => s[0] === v)![1])); setTrials(null); }} options={SPACES.map(([id, , label]) => [id, label] as [string, string])} />
</div>
<label className="flex items-center gap-3 font-mono text-xs">
<label className="flex flex-wrap items-center gap-3 font-mono text-xs">
<span className="uppercase tracking-widest text-[11px] text-muted-foreground">group size {kk}</span>
<input type="range" min={2} max={maxK} value={kk} onChange={(e) => { setK(Number(e.target.value)); setTrials(null); }} className="w-56" aria-label="Group size" />
<input type="range" min={2} max={maxK} value={kk} onChange={(e) => { setK(Number(e.target.value)); setTrials(null); }} className="w-56 max-w-full" aria-label="Group size" />
</label>
<svg viewBox={`-30 -10 ${W + 40} ${H + 30}`} className="w-full min-w-[420px]" role="img" aria-label={`Probability curve; ${kk} items give ${(p * 100).toFixed(1)} percent`}>
{/* on phones the drawing scales to the screen; its labels get larger font sizes there to stay readable */}
<svg viewBox={`-30 -10 ${W + 40} ${H + 30}`} className="w-full sm:min-w-[420px]" role="img" aria-label={`Probability curve; ${kk} items give ${(p * 100).toFixed(1)} percent`}>
<line x1={0} y1={H / 2} x2={W} y2={H / 2} className="stroke-orange" strokeDasharray="4 4" />
<line x1={0} y1={H} x2={W} y2={H} className="stroke-border" />
<line x1={0} y1={0} x2={0} y2={H} className="stroke-border" />
<text x={-6} y={4} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono">1</text>
<text x={-6} y={H / 2 + 3} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono">.5</text>
<text x={-6} y={H + 3} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono">0</text>
<text x={-6} y={4} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono [font-size:18px] sm:[font-size:10px]">1</text>
<text x={-6} y={H / 2 + 3} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono [font-size:18px] sm:[font-size:10px]">.5</text>
<text x={-6} y={H + 3} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono [font-size:18px] sm:[font-size:10px]">0</text>
<polyline points={pts} fill="none" className="stroke-sky" strokeWidth={2.2} />
<line x1={(kk / maxK) * W} y1={0} x2={(kk / maxK) * W} y2={H} className="stroke-neon" strokeWidth={2} />
<circle cx={(kk / maxK) * W} cy={H - p * H} r={5} className="fill-neon stroke-foreground" />
<text x={(half / maxK) * W} y={H + 16} textAnchor="middle" fontSize={10} className="fill-orange font-mono">{half}</text>
<text x={W} y={H + 16} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono">{maxK}</text>
<text x={(half / maxK) * W} y={H + 16} textAnchor="middle" fontSize={10} className="fill-orange font-mono [font-size:18px] sm:[font-size:10px]">{half}</text>
<text x={W} y={H + 16} textAnchor="end" fontSize={10} className="fill-muted-foreground font-mono [font-size:18px] sm:[font-size:10px]">{maxK}</text>
</svg>
<div className="font-mono text-sm space-y-1">
<div>
Expand Down
Loading