myRefs12.bib \AtEveryBibitem\clearlistlanguage
Graceful coloring is computationally hard
Abstract
Given a (proper) vertex coloring of a graph , say , the difference edge labelling induced by is a function defined as for every edge of . A graceful coloring of is a vertex coloring of such that the difference edge labelling induced by is a (proper) edge coloring of . A graceful coloring with range is called a graceful -coloring. The least integer such that admits a graceful -coloring is called the graceful chromatic number of , denoted by .
We prove that for every graph , where denotes the th term of the integer sequence A065825 in OEIS. We also prove that graceful coloring problem is NP-hard for planar bipartite graphs, regular graphs and 2-degenerate graphs. In particular, we show that for each , it is NP-complete to check whether a planar bipartite graph of maximum degree is graceful -colorable. The complexity of checking whether a planar graph is graceful 4-colorable remains open.
1 Introduction
Many branches of mathematics started out as problems in recreational mathematics which are easy to understand, yet challenging to solve. The story of graph theory is no different. The innocuous problem of coloring maps using only 4 colors gave birth to a thriving area of graph theory named graph coloring. The notion of graph labelling is a generalisation of graph coloring. Graph labelling is an area of immense theoretical interest and diverse practical applications, evident from Gallianβs dynamic survey [gallian]. Similar to how attempts to prove the four color conjecture lead to the historical origin or popularity of the area of graph colorings, study of graceful labelling and harmonious labelling lead to the boom of the area of graph labellings [gallian].
The definition of graceful labelling requires the notion of difference edge labelling induced by a vertex labelling. Given a vertex labelling of a graph , say , the difference edge labelling induced by is a function defined as for every edge of . A graceful labelling of a graph on edges is an injection such that the difference edge labelling induced by is an injection from to [gallian].
The most popular problem on graceful labelling is settling the infamous KΓΆtzig-Ringel-Rosa conjecture, better known as the graceful tree conjecture, which states that all trees are graceful. The graceful tree conjecture is far from resolved till date. Hence, the practical approaches to the problem includes resolving the conjecture for subclasses of trees on one hand, and resolving weaker versions of the conjecture on the other hand. One way to produce notions weaker than graceful labelling is to impose restrictions locally on vertex neighbourhoods rather than globally. This produces the notion of graceful coloring. A vertex labelling of a graph , say , is a graceful coloring of if (i) is an injection when limited to each vertex neighbourhood, and (ii) the induced difference edge labelling is an injection when limited to each vertex neighbourhood; formally, the restriction is an injection and is an injection for the closed neighbourhood of each vertex in . In other words, a graceful coloring of is a (proper vertex) coloring of such that the difference edge labelling induced by is a (proper) edge coloring of [bi_byers] (see Figure 1 for an example). The graceful coloring first appeared in Bi et al. [bi_byers], and was studied in more detail in Byersβ thesis [byers].
For , a graceful -coloring of is a graceful coloring of with range (i.e., ). The least integer such that admits a graceful -coloring is called the graceful chromatic number of , denoted by .
It is easy to observe that under a graceful coloring, no two neighbours of a vertex can get the same color. A (proper) coloring of a graph with this property is called a distance-two coloring. Hence, every graceful coloring is a distance-two coloring, but the converse is not true. The least number of colors required to produce a distance-two coloring of a graph is called the distance-two chromatic number of , and is equivalent to the chromatic number of the square graph . We denote the distance-two chromatic number of by . Obviously, .
We relate the graceful chromatic number of complete graphs to integer sequences. Throughout this paper, denotes the th term of the integer sequence A065825 in OEIS [a065825-oeis]. It is known that [laavanya_deviYamini].
In this paper, we prove that for every graph . In addition, we prove that graceful coloring problem is NP-hard for planar bipartite graphs, regular graphs and 2-degenerate graphs. We show that (i) for each , it is NP-complete to check whether a planar bipartite 3-degenerate graph of maximum degree is graceful -colorable, (ii) it is NP-complete to check whether a 3-regular 3-connected planar bipartite graph is graceful 5-colorable, and (iii) it is NP-complete to check whether a 2-degenerate graph of maximum degree 3 is graceful 4-colorable. The complexity of checking whether a planar graph is graceful 4-colorable remains open.
For brevity, we present overviews in the paper, and relegate details to the extended version of the paper.
2 Results
2.1 Graceful Coloring and Integer Sequences
By definition, is the least integer for which contains a subset of cardinality such that no three distinct elements of satisfy . This imply the following.
Theorem 1 ([laavanya_deviYamini]).
for every positive integer . β
If is a distance-two -coloring of a graph and is a graceful coloring of the complete graph with vertex set , then is a graceful coloring of . Thus, we have the following theorem.
Theorem 2.
for every graph . β
2.2 Complexity of Graceful Coloring
The problem Graceful -Colorability is defined as follows.
Graceful -Colorability
Instance: A graph .
Question: Does admit a graceful -coloring?
First, we show that Graceful -colorablity of planar graphs is NP-complete for all . As a prelude to the reduction, we point out the following.
Theorem 3.
Let , and let be a graph with minimum degree . Then, is graceful -colorable if and only if is distance-two 4-colorable. β
Construction 1.
Parameter: An integer (not part of input).
Input: A 3-regular graph .
Output: A graph of maximum degree .
Guarantee: is graceful -colorable if and only if is distance-two 4-colorable.
Steps: Introduce a copy of .
Attach leaf vertices at each vertex of the copy of .
Proof of Guarantee (overview).
Suppose that is graceful -colorable. That is, admits a graceful -coloring . If is a vertex of colored 3 by , then has at most neighbours in . As a result, no non-leaf vertex of can get color 3 (because ). Similarly, each non-leaf vertex of cannot get any of the colors , and thus can get only the colors or under . Hence, the restriction of to is a graceful coloring and in particular a distance-two coloring of that uses only 4 colors (namely, and ). Therefore, is distance-two 4-colorable.
Conversely, suppose that is distance-two 4-colorable. Then, there exists a distance-two 4-coloring of with color paletter (i.e., ). We show that can be extended into a graceful -coloring of . For each non-leaf vertex of , define , and color the leaf neighbours of in as follows: if , then color the leaf neighbours of with colors in a bijective fashion; if , then color the leaf neighbours of with colors in a bijective fashion; if , then color the leaf neighbours of with distinct colors from . We complete the proof by showing that is a graceful -coloring of . β
Observe that for , the output graph in Construction 1 is the same as the input graph (i.e., ). Moreover, the construction obviously takes only time polynomial in the input size. Also, observe that Construction 1 preserves planarity and bipartiteness. Further, Feder, Hell and Subi [feder] proved that it is NP-complete to check whether a 3-regular 3-connected planar bipartite graph is distance-two 4-colorable. Thanks to Construction 1, this imply the following.
Theorem 4.
Graceful 5-colorablity is NP-complete for 3-regular 3-connected planar bipartite graphs. β
Theorem 5.
For , Graceful -colorablity is NP-complete for planar bipartite graphs of maximum degree . β
Next, we show that Graceful 4-colorablity is NP-complete by reducing from the following problem.
Positive Not-All-Equal -Sat E4
Instance: A set of variables and a set of clauses over are specified, where each clause consists of three distinct variables, and each variable appears in exactly four clauses (the formula contains no negations).
Question: Does there exist a truth assignment for such that each clause contains at least one true and at least one false literal?
Darmann and DΓΆcker [darmann_docker] demonstrated the NP-Completeness of this problem.
Theorem 6.
Graceful 4-colorablity is NP-complete for the class of 2-degenerate graphs of maximum degree 3.
Proof overview.
Given a boolean formula which is an instance of Positive Not-All-Equal -Sat E4, we construct a graph by taking the variable-clause incidence graph of the formula , and then replacing each variable vertex and incident edges by the variable gadget (see Figure 2) and replacing each clause vertex and incident edges by the clause gadget (see Figure 3).
![Refer to caption](https://cdn.statically.io/img/arxiv.org/extracted/5705228/variable_gadget.png)
We observe that for every graceful 4-coloring of ,
(i) and not all equal for each , and
(ii) for all .
Using these properties, we show that is a yes instance of Positive Not-All-Equal -Sat E4 whenever admits a graceful 4-coloring .
In the other direction, we show that if is a yes instance of Positive Not-All-Equal -Sat E4, then a graceful 4-coloring of can be obtained using the colorings schemes shown in Figure 4 and Figure 5.
Consider a truth assignment for the formula such that each clause contains a true variable and a false variable.
If a variable is true under , then color the corresponding variable gadget by the coloring shown in Figure 4.
If a variable is false under , then color the corresponding variable gadget using the βoppositeβ colors of that shown in Figure 4 (i.e., color each vertex in the gadget using the color ).
This can be extended to a graceful 4-coloring of by coloring each clause gadget by one of the colorings in Figure 5 or a suitable angular rotation of them.
β
![Refer to caption](https://cdn.statically.io/img/arxiv.org/extracted/5705228/variable_gadget_with_col.png)
![Refer to caption](https://cdn.statically.io/img/arxiv.org/extracted/5705228/clause_gadget_with_col.png)