2026-08-28·von Sijie Wang#idea#math

rectangles

Axis-aligned rectangles — VC = 4

Parent: examples Prereq: learning-theory — H, h, shattering.

Class of all axis-aligned rectangles [a₁,b₁]×[a₂,b₂], four parameters:

h(x)={+a1≤x1≤b1 and a2≤x2≤b2−otherwiseh(x) = \begin{cases} + & a_1 \le x_1 \le b_1 \ \text{and}\ a_2 \le x_2 \le b_2 \\ - & \text{otherwise} \end{cases}

Count. Take 4 points at the top/bottom/left/right extremes (a small diamond). For any labeling, take the tightest rectangle enclosing the + points; each of its 4 sides can be pushed independently to include or exclude one extreme → all 2⁴ = 16 labelings realizable → shatters 4 → VC ≥ 4.

For any 5 points: pick the topmost, bottommost, leftmost, rightmost (≤ 4 distinct); label those 4 + and the remaining point −. Any rectangle covering the 4 extremes covers their bounding box, which contains the 5th point too → it's forced + → that labeling fails → no 5 shatter → VC = 4.

cited by
über diesen eintrag

Einer von sijie's Wiki-Einträgen. Die KI auf dieser Site ist im selben Corpus verankert und antwortet in sijie's Stimme mit Zitaten zurück auf Einträge wie diesen — das Beantworten kostet sijie Geld, daher wartet sie hinter einem Code: zugriffscode eingeben →

rectangles — Sijie Wang