The five color theorem is a result from graph theory that given a plane separated into regions, such as a political map of the countries of the world, the regions may be colored using no more than five colors in such a way that no two adjacent regions receive the same color.
The five color theorem is implied by the stronger four color theorem, but is considerably easier to prove.
It was based on a failed attempt at the four color proof by Alfred Kempe in 1879.
Percy John Heawood found an error 11 years later, and proved the five color theorem based on Kempe's work.
First of all, one associates a simple planar graph
to the given map, namely one puts a vertex in each region of the map, then connects two vertices with an edge if and only if the corresponding regions share a common border.
The problem is then translated into a graph coloring problem: one has to paint the vertices of the graph so that no edge has endpoints of the same color.
is a simple planar graph, i.e. it may be embedded in the plane without intersecting edges, and it does not have two vertices sharing more than one edge, and it does not have loops, then it can be shown (using the Euler characteristic of the plane) that it must have a vertex shared by at most five edges.
(Note: This is the only place where the five-color condition is used in the proof.
If this technique is used to prove the four-color theorem, it will fail on this step.
In fact, an icosahedral graph is 5-regular and planar, and thus does not have a vertex shared by at most four edges.)
Find such a vertex, and call it
obtained this way has one fewer vertex than
in cyclic order (which depends on how we write G).
To be clear, each edge connects a color 1 vertex to a color 3 vertex (this is called a Kempe chain).
joining them that consists of only color 1 and 3 vertices.
consisting of the vertices that are colored with colors 2 and 4 only and the edges connecting them, and apply the same arguments as before.
with a path that consists of only color 2 and 4 vertices.
This clearly contradicts the planarity of the graph.
can in fact be five-colored, contrary to the initial presumption.
Multiple authors, beginning with Lipton and Miller in 1978, have studied efficient algorithms for five-coloring planar graphs.
The algorithm of Lipton and Miller took time
,[1] but subsequent researchers reduced the time bound to
[2][3][4][5][6] The version below is from a 1996 paper by Robertson, Sanders, Seymour, and Thomas, which describes it briefly in connection with a slower
[7] The algorithm as described here operates on multigraphs and relies on the ability to have multiple copies of edges between a single pair of vertices.
It is based on Wernicke's theorem, which states the following: We will use a representation of the graph in which each vertex maintains a circular linked list of adjacent vertices, in clockwise planar order.
In concept, the algorithm is recursive, reducing the graph to a smaller graph with one less vertex, five-coloring that graph, and then using that coloring to determine a coloring for the larger graph in constant time.
In practice, rather than maintain an explicit graph representation for each reduced graph, we will remove vertices from the graph as we go, adding them to a stack, then color them as we pop them back off the stack at the end.
We will maintain three stacks: The algorithm works as follows: Kainen (1974) provides a simplified proof of the five color theorem, based on the non-planarity of K6 (the complete graph with 6 vertices) and graph minors.
This proof generalizes to graphs that can be made planar by deleting 2 edges.