Complexity of Partitioning Hypergraphs
Seonghyuk Im

TL;DR
This paper investigates the computational complexity of partitioning hypergraphs based on a pattern , establishing conditions under which the problem is either polynomial-time solvable or NP-complete for various uniformities.
Contribution
It characterizes the complexity of hypergraph partitioning problems for different uniformities, extending known results to higher dimensions.
Findings
Complexity depends on the pattern and the uniformity k.
The problem is either polynomial-time solvable or NP-complete for k=3,4.
Results extend to k for hypergraphs.
Abstract
For a given , we want to determine whether an input -uniform hypergraph has a partition of the vertex set so that for all of size , if and if . We prove that this problem is either polynomial-time solvable or NP-complete depending on when or . We also extend this result into -uniform hypergraphs for .
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Theory Research · Limits and Structures in Graph Theory · Graph Labeling and Dimension Problems
Complexity of Partitioning Hypergraphs
Seonghyuk Im
Department of Mathematical Sciences, KAIST [email protected]
Abstract
For a given , we want to determine whether an input -uniform hypergraph has a partition of the vertex set so that for all of size , if and if . We prove that this problem is either polynomial-time solvable or NP-complete depending on when or . We also extend this result into -uniform hypergraphs for .
1 Introduction
For a given , the -partition is a decision problem with the following input and output.
[TABLE]
We say such partition as a -partition and a -uniform hypergraph is -partitionable if it has a -partition.
Some special cases of -partition have been studied by many people. Table 1 shows a list of some cases of -partition which has known time complexity.
The CSP dichotomy conjecture implies that the -partition is polynomial-time solvable or NP-complete when does not contains . Recently, Zhuk [6] claims the proof of this conjecture . We will completely classify -partition into polynomial-time solvable problems and NP-complete problems for and we will prove some partial result for .
Before introducing our results, we observe some trivial facts. First, there exist a trivial partition if or . For a , let be a vector in such that every of changed into [math] and every [math] of changed into . Then by taking complement, it is easy to see that the -partition and the -partition are polynomial time equivalent. Therefore, we may assume that for all . Similarly, by changing label of and , we get the following fact.
Lemma 1.1**.**
The -partition and the -partition are polynomial-time equivalent.
When , -partition, -partition and -partition are polynomial-time solvable by using DFS(Depth First Search) and -partition is clearly polynomial-time solvable. -partition is equivalent to deciding whether a graph is a split graph. Hammer and Simeone [3] proved it is polynomial-time solvable. By considering trivial cases and polynomial-time equivalences described above, we get the -partition is polynomial-time solvable for all .
We proved full dichotomy result when or and we proved some partial dichotomy result for larger .
Theorem 1.2**.**
For a , the -partition is NP-complete if , or and polynomial-time solvable otherwise.
Theorem 1.3**.**
For a , the -partition is NP-complete if , , , , , , , , , , or and polynomial-time solvable otherwise.
Theorem 1.4**.**
Let be a vector. Suppose , , , , and . Then the -partition is NP-complete if , , , , , , , , or and polynomial-time solvable otherwise.
To show these theorems, we first prove the fact that if contains both [math] and , then the -partition is polynomial-time solvable in Subsection 3.1. We also prove that if , then the -partition is polynomial-time solvable in the same subsection. Then it is enough to check -partition is NP-complete or polynomial-time solvable to get full dichotomy result of cases. We will show NP-completeness of this problem in Subsection 3.2. After that, we will look some polynomial-time reductions from a larger to a smaller so that we complete the proof of the second and third theorem using the cases of in Subsection 3.3.
2 Preliminary
2.1 Basic notations
For a -uniform hypergraph and a subset of vertices , a subgraph induced by be a hypergraph with the vertex set and the edge set and denoted by . If is an empty graph, we say is an independent set of . Similarly, if has edges for every -subset of , we say is a clique of .
Let be a -uniform hypergraph with a vertex set and an edge set . It is called a k-uniform m-cycle.
2.2 Known results
One important NP-completeness of -partition is proved by Lovász [4] which is NP-completeness of 2-coloring problem of hypergraphs.
Theorem 2.1** (Lovász [4]).**
For a given hypergraph , the -coloring of is a function such that each edge of is not monochromatic. Deciding whether a given hypergraph has -coloring is NP-complete even if is -uniform hypergraph.
Theorem 2.1 shows the -partition is NP-complete.
To prove polynomial solvability results in section 3.1, we will look the theorem by Feder, Hell, Klein and Motwani [1]. The original theorem was for graphs but the proof of the theorem also holds for hypergraphs.
Theorem 2.2** (Feder, Hell, Klein and Motwani [1]).**
Let and be classes of hypergraphs closed under taking induced subgraph. Suppose there exist a constant such that every hypergraph contained in has at most vertices. Then, for every -vertex hypergraph , there are at most partitions of such that and . Furthermore, we can find all such partitions in time where is the time for recognizing and .
This theorem directly shows the following corollary.
Corollary 2.3**.**
For , if and , then the -partition can be solved in polynomial time. Furthermore, there exist at most -partition of an input graph where is number of vertices of and we can find every partition in polynomial time.
Proof.
Take be the class of empty hypergraph and be the class of complete -uniform hypergraph. In other word, is the class of hypergraphs of the form of and is class of hypergraph of the form of where is all -subsets of . Then by applying Theorem 2.2, we can find every -partition of an input -uniform hypergraph in polynomial time. By finding every -partition of an input -uniform hypergraph and checking each partition is -partition or not, we can find every -partition of . ∎
3 Main results
3.1 Polynomial-time solvability
We will use Theorem 2.2 and Corollary 2.3 to prove more general fact.
Proposition 3.1**.**
If contains both and [math], then the -partition is polynomial-time solvable. Furthermore, there exist at most -partitions for a -vertex hypergraph and we can find every -partition in polynomial-time.
Proof.
Suppose and for some . Assume there exists a -partition of an input hypergraph . If , then for any choice of with and every subset of size , . Similarly, every subset with satisfies . Now, fix and construct an -uniform hypergraph as follows. (Note that maybe equal to 1.)
and if and only if .
Then by previous observation, is an independent set and is a clique.
Now, we will construct an algorithm. For every of size , construct with respect to . Use the algorithm from Theorem 2.2 to find every -partition of . There are at most -partitions of and we can find every -partition in polynomial time. For each -partition of , check makes a -partition of or not. After check every of size , check every possibility that has size . By previous observation, this algorithm finds all -partitions of . ∎
Now, we will see one more polynomial-time solvable class of -partitions.
Proposition 3.2**.**
Let . If for all even number and for all odd number , then the -partition is polynomial-time solvable.
Proof.
For a given -uniform hypergraph , we label the vertices as and the edges as . Let be an matrix in a Galois field where if and only if . If has a -partition , then the linear equation in has a solution which is if and only if . Conversely, if the linear equation has a solution, then the vertex partition of where if and only if is a -partition of . Since linear equation can be solved in polynomial time by applying Gaussian elimination, the -partition is polynomial-time solvable. ∎
3.2 NP-completeness of the -partition
To prove Theorem 1.2, we need one more NP-completeness theorem.
Proposition 3.3**.**
The -partition is NP-complete.
Proof.
Let . First observe that the -uniform hypergraph with and has the unique -partition which is and . Also, note that has three possible partitions , and .
We will construct a polynomial-time reduction from the -SAT to the -partition. Let be an input 3-CNF formula where is one of or . If there exists a clause of the form of , by removing clauses containing and removing all , we get a smaller 3-CNF formula which has same satisfiability. Therefore, we may assume that there is no clause consisting of three equal terms.
Let be a -uniform hypergraph with the vertex set . If the -th clause of is of the form of and , let . Similarly, if the -th clause of is of the form of and are all distinct, let . If a clause contains , simply replace into . The edge set of is . Note that the subgraph of induced by , , , , , is isomorphic to the .
We claim that has a -partition if and only if is satisfiable. Suppose has a -partition . Then by previous observation, and . Since , , , , , makes , and or and . For each , assign true to if and assign false to if . Suppose the -th clause of is ( may equal). For each , so exactly one of is contained in . This implies at least one of is contained in . Therefore, at least one of has true value. If there exists in a clause, by replacing into , we get the same result. Therefore, assigned value of makes each clause true. So is satisfiable. Conversely, suppose is satisfiable. Fix any values of ’s that make true. We will construct a -partition of . If is true, make and . If is false, make and . Suppose the -th clause of is ( may equal). Choose one such that is true. Make , , for and if is false, if is true for . Finally, make and . Then we get it is the -partition of . This process can be done in time polynomial of input size so it gives a polynomial-time reduction from the 3-SAT to the -partition. ∎
We can use this theorem to prove the fact that the exact cover problem is NP-complete even if for all . The exact cover problem is a decision problem for a given pair where is a finite set and is a subset of power set of , deciding there exist a subset such that each element in lies in exactly one member of . It is known as NP-complete [2]. For a given -uniform hypergraph , let and set of edges containing , we can easily see that the exact cover problem under the condition and the -partition are polynomial-time equivalent.
Now we will prove Theorem 1.2.
Proof of Theorem 1.2.
By Proposition 3.1 and considering trivial cases, we can conclude that -partition of -uniform hypergraph is polynomial-time solvable except ,, , , or for . The -partition is NP-complete by Theorem 2.1 and the -partition is NP-complete by Proposition 3.3. By taking complement and by Lemma 1.1, the -partition is polynomial-time equivalent to the -partition and the -partition, the -partition and the -partition are polynomial-time equivalent to the -partition. ∎
3.3 Polynomial-time reductions
In this subsection, we will prove NP-completeness using polynomial-time reduction. Note that by Theorem 3.1 and by taking complement, we may assume that does not contains . We say is -free if does not contains .
First we define a map as and if or and otherwise for . Then we get the following proposition.
Proposition 3.4**.**
If there are no such that and , there exist a polynomial-time reduction from the -partition to the -partition.
Proof.
For a given -uniform hypergraph , we construct a -uniform hypergraph with the vertex set and the edge set . If has a -partition , then the partition is a -partition of . Conversely, if has a -partition , there are at least one pair of integers satisfying and . Therefore, for each , implies that . By assumption, it implies that so is a -partition of . ∎
We can use this proposition and Theorem 2.1 to prove that -coloring problem of -uniform hypergraph is NP-complete for all .
Note that number of 0’s in is smaller than . On the other hand, the next proposition produce another reduction from the -partition to the -partition such that number of 0’s in is strictly larger than number of 0’s in .
Lemma 3.5**.**
*Suppose and are -free and there are no consecutive ’s in . If there exist nonnegative integers such that if and if for all , then there exist a polynomial-time reduction from the -partition to the -partition.
Proof.
If is a zero vector, then is also a zero vector so clearly there are polynomial-time reduction. Therefore, we may assume that is not a zero vector.
For a given -uniform hypergraph , construct a -uniform hypergraph as follows.
[TABLE]
Suppose has a -partition . If , then for all because if not, . It is contradicting to the assumption. By the same argument, if , then for all Let be a partition of where if and only if . For every edge , if , then there exists such that and . It implies because if not, then for all with . Therefore, is a -partition of . Conversely, assume has a -partition . We choose any such that . Let as if and only if , for , for and if and only if . Then it is a -partition of since implies for all with and for any . ∎
It is hard to check whether such exist or not. However, by taking all , we get the following useful proposition.
Proposition 3.6**.**
Suppose is 1-free. Then there exist a polynomial-time reduction from the -partition to the -partition.
We observe that no consecutive *’s condition is only needed for making belong to the same side. Therefore, for a vector , if there exist a hypergraph and vertices such that it has at least one -partition and for every -partition of , and lie in same side, then the lemma also holds without no consecutive *’s condition. This observation also holds for the next proposition. On the other hand, since has no consecutive *’s, Proposition 3.6 make it easy to apply Lemma 3.4 and the next proposition.
Proposition 3.7**.**
*Suppose is 1-free and the has no consecutive ’s. Then there exists a polynomial-time reduction from the -partition to the -partition. Furthermore, if , then it also holds without no consecutive * condition.
Proof.
If , for a given -uniform hypergraph , we construct a -uniform hypergraph with the vertex set and the edge set . If has a -partition , then is a -partition of . Conversely, suppose has a -partition . If , then is a -partition of . If , then is a -partition of so is a -partition of and .
If , we choose such that but . We define a -uniform hypergraph with the vertex set and the edge set .
Suppose has a -partition . Then belongs to the same part because if not, for some and it is contradiction to has no consecutive *’s. By the same reason, belongs to the same part. Since but , for and for . Therefore, if and only if . It shows is a -partition of . Conversely, if has a -partition , then is a -partition of .
∎
Corollary 3.8**.**
Let be an integer and is -free. If contains exactly one * and , then the -partition is NP-complete.
Proof.
By Proposition 3.3, Proposition 3.7 and Lemma 1.1, it is clear. ∎
Now, we will prove Theorem 1.3 and Theorem 1.4.
Proof of Theorem 1.3.
By Theorem 2.1, Proposition 3.3 and Proposition 3.4, the -partition, the -partition and the -partition are NP-complete. By Corollary 3.8, the -partition, the -partition and the -partition are NP-complete. By Proposition 3.2, the -partition is polynomial-time solvable. By Proposition 3.1 and considering trivial cases, remaining cases are polynomial-time solvable. By combining these results, we get the proof of Theorem 1.3. ∎
Proof of theorem 1.4.
By applying Proposition 3.3 and Proposition 3.4 to result of Theorem 1.3, we get all NP-completeness of Theorem 1.4. Remaining cases are polynomial-time solvable by Proposition 3.3 and by considering trivial cases. It proves Theorem 1.4. ∎
Acknowledgement
The author would like to thank Jaehyun Koo for pointing out the partitioning problem of a split graph and thank Prof. Sang-il Oum for very helpful advice.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Tomas Feder, Pavol Hell, Sulamita Klein, and Rajeev Motwani. List partitions. SIAM J. Discrete Math. , 16(3):449–478, 2003.
- 2[2] Michael R. Garey and David S. Johnson. Computers and intractability . W. H. Freeman and Co., San Francisco, Calif., 1979. A guide to the theory of NP-completeness, A Series of Books in the Mathematical Sciences.
- 3[3] Peter L. Hammer and Bruno Simeone. The splittance of a graph. Combinatorica , 1:275–284, 1981.
- 4[4] L. Lovász. Coverings and coloring of hypergraphs. In Proceedings of the Fourth Southeastern Conference on Combinatorics, Graph Theory, and Computing (Florida Atlantic Univ., Boca Raton, Fla., 1973) , pages 3–12. Utilitas Math., Winnipeg, Man., 1973.
- 5[5] Ádám Timár. Split hypergraphs. SIAM J. Discrete Math. , 22(3):1155–1163, 2008.
- 6[6] Dmitriy Zhuk. A proof of CSP dichotomy conjecture. In 58th Annual IEEE Symposium on Foundations of Computer Science—FOCS 2017 , pages 331–342. IEEE Computer Soc., Los Alamitos, CA, 2017.
