
In
graph theory
In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, an exact coloring is a
(proper) vertex coloring in which every pair of colors appears on exactly one pair of adjacent vertices.
That is, it is a
partition of the vertices of the graph into disjoint
independent sets such that, for each pair of distinct independent sets in the partition, there is exactly one edge with endpoints in each set.
[.][.]
Complete graphs, detachments, and Euler tours
Every ''n''-vertex
complete graph
In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices ...
''K''
''n'' has an exact coloring with ''n'' colors, obtained by giving each vertex a distinct color.
Every graph with an ''n''-color exact coloring may be obtained as a ''detachment'' of a complete graph, a graph obtained from the complete graph by splitting each vertex into an independent set and reconnecting each edge incident to the vertex to exactly one of the members of the corresponding independent set.
When ''k'' is an
odd number
In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is a multiple of two, and odd if it is not.. For example, −4, 0, 82 are even because
\begin
-2 \cdot 2 &= -4 \\
0 \cdot 2 &= 0 \\
41 ...
, A path or cycle with
edges has an exact coloring, obtained by forming an exact coloring of the complete graph ''K''
''k'' and then finding an
Euler tour of this complete graph. For instance, a path with three edges has a complete 3-coloring.
Related types of coloring
Exact colorings are closely related to
harmonious colorings (colorings in which each pair of colors appears at most once) and
complete colorings (colorings in which each pair of colors appears at least once). Clearly, an exact coloring is a coloring that is both harmonious and complete. A graph ''G'' with ''n'' vertices and ''m'' edges has a harmonious ''k''-coloring if and only if
and the graph formed from ''G'' by adding
isolated edges has an exact coloring. A graph ''G'' with the same parameters has a complete ''k''-coloring if and only if
and there exists a subgraph ''H'' of ''G'' with an exact ''k''-coloring in which each edge of ''G'' − ''H'' has endpoints of different colorings. The need for the condition on the edges of ''G'' − ''H'' is shown by the example of a four-vertex cycle, which has a subgraph with an exact 3-coloring (the three-edge path) but does not have a complete 3-coloring itself.
Computational complexity
It is
NP-complete
In computational complexity theory, a problem is NP-complete when:
# it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by tryin ...
to determine whether a given graph has an exact coloring, even in the case that the graph is a
tree
In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
.
However, the problem may be solved in
polynomial time
In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
for trees of bounded
degree
Degree may refer to:
As a unit of measurement
* Degree (angle), a unit of angle measurement
** Degree of geographical latitude
** Degree of geographical longitude
* Degree symbol (°), a notation used in science, engineering, and mathemati ...
.
[.]
References
{{reflist
Graph coloring