Finding a domatic partition of size 1 is trivial: let V_1 = V. Finding a domatic partition of size 2 (or determining that it does not exist) is easy: check if there are isolated nodes, and if not, find a weak 2-coloring. However, finding a maximum-size domatic partition is computationally hard. Specifically, the following
decision problem, known as the
domatic number problem, is
NP-complete: given a graph G and an integer K, determine whether the domatic number of G is at least K. Therefore, the problem of determining the domatic number of a given graph is
NP-hard, and the problem of finding a maximum-size domatic partition is NP-hard as well. There is a polynomial-time
approximation algorithm with a logarithmic approximation guarantee, that is, it is possible to find a domatic partition whose size is within a factor O(\log |V|) of the optimum. However, under plausible complexity-theoretic assumptions, there is no polynomial-time approximation algorithm with a sub-logarithmic approximation factor. More specifically, a polynomial-time approximation algorithm for domatic partition with the approximation factor (1-\epsilon) \ln |V| for a constant \epsilon > 0 would imply that all problems in
NP can be solved in slightly super-polynomial time n^{O(\log \log n)}. ==Comparison with similar concepts==