Separating Points by a Line or Parabola

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
Given white points and black points (up to ten of each in this Demonstration), it is sometimes possible to find a separating line with all the white points on one side and all the black points on the other side (none of the points should lie on the line). This Demonstration shows a separating line and a separating parabola when they exist; you can drag the points.
Contributed by: Jaime Rangel-Mondragon (July 2013)
Open content licensed under CC BY-NC-SA
Snapshots
Details
When the points can be separated by a vertical line, it takes precedence over a separating parabola. The points are at the centers of the disks, so when a disk touches the line, the point may still be off the line.
Reference
[1] J. Matoušek and B. Gärtner, Understanding and Using Linear Programming, New York: Springer, 2007.
Permanent Citation
"Separating Points by a Line or Parabola"
http://demonstrations.wolfram.com/SeparatingPointsByALineOrParabola/
Wolfram Demonstrations Project
Published: July 22 2013