Skip to content

Evals

Step Tutor: does it contradict the step?

The DSA Visualizer explains every step of every algorithm in two sentences. An explanation is only useful if it is true of the step on screen, so the question here is narrow: how often does it say something false about that step?

Result

1 contradiction in 100 hand-labelled steps.

The best estimate is 1.0%, under the 3.0% bar set for launch. The 95% interval reaches 5.4%, though, so 100 steps can't rule out a true rate above the bar. At this rate, about 240 labelled steps would.

The one contradiction was found by the LLM judge described below, not by the first hand pass: on a union-find step where 0 and 6 already share a root, the explanation said skipping the join “keeps the two sets separate” and “avoids creating a cycle”. Both reasons are false: there is one set, and pointing the root at itself creates no cycle.

0%2%4%6%8%10%bar: under 3%
Measured rate 1.0% (dot) with its 95% interval 0.2%–5.4% (thick line), against the launch bar of 3.0% (dashed line).

What was measured

Facts about the Tutor and this eval
Steps explained986 of 986
Algorithms and structures57 in 17 topics
Modelclaude-sonnet-5-5, low effort, Message Batches
Cost to write every explanation$2.41
Cost per visitor$0 (explanations are static files)
Labelled sample100 steps, about 6 per topic, fixed seed

Method

  1. For each step, the model sees only that step’s data: the line of code running, what the step does, its variables, highlights and what is on screen. It is told to use only those facts.
  2. Every answer goes through a mechanical check before it is published: two sentences, at most 60 words, no markdown, and every number it mentions must appear in the step data. In the first batch the check held back 14 of 986 answers (5 for over 60 words, 4 for not two sentences, 5 for a number not in the step data); those steps were asked again until an answer passed.
  3. A fixed, stratified sample of 100 steps was labelled by hand against the step itself. A contradiction is any claim that is false for the step: a wrong value, a different action, a false reason, an outcome from a later step, or a misread line of code. Vague but true is not a contradiction.
  4. The rate is reported with a Wilson 95% interval.
  5. A second reader: an LLM judge (Claude Haiku, three votes per step) graded all 100explanations against the same facts. It was first checked against 30 labelled examples, half with a planted error, and agreed on 26 (Cohen’s κ 0.73). On the real explanations it flagged 5. One was a real contradiction the hand pass had missed, now in the count above. The other 4 were wrong, so its flags are read, not counted.

Examples from the sample

Limits

Report generated 2026-11-30.