LESSON 22.C2 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
ANN indexes compared
Four ways to find the 3 nearest points, side by side on one toy.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 22.C2 · INDEX BAYQ2 · BRUTE FORCE 200 DISTANCES · 3 OF 3
01
Stage 1 of 6 · Brute force
brute-force search measures q2's distance to all 200 points. The 3 nearest are exact: p158, p123 and p50.
Explain it simply
Brute force is the honest way. A faint line runs from q2 to every one of the 200 points. It sorts all 200 distances and keeps the 3 shortest, filled in blue. Every index after it is checked against these 3.
Four panels show the same 200 points. In the brute-force panel, lines join q2 to every point. The 3 nearest are p158, p123 and p50.
points, querysearch, found, distancesindex data, memorytrue 3missed
Toy: 200 2-D points, 5 queries, K = 3; 4 B per number or id; PQ codes in bits
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The straight-line distance from the query to one point.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.