For a proper three-graph colouring , associate the colors with the three roots of unity , viewed as unit vectors in . Define using the real inner product.
This is twice a Gram matrix, so it is a positive semidefinite matrix. Its diagonal is . On every edge, the endpoint colors differ, so their vectors make angle or and . Thus and this are feasible in the second semidefinite program, proving
This is the regular simplex construction of a strict vector coloring.
If , use a single color. Otherwise choose
The previous bound gives , including the case . By Markov inequality, . Sample the hyperplanes, count the monochromatic edges, and repeat if . The success probability is at least , so at most two draws are needed on average.
For a successful draw, select one endpoint of each monochromatic edge and let be the union of the selected vertices. Then . Every monochromatic edge meets , so the original colors give a proper graph colouring on the induced subgraph with vertex set . Since , the coloring of all vertices is a semicoloring. This is a random alteration method; no additional colors for are required.
The number of available colors satisfies . A simple graph has , hence semicoloring by independent hyperplanes gives
A graph is bipartite when its set of vertices can be partitioned as
so that every edge has one endpoint in and the other in . Equivalently, has a proper graph colouring with at most two colours.
Semicoloring 2026-10-05
A -semicoloring of a finite graph assigns one of colors to every vertex and is a proper graph colouring on an induced subgraph containing at least half the vertices. This is weaker than a proper coloring of the whole graph, and is useful as an intermediate step in a randomized algorithm.
This decision problem asks whether a finite undirected graph has a graph colouring with three colours. It is NP-complete: a colouring certifies membership in NP, while 3-SAT reduces using Boolean-pair colouring gadgets and three-colour clause gadgets.
Take auxiliary graph triangles and , join to , and add edges . When has colour and the inputs have colours in , this graph admits an extension to a graph colouring with three colours exactly when at least one input is . All-false inputs force , contradicting their edge. Conversely, use if , if , and if . The extension property is necessary for both directions of a polynomial-time many-one reduction.
Vector coloring 2026-10-05
A vector -coloring, for , assigns a unit vector to each vertex of a graph, such that on every edge. A graph colouring with colors gives a vector -coloring by placing the colors at the vertices of a regular simplex. The Gram matrix of these vectors allows semidefinite programming to search for such a representation.