Parameterized Reunion with Achromatic Number
Abstract
In this paper, we study the Achromatic Number problem. Given a graph and an integer , the task is to determine whether there exists a proper coloring of , using at least colors, in which every pair of distinct colors appears on the endpoints of some edge. It was established early on that the problem is fixed-parameter tractable (FPT)– even before the formal development of parameterized complexity. In fact, Farber, Hahn, Hell, and Miller [JCTB, 1986] devised an algorithm with a running time of . Although the exact form of was not specified, it appears to be at least doubly exponential in . In our work, we first present an algorithm with an explicit dependence on , and then introduce another algorithm that is parameterized by the vertex cover number of the graph. More formally, we show the following.
-
Achromatic Number is solvable in time .
-
Achromatic Number admits a polynomial kernel when the input is restricted to a -degenerate graph and a more efficient kernel on trees.
-
We also study the parameterized complexity of the problem with respect to Vertex Cover and show that it admits an FPT algorithm running in time , where is the size of a vertex cover.
Keywords and phrases:
Achromatic number, Coloring, Fixed-parameter tractability, Kernelization, Lower bound, W-hardnessFunding:
Satyabrata Jana: Supported by the Engineering and Physical Sciences Research Council (EPSRC) via the project MULTIPROCESS (grant no. EP/V044621/1).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Fixed parameter tractabilityEditors:
Ho-Lin Chen, Wing-Kai Hon, and Meng-Tsung TsaiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In this paper, we revisit the Achromatic Number problem that had a fixed parameter tractable (FPT) algorithm even before the concept of parameterized complexity was established, as we currently understand it. A proper coloring of a graph is an assignment of colors to the vertices such that no two endpoints of an edge are assigned the same color. A complete coloring of a graph is a proper coloring of a graph such that for any pair of distinct colors, there exists a pair of adjacent vertices that have been assigned those colors. The achromatic number of a graph , denoted by , is the maximum number of colors that can be used in a complete coloring of . In this paper, we study the following problem.
| Achromatic Number | Parameter: |
Input: A graph on vertices and edges and an integer .
Question: Is ?
The computational complexity of Achromatic Number was first considered by Yannakakis and Gavril in 1980, who showed that the problem is NP-complete [22, Corollary 2]. The authors also observed that, unlike the classical Chromatic Number problem, which is known to be NP-complete even for (that is, whether the input graph can be properly colored with colors), Achromatic Number cannot be shown to be NP-complete for a fixed value of . Toward this, they show that for a graph , if and only if there is a subset of size at most such that . This immediately leads to an algorithm with running time . In the modern terminology of parameterized complexity (PC), this is an XP algorithm for Achromatic Number. Thus, a natural question is whether there exists an algorithm with running time , that is, whether the problem admits an FPT algorithm.
A natural question is whether there exists a uniform polynomial-time algorithm for every fixed . That is, do we have time algorithm where does not depend on . (Pre PC Era)
In modern terminology, does there exist an algorithm with running time , that is, does the problem admit an FPT algorithm. (Post PC Era)
In 1986, Farber, Hahn, Hell and Miller [10] designed a “linear time algorithm” for Achromatic Number. That is, an algorithm with running time ; which is actually an algorithm with running time . This established the parameterized complexity of Achromatic Number. The exact value of in the running time is not given and it appears to be at least doubly exponential in . This algorithm was built on an earlier work of Hell and Miller [14] done in 1976 who showed that the number of irreducible graphs (without any twins) with is upper bounded by some function . These results are the starting point of our research. Our aim is to design an algorithm with explicit dependence on by a function that grows as slowly as possible. Furthermore, we also explore the problem with a structural parameter.
Related Works.
Bounds on Achromatic Number in terms of other graph variants like vertex cover number and independence number have been studied [5, 12]. The Pseudo-achromatic Number problem, a related problem, was introduced in 1969 [13] and has been studied extensively [3, 4, 21]. The Pseudo-achromatic Number problem or Graph Complete Partition problem checks whether an undirected graph can be partitioned into classes such that every pair of classes is connected by an edge. Unlike the achromatic number problem, we do not require these classes to be independent sets. The pseudo-achromatic number may strictly exceed the achromatic Number even for a family of trees [9]. Halldórsson et al studied the problem from the approximation viewpoint, giving tight lower and upper bounds on its approximability. The problem has a kernel that also establishes that it is FPT parameterized by the solution size [7]. Another related problem is the Harmonious Coloring where the objective is to find a proper coloring of the graph such that each pair of colors appears together on at most one edge [15]. It is known to be NP-hard on trees, interval and permutation graphs [8, 2, 20]. Georges investigated the problem on paths, cycles, complete graphs and complete bipartite graphs [11]. Kolay et al [17] studied it from an FPT perspective and showed that it is FPT parameterized by the solution size as well as the vertex cover number of the graph. They also gave an exact exponential time algorithm in split graphs.
1.1 Our Results and Methods with Solution Size as a Parameter
Our first main result is the following FPT algorithm for Achromatic Number.
Theorem 1.
Achromatic Number can be solved in time.
The idea behind the proof of Theorem 1 is motivated by results in the area of approximation algorithms for an optimization variant of Achromatic Number. Kortsarz and Krauthgamer gave an algorithm that approximates the achromatic number within a ratio of for general graphs [18]. This algorithm in turn was motivated by an earlier combinatorial work of Máté [19] on Achromatic Number on irreducible graphs. Our parameterized algorithm builds on this approximation algorithm and incorporates new ideas and concepts in several places to transform it into an FPT algorithm. We also mention in passing that Kortsarz and Krauthgamer [18] showed that there is no -approximation algorithm for every fixed , unless P=NP.
The next natural question is whether the problem admits a polynomial kernel. That is, in polynomial time, could we replace the given instance by an equivalent instance of size polynomial in ? We do not know the answer to this question, and we leave this as a challenging open problem. However, could we say something when the input instances are restricted to some structured graph classes? In this regard, we first mention that Achromatic Number is known to be NP-complete even when the input graph is a tree [6]. Thus, researchers have considered Achromatic Number on several classes of trees [10] and designed polynomial time algorithms on these graph classes. In this paper, we design polynomial kernels for Achromatic Number on trees and -degenerate graphs and obtain the following results.
Theorem 2 ().
Achromatic Number admits a kernel of size on forests. 111Due to space constraints, the proofs of results marked with have been omitted and will appear in the full version of the paper.
Theorem 3.
Achromatic Number admits a kernel of size on -degenerate graphs.
1.2 Our Results and Methods for Structural Parameterization
We further study the Achromatic Number problem with respect to other parameters. We define the problem Achromatic Number/, where is a graph class, as follows.
| Achromatic Number/ | Parameter: |
Input: An undirected graph , a modulator of size to and a positive integer .
Question: Is ?
Recall that Achromatic Number is known to be NP-complete even when the input graph is a tree [6]. This immediately rules out the treewidth or the size of the feedback vertex set as parameters.
Modulator to edgeless graphs.
Our parameter of study is the vertex cover number of the graph, that is, a vertex set whose deletion results in an edgeless graph. Here, is the family of edgeless graphs. Our result in this direction is the following.
Theorem 4.
Achromatic Number/VC can be solved in time.
To prove Theorem 4, we first show that the achromatic number of the graph is bounded by . Then, we guess the color of the vertices in the modulator (one that will result in a solution). It is possible that there exists a pair of colors that is not assigned to the endpoints of any edge, for e.g., there may not be an edge between color classes and . To address this issue, we utilize a vertex outside the modulator and assign it either color or , thereby resolving the pair formed by color classes and (in essence, we resolve the conflict between color classes and that arises because there is no edge between the color classes). We solve this by reducing the problem to an instance of Subgraph Isomorphism (given a host graph and a pattern graph , find a copy of in ), where the pattern graph has size and treewidth . It is known that Subgraph Isomorphism can be solved in time , where is the treewidth of the pattern graph, leading to the desired running time of our algorithm.
2 Preliminaries
In this study, we examine undirected graphs. For a given graph , we represent its set of vertices as and its set of edges as . When the context allows, we will refer to these simply as and . refers to the number of vertices and represents the number of edges. For any vertex , the set of vertices adjacent to in is represented by . In particular, denotes the open neighborhood of in . We will abbreviate this to when the graph is clear from the context. The degree of a vertex , denoted as , refers to the number of vertices in its neighborhood, i.e., . We call a graph irreducible or twin-free if any pair of distinct vertices has distinct open neighborhoods. A graph is called -degenerate if every subgraph has a vertex with degree at most . An induced matching or an independent matching is a set of edges such that no two endpoints of distinct edges of the matching are adjacent to each other. A semi-independent matching is a set of edges such that the sets and are independent and for any and with , is not adjacent to (see Figure 1). We call a matching maximal if, after adding any edge in to , does not remain a matching. An independent set is a set of vertices that are pairwise non-adjacent. An independent set is called maximal if adding any vertex from to destroys its property of being an independent set. For a given proper coloring of a graph, a color class refers to a set of vertices that are assigned the same color. A partial complete coloring of is a complete coloring of a subset of vertices of . A partial complete -coloring is a partial complete coloring with colors. A greedy independent partition of a graph is an ordered partition of the vertex set into independent sets, constructed through a greedy process, prioritizing the largest set first while ignoring the order of the rest. At each step, a maximal independent set is selected from the remaining vertices and the process continues until all vertices are covered. The size of a greedy independent partition is the number of independent sets in the partition.
3 FPT algorithm for Achromatic Number
In this section, we give an FPT algorithm for Achromatic Number parameterized by solution size in general graphs. We start with describing our kernelization procedure that takes an instance of Achromatic Number as input and in time return an equivalent instance (kernel). We prove the following result.
Theorem 5.
Achromatic Number admits a kernel of size . And moreover we can find it in time where is the number of edges in the given graph.
Our kernelization procedure for a given instance involves the following steps. Let be an equivalence relation defined as follows: for a vertex , the class contains the vertices .
-
1.
If , we return as kernel.
-
2.
Using Lemma 13, we check in time whether the number of equivalence classes exceeds , or else obtain their count .
-
(a)
If the number of equivalence classes exceeds , return a trivial YES-instance of Achromatic Number.
- (b)
-
(a)
We now show the correctness of this procedure. Toward that, we have to prove two things. First, we need to show that if the number of equivalence classes in is more than then (Lemma 15). And secondly, we have to show that after exhaustive application of the Reduction Rules 2 and 1 the size of gets reduced to (Lemma 16). An example of a trivial YES instance of Achromatic Number is . We now describe the Reduction 1 that removes all isolated vertices from the graph. The proof of the rule follows from the fact that removing isolated vertices from the graph will not affect its achromatic number, since no edge in the graph is incident to that vertex.
Reduction Rule 1.
If has an isolated vertex , then return the instance .
Now mention two known facts regarding complete coloring of a graph.
Lemma 6 ([18, Lemma 1.1]).
A partial complete coloring in a graph can be extended to a complete coloring of in time .
Lemma 7 ([18, Lemma 1.4]).
Given a semi-independent matching of a graph of size at least , a partial complete -coloring can be computed in time .
Lemma 8.
If a graph has a semi-independent matching of size , then .
We now prove the following crucial lemma.
Lemma 9.
Let be an irreducible graph with . Then .
Proof.
Let be an irreducible graph. We show that if has more than vertices then . Moreover, we design an algorithm for such a graph, i.e., we give a complete coloring with at least colors. We first describe the algorithm briefly.
We start with finding a greedy independent partition . If the size of is at least , we have that (by Lemma 17). Moreover gives a complete coloring with at least colors by assigning a distinct color to each set. Next, we focus on the first independent set in . At each recursive step , we construct as follows:
-
We fix an arbitrary vertex ordering.
-
Let and be the two minimal vertices with respect to the ordering.
-
We identify a distinguishing vertex that is adjacent to exactly one of and .
-
Then we partition into () and (not intersect ).
-
We set if ; otherwise, set .
This process yields nested independent sets , forming either a partial complete coloring or a semi-independent matching, both can be extendable to a complete coloring. We also store a pair of sets and of witness vertices. Simultaneously we keep two index set and . Next we show that for the Algorithm 1 always terminates. In addition we show that either of the cases or leads to a complete coloring with at least colors (Claims 11 and 12). A complete description of this above mentioned procedure is given in Algorithm 1. Now we show that Algorithm 1 always terminates. Assume that inside Algorithm 1 as otherwise it returns so terminates. Note that if the Algorithm 1 does not terminate at Step 3 then the while loop (Step 11) runs at most steps as per our construction of the set and . Now we show that either or in the output of Algorithm 1.
Claim 10.
Let be an irreducible graph with more than vertices. If the Algorithm 1 outputs the pair of sets and then either or .
Proof.
We prove this by contradiction. Assume is an irreducible graph with vertices and the Algorithm 1 outputs the pair of sets and with or . Let denote the independent set obtained after applying Step 14 times and Step 15 times, starting from . We claim that
| (1) |
Base case:
When , we have , so the inequality trivially holds.
Inductive step:
By the construction of the algorithm:
By induction hypothesis:
Thus, in either case, i.e., or Equation 1 is satisfied. Now, since and , the loop terminates after at most steps. Therefore, the set has size at most 4, but also satisfies:
Since , we have , giving . Using the standard inequality for large , and the condition , we have . This contradicts our assumption that . Therefore, either or must hold.
We now compute a pair of sets and as follows: and , where and be the set returned by Algorithm 1.
Claim 11.
If then .
Proof.
Since , there are at least tuples of the form for . For each such tuple, let denote the vertex between and that is not adjacent to . We assign a new color to the pair , thereby assigning at least new colors. We now show that this coloring forms a partial -complete coloring. From the construction of in Step 14 of the algorithm, we know that each vertex , for , is adjacent to both and for all . Thus, for any pair of colors and with , the vertex (colored with ) is adjacent to both and , at least one of which is colored with . Therefore, there is an edge between every pair of color classes assigned in Step 7. By applying Lemma 6, this partial -complete coloring can be extended to a complete coloring of size at least .
Claim 12.
If then .
Proof.
Let be the color that appears most frequently among the colors assigned to the vertices for all . Define the subset as the set of all pairs such that . Since the graph is colored using at most colors, it follows by the pigeonhole principle that . We now construct a semi-independent matching from . For each pair , include the vertex and the one among and to which it is adjacent. Note that, by the definition of , any vertex in with is not adjacent to . Therefore, the matching constructed in this way is semi-independent and has size at least . Hence, if , then we can compute a semi-independent matching of size at least . By applying Lemma 8, we conclude that .
The correctness of Step 3 follows from Lemma 17. In Claim 10, we show that if the Algorithm 1 outputs the pair of sets and then either or . In both the cases, we have that (by Claim 11 and 12). Hence we are done with showing that if the given graph is irreducible and more than vertices then . This completes the proof.
Recall that was an equivalence relation defined as follows: for a vertex , the class contains the vertices .
Lemma 13 ([10, Theorem 3.3]).
Given a graph and an integer , in time , we can
-
determine if has at least equivalence classes, or
-
build all the equivalence classes.
Now we define a rule that bounds the number of vertices to each equivalence class.
Reduction Rule 2.
If , then delete . Return the instance .
The correctness of the Reduction 2 follows from the following claim.
Claim 14.
Reduction 2 is safe.
Proof.
In the forward direction, assume that is a YES-instance of Achromatic Number. Then, . If then trivially holds, as deleting any vertex can decrease the achromatic number by at most one.
So we can assume that . Let be an equivalence class with at least vertices . Without loss of generality, assume that . By the definition of an equivalence class, we have , . On the contrary, assume that . Let be the color classes defined by the complete coloring of . More precisely, for each , the set is the set of all vertices in with color . Additionally, assume that . Now, if for all , we have an edge between a pair of vertices in and , excluding , then we are done. Else, there exists a color class such that, on removal of , there is no edge between any pair of vertices in and . Assume that is a vertex in such that . Note that in this case the vertices are present in the remaining color classes .
Thus by the pigeon hole principle, there exist and in , with , which belong to the same color class, say . Because , removing from will not affect the achromatic number of as serves the same purpose as . Now, we can add to . Since and belong to the same equivalence class, they are not connected by an edge and therefore , along with the vertices of forms an independent set. The edge ensures an edge between the color classes and , and hence the achromatic number of the graph is . Thus, is also a YES-instance.
In the backward direction, let be a YES-instance of Achromatic Number. Then, . Let , where be the partition of color classes corresponding to a complete coloring of . If for some , does not have a neighbor in the vertices corresponding to , then we can assign the color to and get a complete coloring of with at least colors. Otherwise, for each , the color class contains a vertex from . Then, we assign a new color to and obtain a complete coloring of with colors. Hence, in both cases, we obtain a complete coloring on with at least colors. Thus, is a YES-instance.
Lemma 15.
If the number of equivalence classes in is strictly greater than , then .
Proof.
Let be partitioned into equivalence classes. Assume . Construct a subgraph , where contains exactly one arbitrarily chosen vertex from each equivalence class. Clearly, . Now we show that no two distinct vertices in have the same open neighborhood. Suppose, for contradiction, that there exist distinct vertices such that . Then, by the definition of the equivalence relation, and must belong to the same equivalence class. However, since contains exactly one vertex from each equivalence class, this contradicts the assumption that both and are in . Therefore, all vertices in have distinct open neighborhoods. Therefore, is an irreducible graph. Since , it follows that . By applying Lemma 9, we obtain . This gives a partial complete coloring of with at least colors. Finally, by applying Lemma 6, we conclude that .
Let be an instance where none of Reduction Rules 1 and 2 is applicable. Then each equivalence class is bounded by . This imply the following lemma.
Lemma 16.
Lemma 17.
For any graph , if size of greedy independent partition is at least , then .
Proof.
We construct a greedy independent partition of , say . We color each independent set with a different color. Since the size of the greedy independent partition is at least , we use at least colors. Now, from the construction of the greedy independent partition, observe that all vertices in outside must be adjacent to at least one vertex in . Similarly, for each , the neighborhood of all vertices in includes all vertices in . Thus, there exists no pair of independent sets in a greedy independent partition of such that their union is also an independent set. Hence, our coloring is a complete coloring of size at least , that is, .
FPT algorithm for Achromatic Number.
We first compute a kernel of size at most in time (by Theorem 5). It is easy to observe that if a graph admits a complete coloring with at least colors, then there exists an induced subgraph with at most vertices that also admits a complete -coloring. Therefore, on the kernelized instance, we can perform a brute-force search: enumerate all subsets of at most vertices and check whether any of them admits a complete coloring with at least colors. Each such check can be performed in time. If such a subgraph is found, we return YES for the original instance (by Lemma 6); otherwise, we return NO. The kernelization step takes time, and the brute-force step takes at most time. Hence, the total running time of the algorithm for solving Achromatic Number is .
Theorem 1. [Restated, see original statement.]
Achromatic Number can be solved in time.
4 Parameterized by Vertex Cover
In this section, we study the parameterized complexity of Achromatic Number with respect to a structural parameter that is a modulator to edgeless graphs (also known as vertex cover). We call this version of the problem Achromatic Number/VC which is formally defined below.
| Achromatic Number/VC | Parameter: |
Input: An undirected graph , a set of size such that is an independent set and a positive integer .
Question: Is ?
The following is the main result of this section.
Theorem 4. [Restated, see original statement.]
Achromatic Number/VC can be solved in time.
Observation 18.
If has a vertex cover of size at most , then .
Proof.
Let be a vertex cover of size at most in . Suppose, for a contradiction, . Then, there exists a complete coloring using at least colors. Since , at most color classes of contain the vertices of the set . This implies that there are at least two color classes, say and , which do not contain any vertices of . Now the subgraph of induced by the vertices of is an independent set, which implies that there is no edge across the color classes and . This contradicts the fact that is a complete coloring.
An input instance of our problem is , where is a vertex cover of size at most . Furthermore, assume that is a YES instance and is a hypothetical solution where is a partition of vertices into independent sets and, for each pair there is a pair of vertices and such that . Our ultimate objective is to get . To do this, we try to obtain as much information as possible about in time . Observe that if is an empty set, then is a YES instance if and only if , and we can obtain by simply setting . In what follows, we assume that we are given an input and a partition of , and our problem is to test whether can be extended to the desired partition . More specifically, we test whether there is a feasible solution, that is, partition of such that , for each . This leads us to the following problem.
| Disjoint Achromatic Number/vc | Parameter: |
Input: A graph , a set of size at most such that is an independent set, an integer , and a partition of .
Question: Does there exist a solution with the requisite properties that extends ?
We use to denote an instance of Disjoint Achromatic Number/vc.
Our next lemma formally proves our discussion by showing that Achromatic Number/VC and Disjoint Achromatic Number/vc are FPT equivalent. That is, Achromatic Number/VC is FPT if and only if Disjoint Achromatic Number/vc is FPT.
Lemma 19.
Let be a graph and be a vertex cover of size at most . For any integer , is a YES-instance of Achromatic Number/VC if and only if either is a YES-instance or there exists a non-empty set such that and is a YES-instance of Disjoint Achromatic Number/vc, for some partition of or respectively.
Proof.
The backward direction is obvious due to the definition of Disjoint Achromatic Number/vc. If either or for some is YES, then by definition we have a feasible solution with at least colors that extends .
In the forward direction, let be a YES instance of Achromatic Number/VC, then there exists a partition of , say , with , such that between any two pairs of color classes and , , there exist vertices and with . Observe that there can be at most one color class that does not contain any vertices from . Now there are two cases.
- Case 1.
-
Every color class intersects . In this case, we define a partition of as follows. For each the set . Hence is a YES instance.
- Case 2.
-
There is a color class that does not intersect . Wlog, assume that is such a color class. Note . Observe that for every set , , there is a vertex in that has a neighbor in . There may be many vertices that has a neighbor in but we choose an arbitrary vertex that has a neighbor in . In this process, for each , , we find a vertex . Let , where . As , so . Clearly, is a vertex cover of size at most . Now we define a partition of as follows. For , define , for all other , we define the set . Hence is a YES instance.
Next, we aim to generate a collection of many instances for Disjoint Achromatic Number/vc from an input instance of Achromatic Number/VC. First, for each partition of , we include an instance into . Next, consider the equivalence relation defined for Lemma 13. Given that , it follows that the number of equivalence classes is at most . Thus, for any pair of vertices in the same equivalence class, we have . Let be a set of vertices formed by arbitrarily choosing a vertex from each equivalence class. Since the number of equivalence classes is at most , it follows that . Now for each subset where , and for each partition of , we add an instance to . Therefore, the total number of instances is bounded by . The following claim is derived from the arguments of the proof of Lemma 19 which basically tells that these two problems are FPT equivalent.
Claim 20.
is YES instance if and only if one of the instances of is YES.
4.1 Algorithm for Disjoint Achromatic Number/vc
Let be an instance of Disjoint Achromatic Number/vc, where . Our algorithm works as follows. First, the algorithm performs a simple sanity check reduction rule. In essence, it checks whether is valid.
Reduction Rule 3.
Return that is a NO instance of Disjoint Achromatic Number/vc, if one of the following holds:
-
1.
and .
-
2.
There is a set in such that is not an independent set.
-
3.
There is a pair of sets and in such that is an independent set.
Lemma 21.
Reduction Rule 3 is safe.
Proof.
-
1.
If , then is an independent set. If there are at least 2 color classes, then there is no edge going across any pair of color classes. Therefore, is a NO instance of Disjoint Achromatic Number/vc for .
-
2.
If there is a set in such that is not an independent set, then if we extend to , a partition of , we get which is not an independent set. This violates the property of complete coloring.
-
3.
If there are two sets and in , then an edge that goes across the pair of color classes and must have endpoints in and , and or and . However, the graph induced on is an independent set. Therefore, is a NO instance of Disjoint Achromatic Number/vc.
Now we describe our algorithm. We first find the bad pairs in . We say that a pair is a bad pair if and only if induces an independent set in . It is easy to observe that the number of bad pairs is at most .
We now construct two graphs; one is the host graph, denoted by , and another is the pattern graph satisfying the condition as follows: has a subgraph isomorphic to if and only if is an YES-instance. Let be the number of bad pairs in and . See Figure 2 and Figure 3 for an illustration of the construction.
Construction of host graph
-
1.
We add two sets and , each of the vertices in corresponding to each bad pair in .
-
2.
We add a set of vertices to , one for each vertex in .
-
3.
We add a set of vertices for each in .
-
4.
We add cliques , each of size in . For each clique take an arbitrary vertex in it and make it adjacent to .
-
5.
We add a clique of size to . Choose an arbitrary vertex in and make it adjacent to each vertex in .
-
6.
Add the set of edges to .
-
7.
Add the set of edges to .
-
8.
For any pair of integers and , we add an edge between and a vertex , where is a bad pair corresponding to or if (i) has no neighbor in and (ii) has a neighbor in .
Observe here that in step 8 when we add an edge between and a vertex , if the vertex is assigned a color , that is, is added to the partition then it satisfies the bad pair corresponding to . Here, we say that a vertex satisfies a bad pair when its addition to one of the partitions of the pair introduces an edge between the pair. Our goal is to check if there exists an assignment of colors to the vertices in that satisfies all the bad pairs.
We create many pattern graphs as follows: Let be a minimal set of vertices in such that (i) for each , (ii) for any . Clearly . We guess the value of . Then we guess numbers such that their sum is . We use the following fact to bound the number of such partitions.
Fact 1.
For any positive integers and the number of tuples of positive integers whose sum is equals .
Let us guess the value of and numbers whose sum equals . Each value is essentially the number of bad pairs that a vertex will satisfy privately. We will later describe the notion of satisfying privately. In the following, we describe how to construct a pattern graph for such a guess. Putting in Fact 1, we can decide that the number of such partitions is at most . Let denote the set of all pattern graphs.
Construction of pattern graph : For
-
1.
We add two sets and , each of the vertices in .
-
2.
We add a set of vertices to .
-
3.
We add a set of vertices to .
-
4.
We add cliques , each of size 50 in . For each clique take an arbitrary vertex in it and make it adjacent to .
-
5.
We add a clique of size 100 in . Choose an arbitrary vertex in and make it adjacent to each vertex in .
-
6.
Add the set of edges to .
-
7.
Add the set of edges to .
Claim 22.
.
Proof.
Consider the graph without copies of cliques and . Let be the tree decomposition of . The treewidth of is as it is a tree. We add the cliques and to every bag of . This gives us a tree decomposition of with a constant treewidth.
Observation 23.
.
Proof.
We know that , and . There are cliques of size each and a clique of size . Thus, .
The following lemma proves the correctness of our algorithm.
Lemma 24.
is a YES instance of Disjoint Achromatic Number/vc if and only if there exists a subgraph of which is isomorphic to for some .
Proof.
Assume is a YES instance of Disjoint Achromatic Number/vc. Then there is a partition of that can be extended to a partition of (each part of a partition corresponds to a color class) such that there is an edge across any pair of color classes in the partition . We show the existence of a pattern graph that is isomorphic to a subgraph of . We construct a subgraph of graph as follows:
-
In the graph , for each set , keep only the vertex where the vertex corresponding to in gets color in the solution and delete other vertices of
-
Delete the edges of to those vertices of that are adjacent to some vertex , where and . Now no two vertices have any common neighbor.
-
Let be the number of neighbors of in , for .
-
If , then we also delete
-
After this step let be the vertices remaining from vertices of the form
-
Now in keep only the vertices such that has neighbor of the form .
-
In the set keep only vertices such that it has a neighbor of the form . Let the remaining vertices be .
-
Delete all the isolated .
We will show that this constructed subgraph is isomorphic to a pattern graph corresponding to the values . We show the isomorphism as follows.
-
For every , we map .
-
Now both have neighbors in respectively. Suppose is adjacent to . Then we have
-
Correspondingly
-
For we have .
-
The which is neighbor of gets mapped to the which is neighbor of
-
in gets mapped to the in
Conversely, suppose that there is a subgraph of that is isomorphic to some pattern graph . Since is the largest clique in , it is isomorphic to the in . The set in is isomorphic to a subset of the set in , as the vertices of both sets are neighbors of the cliques and copies of . Every vertex is adjacent one vertex in . Thus at most one vertex from each is mapped to a vertex in . Now for each set consider the vertex that was mapped to a vertex in . It has neighbors in and hence this subset of is mapped to in . Similarly, the corresponding subset of is mapped to in . Since, the pattern graph is isomorphic to a subgraph of and there exists at most one vertex in each in that has private neighbors in . Since , the selected vertices in in total have neighbors in , which implies that each vertex in has a unique neighbor in . Thus, the neighborhood of the mapped vertices in in is exactly . An edge in implies that the vertex when colored with color satisfies the bad pair corresponding to in . Thus, all the bad pairs in are being satisfied. Therefore, we can conclude that is a YES instance.
Fact 2.
[1, Theorem 6.3] Let be a directed or an undirected graph on vertices with treewidth . Let be a (directed or undirected) graph. A subgraph of isomorphic to , if one exists, can be found in the expected time and in the worst-case time .
Disjoint Achromatic Number/vc ()
(It checks if ) is a YES instance)
-
1.
Construct the host graph .
-
2.
Guess a value of , , and a partition of into positive integers .
-
3.
For each such guess construct a pattern graph .
-
4.
Use the algorithm from Fact 2 to check if a subgraph of is isomorphic to .
-
5.
If a subgraph of is isomorphic to output YES instance .
-
6.
Return NO if none of the pattern graphs is isomorphic to a subgraph of
Running time.
First, we analyze the running time of the algorithm for Disjoint Achromatic Number/vc. The number of guesses in step 2 is at most . The running time of the algorithm at step 4 is from Fact 2. Thus, the overall running time of the algorithm for Disjoint Achromatic Number/vc is since from Observation 18. Note that the proof works even if the cliques in the host and pattern graph are and in place of and , respectively. We assumed a large clique for clarity of understanding. Now, in the algorithm for Achromatic Number/VC, we make many guesses of the partitions of and run the algorithm for Disjoint Achromatic Number/vc for each guess. Thus, the overall running time of the algorithm for Disjoint Achromatic Number/vc is . Thus, we get the following theorem. See 4
5 Kernel for -degenerate graphs
In this section, we obtain a polynomial kernel for Achromatic Number when the graph is -degenerate. First, we state a crucial theorem that we use to design the polynomial kernel for graphs that are -degenerate. Then, we prove a few lemmatas to show the correctness of our kernelization algorithm. We start with the following lemma, which asserts that if a graph contains a large induced matching, then the achromatic number of the graph is also large.
Lemma 25.
Let be an undirected graph. For any positive integer , if has an induced matching of size at least , then .
Proof.
Let be an undirected graph and be a positive integer. Let us assume that the graph contains an induced matching of size . The set denotes the set of vertices in that are saturated by the matching . First, we give a complete coloring using colors on the matched vertices. Note that there are exactly distinct pairs of colors. We color the end points of the edges of in the following greedy way. We say that a pair is unassigned if there is no edge in such that color and color . Furthermore, an edge is uncolored if we have not assigned any color to and . Initially, all edges in are uncolored, and all pairs , where , are unassigned. In each step, we take an uncolored edge , an unassigned pair , chosen arbitrarily, and add the color and to and , respectively. We stop when there is no such pair and an uncolored edge exists. As both the number of pairs and edges in is exactly , for any with , we have exactly one edge whose end points are colored with colors and .
In the above process, we color exactly , that is, vertices. For the remaining vertices in the graph, we do the following. Let denote the number of colors used so far in the process. Obviously, . We take an uncolored vertex . If there is an such that does not have neighbors in the vertices that have already been colored , we assign the color to the vertex . If no such exists, then we give a new color to the vertex . It is easy to see that this procedure does not violate the complete coloring property. As we use at least colors, we get a complete coloring of with at least colors.
Definition 26 (Strong system of distinct representatives).
A system of distinct representatives for the sets is a -tuple where the elements are distinct and , for all . In addition to that, if we have for all , then such a system is called strong.
Theorem 27 ([16, Theorem 8.12]).
For a pair of integers and , in any family of more than sets of cardinality at most , at least of its members have a strong system of distinct representatives.
The following property of a -degenerate graph follows directly from the definition.
Proposition 28.
The number of edges in a -degenerate graph is bounded by .
Next, we give a lower bound on the number of low-degree vertices in a -degenerate graph.
Lemma 29.
Let be a -degenerate graph and be a positive integer with . Then, contains strictly more than vertices with degree at most .
Proof.
Let be a -degenerate graph on vertices. By Proposition 28, the number of edges is at most . Therefore, the sum of the degrees of the vertices in is bounded by . Assume that there are at most vertices of degree at most in . Then we have a set of size at least vertices of degree strictly more than . Now, the sum of the degrees of the vertices in is strictly more than , a contradiction. Therefore, there are strictly more than vertices of degree at most in .
Let us define a greedy independent partition of as follows. Construct a partition of into independent sets by iteratively finding maximal independent sets. Then, in such a partition, among all sets, choose a maximal independent, say , which has the highest cardinality (if there is more than one such set, then arbitrarily choose one) and arbitrarily order the remaining sets in the partition keeping as the first element. We denote this ordered family of sets as a greedy independent partition. Note that a greedy independent partition of can be constructed in time.
Kernelization Algorithm
Given a -degenerate graph , it returns a kernel of size .
-
1.
Apply Reduction 2 exhaustively to get with vertices.
-
2.
If , return a trivial YES instance
-
3.
Else, return the reduced graph .
Now, we describe our kernelization algorithm. A brief description of our algorithm is given in Figure 5.
Theorem 3. [Restated, see original statement.]
Achromatic Number admits a kernel of size on -degenerate graphs.
Proof.
First, we construct a greedy independent partition of , say . If , then from Lemma 17, we get a complete coloring of of size at least and return a trivial YES-instance. Else, we do as follows.
We apply Reduction 2 exhaustively. Let be the reduced graph with vertices. Note that after this step, at most vertices can have the same open neighborhood. Since our graph is -degenerate, the reduced graph is also -degenerate. From Lemma 29, we know that the number of vertices with degree at most is at least . Let us call vertices with degree at most as low-degree vertices. We denote these vertices by . Let be a greedy independent partition of . If , then we have (as ). So, applying Lemma 17, we have and that immediately implies , and we return a trivial YES instance. Otherwise, we have .
Let be the vertices in and be their corresponding open neighborhoods. Due to the exhaustive application of Reduction 2 at least of these open neighborhoods are distinct. Let and be the pairwise distinct sets. Let . Thus, is a family of more than sets, each of cardinality at most . Let be the integer such that
| (2) |
By applying Theorem 27 on the family of sets , we know at least of its members have a strong system of distinct representatives. We match each representative vertex with its corresponding vertex in . Let be the set of those representative vertices. Basically represents those set of vertices in such that we have a set of vertices satisfying (i) , (ii) for each vertex there exists a unique vertex such that and for all . We compute a greedy independent partition, say in . Now we have the following cases.
-
If , then we have . From Lemma 17, we get and that immediately implies , and we return a trivial YES instance.
-
Otherwise, we have . So, we have an induced matching of size at least in .
-
–
If , then we obtain an induced matching of size at least . Then applying Lemma 25, we have . Hence, we return a trivial YES instance.
-
–
Otherwise, we have .
-
–
Now and together imply
| (3) |
Using a binomial formula, we have the following.
| (4) |
From Equation 2 and Equation 4 we have
| (5) |
From Equation 3 and Equation 5, we get
| (6) |
Hence Achromatic Number admits a kernel of size on -degenerate graph.
6 Conclusion
In this paper, we do a parameterized reunion with Achromatic Number, and design an FPT algorithm with explicit running time on general graphs. We also study the problem with respect to structural parameterizations. Our work leaves several intriguing open questions.
-
1.
Does Achromatic Number admit a polynomial kernel on general graphs?
-
2.
We showed that Achromatic Number/VC can be solved in . We can show the following lower bound on the running time of an algorithm for Achromatic Number/VC.
Theorem 30 ().
Unless ETH fails, Achromatic Number/VC cannot be solved in time , where is the size of the vertex cover.
A natural question is whether we could close the gap between the upper and the lower bounds on the running time of Achromatic Number/VC.
References
- [1] Noga Alon, Raphael Yuster, and Uri Zwick. Color-coding. Journal of the ACM (JACM), 42(4):844–856, 1995. doi:10.1145/210332.210337.
- [2] Katerina Asdre, Kyriaki Ioannidou, and Stavros D. Nikolopoulos. The harmonious coloring problem is np-complete for interval and permutation graphs. Discret. Appl. Math., 155(17):2377–2382, 2007. doi:10.1016/J.DAM.2007.07.005.
- [3] V. Bhave. On the pseudoachromatic number of a graph. Fundamenta Mathematicae, 102(3):159–164, 1979.
- [4] Hans L. Bodlaender. Achromatic number is np-complete for cographs and interval graphs. Inf. Process. Lett., 31(3):135–138, 1989. doi:10.1016/0020-0190(89)90221-4.
- [5] Béla Bollobás, Bruce A. Reed, and Andrew Thomason. An extremal function for the achromatic number. In Neil Robertson and Paul D. Seymour, editors, Graph Structure Theory, Proceedings of a AMS-IMS-SIAM Joint Summer Research Conference on Graph Minors held June 22 to July 5, 1991, at the University of Washington, Seattle, USA, volume 147 of Contemporary Mathematics, pages 161–165. American Mathematical Society, 1991.
- [6] Niall Cairnie and Keith Edwards. Some results on the achromatic number. J. Graph Theory, 26(3):129–136, 1997. doi:10.1002/(SICI)1097-0118(199711)26:3\%3C129::AID-JGT3\%3E3.0.CO;2-T.
- [7] Jianer Chen, Iyad A. Kanj, Jie Meng, Ge Xia, and Fenghui Zhang. On the pseudo-achromatic number problem. Theor. Comput. Sci., 410(8-10):818–829, 2009. doi:10.1016/J.TCS.2008.11.010.
- [8] K. Edwards and C. McDiarmid. The complexity of harmonious colouring for trees. Discrete Applied Mathematics, 57(2-3):133–144, 1995. Copyright 2009 Elsevier B.V., All rights reserved. doi:10.1016/0166-218X(94)00100-R.
- [9] Keith J. Edwards. Achromatic number versus pseudoachromatic number: a counterexample to a conjecture of hedetniemi. Discrete Mathematics, 219(1):271–274, 2000. doi:10.1016/S0012-365X(00)00025-X.
- [10] Martin Farber, Gena Hahn, Pavol Hell, and Donald J. Miller. Concerning the achromatic number of graphs. J. Comb. Theory, Ser. B, 40(1):21–39, 1986. doi:10.1016/0095-8956(86)90062-6.
- [11] John P. Georges. On the harmonious coloring of collections of graphs. Journal of Graph Theory, 20(2):241–254, 1995. doi:10.1002/jgt.3190200213.
- [12] R. P. Gupta. The achromatic number of a graph. Journal of Combinatorial Theory, 1969.
- [13] Frnak Harary and Stephen Hedetniemi. Bounds on the chromatic and achromatic numbers of complementary graphs. Recnet Progress in Combinatorics, 8(2):154–161, 1970. doi:10.1016/S0021-9800(70)80072-2.
- [14] Pavol Hell and Donald J. Miller. Graph with given achromatic number. Discret. Math., 16(3):195–207, 1976. doi:10.1016/0012-365X(76)90099-6.
- [15] J. Hopcroft and Mukkai Krishnamoorthy. On the harmonious coloring of graphs. Siam Journal on Algebraic and Discrete Methods, 4, September 1983. doi:10.1137/0604032.
- [16] Stasys Jukna. Extremal Combinatorics – With Applications in Computer Science. Texts in Theoretical Computer Science. An EATCS Series. Springer, 2011. doi:10.1007/978-3-642-17364-6.
- [17] Sudeshna Kolay, Ragukumar Pandurangan, Fahad Panolan, Venkatesh Raman, and Prafullkumar Tale. Harmonious coloring: Parameterized algorithms and upper bounds. Theor. Comput. Sci., 772:132–142, 2019. doi:10.1016/J.TCS.2018.12.011.
- [18] Guy Kortsarz and Robert Krauthgamer. On Approximating the Achromatic Number. SIAM J. Discret. Math., 14(3):408–422, 2001. doi:10.1137/S0895480100379579.
- [19] Attila Máté. A lower estimate for the achromatic number of irreducible graphs. Discret. Math., 33(2):171–183, 1981. doi:10.1016/0012-365X(81)90164-3.
- [20] Z. Miller and D. Pritikin. The harmonious coloring number of a graph. Discrete Mathematics, 93(2):211–228, 1991. doi:10.1016/0012-365X(91)90257-3.
- [21] E. Sampathkumar. Partition graphs and coloring numbers of a graph. Discrete Mathematics – DM, 16:57–60, September 1976. doi:10.1016/0012-365X(76)90093-5.
- [22] Mihalis Yannakakis and Fanica Gavril. Edge Dominating Sets in Graphs. SIAM J. Appl. Math., 38:364–372, June 1980. doi:10.1137/0138030.
