Separating Points by a Line or Parabola

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

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.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send