Problem 6
Given a finite set of points in the plane, each with integer coordinates, is it always possible to color the points red or white so that for every line parallel to one of the coordinate axes, the absolute difference between the numbers of white and red points on is at most ?
Step 1 of 4: Build a bipartite graph
In plain words
A point is naturally an edge: its row and column are the two endpoints. Balancing colors on axis-parallel lines becomes balancing edge colors at graph vertices.
Make one vertex for every horizontal line containing a point and one for every vertical line containing a point. A point becomes an edge joining row vertex to column vertex . The graph is bipartite; coloring the edge red or white colors the point, and each line condition is exactly a vertex condition.