# Defective coloring

In graph theory, a mathematical discipline, coloring refers to an assignment of colours or labels to vertices, edges and faces of a graph. Defective coloring is a variant of proper vertex coloring. In a proper vertex coloring, the vertices are coloured such that no adjacent vertices have the same colour. In defective coloring, on the other hand, the vertices are allowed to have neighbours of the same colour to a certain extent.

## History

Defective coloring was introduced nearly simultaneously by Andrews and Jacobson, Harary and Jones and Cowen, Cowen and Woodall. Surveys of this and related colorings are given by Marietjie Frick. Cowen, Cowen and Woodall focused on graphs embedded on surfaces and gave a complete characterization of all k and d such that every planar is (k, d)-colorable. Namely, there does not exist a d such that every planar graph is (1, d)- or (2, d)-colorable; there exist planar graphs which are not (3, 1)-colorable, but every planar graph is (3, 2)-colorable. Together with the (4, 0)-coloring implied by the four color theorem, this solves defective chromatic number for the plane. Poh and Goddard showed that any planar graph has a special (3,2)-coloring in which each color class is a linear forest, and this can be obtained from a more general result of Woodall. For general surfaces, it was shown that for each genus $g\geq 0$, there exists a $k=k(g)$ such that every graph on the surface of genus $g$ is (4, k)-colorable. This was improved to (3, k)-colorable by Dan Archdeacon. For general graphs, a result of László Lovász from the 1960s, which has been rediscovered many times provides a O(∆E)-time algorithm for defective coloring graphs of maximum degree ∆.

## Definitions and terminology
### Defective coloring

A (k, d)-coloring of a graph G is a coloring of its vertices with k colours such that each vertex v has at most d neighbours having the same colour as the vertex v. We consider k to be a positive integer (it is inconsequential to consider the case when k = 0) and d to be a non-negative integer. Hence, (k, 0)-coloring is equivalent to proper vertex coloring.

### d-defective chromatic number

The minimum number of colours k required for which G is (k, d)-colourable is called the d-defective chromatic number, $\chi _{d}(G)$.
For a graph class G, the defective chromatic number of G is minimum integer k such that for some integer d, every graph in G is (k,d)-colourable. For example, the defective chromatic number of the class of planar graphs equals 3, since every planar graph is (3,2)-colourable and for every integer d there is a planar graph that is not (2,d)-colourable.

### Impropriety of a vertex

Let c be a vertex-coloring of a graph G. The impropriety of a vertex v of G with respect to the coloring c is the number of neighbours of v that have the same color as v. If the impropriety of v is 0, then v is said to be properly colored.

### Impropriety of a vertex-coloring

Let c be a vertex-coloring of a graph G. The impropriety of c is the maximum of the improprieties of all vertices of G. Hence, the impropriety of a proper vertex coloring is 0.

## Example

An example of defective colouring of a cycle on five vertices, $C_{5}$, is as shown in the figure. The first subfigure is an example of proper vertex colouring or a (k, 0)-coloring. The second subfigure is an example of a (k, 1)-coloring and the third subfigure is an example of a (k, 2)-coloring. Note that,
$\chi _{0}(C_{5})=\chi (C_{5})=3$
$\chi _{1}(C_{5})=3$
$\chi _{2}(C_{n})=1;\forall n\in \mathbb {N}$

## Properties

* It is enough to consider connected graphs, as a graph G is (k, d)-colourable if and only if every connected component of G is (k, d)-colourable.
* In graph theoretic terms, each colour class in a proper vertex coloring forms an independent set, while each colour class in a defective coloring forms a subgraph of degree at most d.
* If a graph is (k, d)-colourable, then it is (k′, d′)-colourable for each pair (k′, d′) such that k′ ≥ k and d′≥ d.

## Some results
### Every outerplanar graph is (2,2)-colorable

Proof: Let $G$ be a connected outerplanar graph. Let $v_{0}$ be an arbitrary vertex of $G$. Let $V_{i}$ be the set of vertices of $G$ that are at a distance $i$ from $v_{0}$. Let $G_{i}$ be $\langle V_{i}\rangle$, the subgraph induced by $V_{i}$. Suppose $G_{i}$ contains a vertex of degree 3 or more, then it contains $K_{1,3}$ as a subgraph. Then we contract all edges of $V_{0}\cup V_{1}\cup ...\cup V_{i-1}$ to obtain a new graph $G'$. It is to be noted that $\langle V_{0}\cup V_{1}\cup ...\cup V_{i-1}\rangle$ of $G'$ is connected as every vertex in $V_{i}$ is adjacent to a vertex in $V_{i-1}$. Hence, by contracting all the edges mentioned above, we obtain $G'$ such that the subgraph $\langle V_{0}\cup V_{1}\cup ...\cup V_{i-1}\rangle$ of $G'$ is replaced by a single vertex that is adjacent to every vertex in $V_{i}$. Thus $G'$ contains $K_{2,3}$ as a subgraph. But every subgraph of an outerplanar graph is outerplanar and every graph obtained by contracting edges of an outerplanar graph is outerplanar. This implies that $K_{2,3}$ is outerplanar, a contradiction. Hence no graph $G_{i}$ contains a vertex of degree 3 or more, implying that $G$ is (k, 2)-colorable. No vertex of $V_{i}$ is adjacent to any vertex of $V_{i-1}$ or $V_{i+1},i\geqslant 1$, hence the vertices of $V_{i}$ can be colored blue if $i$ is odd and red if even. Hence, we have produced a (2,2)-coloring of $G$.
Corollary: Every planar graph is (4,2)-colorable. This follows as if $G$ is planar then every $G_{i}$ (same as above) is outerplanar. Hence every $G_{i}$ is (2,2)-colourable. Therefore, each vertex of $V_{i}$ can be colored blue or red if $i$ is even and green or yellow if $i$ is odd, hence producing a (4,2)-coloring of $G$.

### Graphs excluding a complete minor

For every integer $t$ there is an integer $N$ such that every graph $G$ with no $K_{t}$ minor is $(t-1,N)$-colourable.

### Computational complexity

Defective coloring is computationally hard. It is NP-complete to decide if a given graph $G$ admits a (3,1)-coloring, even in the case where $G$ is of maximum vertex-degree 6 or planar of maximum vertex-degree 7.

## Applications

An example of an application of defective colouring is the scheduling problem where vertices represent jobs (say users on a computer system), and edges represent conflicts (needing to access one or more of the same files). Allowing a defect means tolerating some threshold of conflict: each user may find the maximum slowdown incurred for retrieval of data with two conflicting other users on the system acceptable, and with more than two unacceptable.