Part III · Chapter 8

The Widest Road

Building the safest gap between two sides—and lifting flat dots into 3D to slice them.

Suppose you have a map with two cleanly separated neighborhoods: Blue houses on one side and Gold houses on the other. You want to draw a straight border between them so that when a brand-new house appears tomorrow, you can tell which neighborhood it belongs to.

Wait a second—look closely at the empty space between the two groups. There is not just one straight line that separates them. You could tilt the line slightly clockwise, or nudge it slightly closer to Blue, or angle it closer to Gold. Dozens of different straight lines all get every single existing house right!

So which line is the safest choice for the future?

Instead of drawing a razor-thin pencil line, imagine paving a road between the two neighborhoods. If you pave a skinny alleyway that scrapes right past a Blue front porch, then a brand-new Blue house built just a few steps further out will accidentally land on the Gold side. What you really want is the widest possible road—a generous buffer zone that gives both sides maximum breathing room.

The Curbstone Secret

Once you pave the widest possible road, look at which dots actually touch its two curbs. Only a tiny handful of "front-row" houses hold the road's edges in place. You can move a house deep in the back of the neighborhood anywhere you like, and the road will not budge an inch!

Interactive Pave the Widest Road
Tilt the road, click Find Widest Road, or drag any dot (try a back-row dot vs. a glowing curbstone dot!).
Road Tilt Manual
Road width: —

Try clicking Find Widest Road and then dragging one of the Blue or Gold dots tucked far back from the street. Nothing happens to the road at all! Now grab one of the glowing curbstone dots sitting right on the dashed edge and nudge it. Immediately the entire road pivots and resizes around your finger.

That is a remarkable property: the entire border is anchored by just a few boundary-defining examples. Everything else deep inside its own territory is just along for the ride.

When No Flat Line Can Work

The widest-road trick is wonderfully crisp whenever a straight street fits between two groups. But real life is not always so polite.

Imagine a tight island of Blue dots sitting right in the center of a flat table, completely surrounded by a ring of Gold dots. Try placing a straight ruler anywhere across that table. No matter how you spin or slide it, you can never keep all the Blue dots on one side and all the Gold dots on the other.

Does that mean our straight-slice idea is defeated? Not at all—we just need a change of perspective.

Imagine reaching underneath the center of that flat table and pushing upward, lifting the dots near the middle into a smooth glowing hill while the outer ring stays low in the valley. Suddenly, our flat 2D picture lives in 3D space. And in 3D, a completely flat sheet of glass can glide straight through the air—passing cleanly underneath the raised Blue peak and right above the lower Gold ring!

Interactive The 3D Lift Trick
Slide "Lift into 3D" upward, then drag horizontally on the canvas to spin the 3D view.
Lift into 3D 0% (Flat)
Flat table: no straight line can separate the Blue island from the Gold ring.

Look back down from straight above when the glass sheet is in place: where that flat sheet of glass meets the hill, its shadow forms a neat circle around the Blue island! By lifting a tangled flat puzzle into a richer space, a simple flat slice turns into a curved boundary back on the ground.

Key Takeaway

The safest straight border is the center of the widest possible road between two groups, anchored purely by the few curbstone dots on the edge. And when a flat map looks impossible to slice straight, lifting the dots into a higher dimension lets a completely flat slice do the job.

In the Wild
Curious what people in the field call these ideas? Flip the switch.
The Widest Road Method
Support Vector Machine (SVM)
A classic pattern-finding method that searches for the separating boundary with the largest possible safety buffer on both sides.
Width of the Road
Margin
The open breathing room between the dividing line and the closest examples from each group.
The Curbstone Dots Holding the Edges
Support Vectors
The small set of edge examples sitting right on the curb that completely determine where the dividing border sits.
Lifting Flat Dots into Higher Space
The Kernel Trick
A clever mathematical shortcut for lifting tangled points into higher dimensions so a flat slice can separate them effortlessly.