Point-width and Max-CSPs
Clement Carbonnel, Miguel Romero, Stanislav Zivny

TL;DR
This paper introduces a new hypergraph decomposition framework that unifies existing tractability conditions for Max-CSPs, providing a broader understanding of structural restrictions that ensure computational feasibility.
Contribution
It proposes point decompositions as a new hypergraph framework, generalizing bounded MIM-width and β-acyclicity, and offers a new characterization of MIM-width.
Findings
Introduces point decompositions for hypergraphs.
Provides a new sufficient condition for Max-CSP tractability.
Characterizes bounded MIM-width and discusses related properties.
Abstract
The complexity of (unbounded-arity) Max-CSPs under structural restrictions is poorly understood. The two most general hypergraph properties known to ensure tractability of Max-CSPs, -acyclicity and bounded (incidence) MIM-width, are incomparable and lead to very different algorithms. We introduce the framework of point decompositions for hypergraphs and use it to derive a new sufficient condition for the tractability of (structurally restricted) Max-CSPs, which generalises both bounded MIM-width and \b{eta}-acyclicity. On the way, we give a new characterisation of bounded MIM-width and discuss other hypergraph properties which are relevant to the complexity of Max-CSPs, such as -hypertreewidth.
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 · Complexity and Algorithms in Graphs · Constraint Satisfaction and Optimization
Point-width and Max-CSPs††thanks: An extended abstract of this work appeared in the
Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS’19) [9]. Stanislav Živný was supported by a Royal Society University Research Fellowship. This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No 714532). The paper reflects only the authors’ views and not the views of the ERC or the European Commission. The European Union is not liable for any use that may be made of the information contained therein. Work done while Clément Carbonnel and Miguel Romero were at the University of Oxford.
Clément Carbonnel
CNRS, University of Montpellier, France
Miguel Romero
Facultad de Ingeniería y Ciencias, Universidad Adolfo Ibáñez
Santiago, Chile
Stanislav Živný
University of Oxford, UK
Abstract
The complexity of (unbounded-arity) Max-CSPs under structural restrictions is poorly understood. The two most general hypergraph properties known to ensure tractability of Max-CSPs, -acyclicity and bounded (incidence) MIM-width, are incomparable and lead to very different algorithms.
We introduce the framework of point decompositions for hypergraphs and use it to derive a new sufficient condition for the tractability of (structurally restricted) Max-CSPs, which generalises both bounded MIM-width and -acyclicity. On the way, we give a new characterisation of bounded MIM-width and discuss other hypergraph properties which are relevant to the complexity of Max-CSPs, such as -hypertreewidth.
1 Introduction
The Constraint Satisfaction Problem (CSP) is a well-known framework for expressing a wide range of both theoretical and real-life combinatorial problems [30, 27, 15]. Some examples are satisfiability [35], evaluation of conjunctive queries [10, 28], graph colourings [25] and homomorphisms [26]. An instance of the CSP is a set of variables, a domain of values and a set of constraints; each constraint is a relation applied to a subset of the variables called the constraint scope. Given a CSP instance, the goal is to decide whether one can assign a value to each variable so that all constraints are satisfied; that is, whether for every constraint, the assignment restricted to the constraint scope belongs to the constraint relation. Due to its expressivity, it is not surprising that the CSP is NP-complete in general. This has motivated a long line of research aiming to find tractable restrictions of the problem, sometimes called islands of tractability. The focus of this paper is on the so-called structural restrictions, which restricts the ways in which the constraints overlap and intersect each other.
A standard way of analysing structural restrictions is via the underlying hypergraph of a CSP instance. The vertex set of this hypergraph is the set of variables of the instance and the edges correspond to the scopes of the constraints: each constraint whose scope is a subset yields the edge . Given a class of hypergraphs, we define the problem CSP() as the restriction of the CSP to instances whose underlying hypergraphs lie in . Then the goal is to understand for which classes the problem CSP() is tractable, and for which classes it is not.
The situation of CSP instances of bounded arity (i.e., the maximum edge size in the class is a constant) is by now well-understood. In this setting, it follows from [18] and [22] (see also [24]) that CSP() is tractable if and only if has bounded treewidth (under the complexity theoretical assumption that FPT W[1]). On the other hand, the case of unbounded arity, that is, arbitrary classes of hypergraphs, is more delicate. Unlike the bounded-arity case, the complexity of the problem heavily depends on how the constraints in a CSP instance are represented [11]. We focus on one of the most natural and well-studied representation of constraints, namely the positive representation, where each constraint is represented by the list of tuples satisfying the constraint.
Bounded treewidth is not the right answer for tractability in the case of unbounded arity, as one can easily find classes of hypergraphs of unbounded treewidth such that CSP() is tractable. One of the first such classes are the acyclic hypergraphs [2, 3, 40] (also called -acyclic [14]). This tractability result has been extended to more general classes such as hypergraphs of bounded hypertreewidth [20] and bounded fractional hypertreewidth [23]. The latter is the most general natural hypergraph property known to be tractable, although the precise borderline of polynomial-time solvability is still unknown (and cannot coincide with bounded fractional hypertreewidth; see [29] for a brief discussion on that topic). However, as shown in [29], the classes for which CSP() becomes fixed-parameter tractable (parameterised by the size of the hypergraph) are precisely those of bounded submodular width, which are more general than classes of hypergraphs of bounded fractional hypertreewidth.
In this paper we study the problem Max-CSP111A usual definition of a Max-CSP instance is a CSP instance with the goal to maximise the number of satisfied constraints. As we explain in Section 2.2, we actually consider a more general framework, sometimes called finite-valued CSPs [38] or Max-CSPs with payoff functions [31]. Since our main result is a tractability result, this makes it only stronger., which is a well-known generalisation of CSPs for expressing optimisation problems. Now each constraint is of the form , where and is an -ary (finite-valued) function (we assume that is given as the set of pairs , which corresponds to the positive representation). Given a set of variables , a domain of values and a set of (finite-valued) constraints, the goal is to compute the maximum value of , over all possible assignments of values to .
In the case of bounded arity, tractability of Max-CSP() is also characterised by bounded treewidth, which follows directly from the CSP case. However, the complexity of unbounded-arity Max-CSPs under structural restrictions is poorly understood and the techniques used in the CSP context cannot be easily applied. Indeed, Max-CSP() is hard even for classes of -acyclic hypergraphs [19]. Moreover, unlike the CSP case, there is no known maximal hypergraph property that leads to tractability. The two most general hypergraph properties known to ensure tractability of Max-CSP() are -acyclicity222In fact, the authors in [4] consider a more general framework called the CSP with default values, and focus on counting solutions. However, they briefly discuss how to adapt the results to the maximisation version. [4], introduced in [14], and having bounded (incidence) MIM-width333The results for MIM-width in [39, 34] apply to Max-SAT (and #SAT), but can be adapted to Max-CSPs. Let us also remark that in [39, 34] a more general notion than that of bounded MIM-width, namely having polynomial PS-width, is shown to be tractable for Max-SAT and #SAT. This notion is however not purely structural, as it depends on the entire input instance and not just its hypergraph. [39, 34]. These properties are incomparable [4] and lead to very different algorithms. The main goal of this paper is to provide a common explanation for these two tractable properties, and in particular, for all known tractable hypergraph properties for Max-CSPs. We believe that such a unified explanation is a necessary first step to a better understanding of the tractable structural restrictions of Max-CSPs, and ultimately, to a precise characterisation of the tractability frontier.
1.1 Contributions
As our main contribution, we introduce the notions of point decomposition and point-width that unify -acyclicity and bounded MIM-width. We show that Max-CSPs (with positive representation) are tractable for hypergraphs of bounded point-width, provided a point decomposition of polynomial size and bounded width is also part of the input (Theorem 12). Our tractability result explains the tractability of -acyclic and bounded MIM-width hypergraphs. In particular, we prove that every -acyclic hypergraph has a point decomposition of width and polynomial size (Theorem 17), which can be computed in polynomial time. In the case of MIM-width, we obtain a stronger result that may be of independent interest: having bounded MIM-width is equivalent to having bounded flat point-width (Theorem 20), where the latter is defined via a syntactic restriction of point decompositions. Finally, we also discuss some related notions such as -hypertreewidth [21] (Section 7).
The high-level idea behind our new notion of width is that a point decomposition of width for a hypergraph provides a mechanism to encode several tree decompositions of hypertreewidth at most in a compact and controlled way. In particular, a point decomposition will be expressive enough to encode one such a tree decomposition for each subhypergraph of . Interestingly, the underlying trees of all these tree decompositions can be very different from each other, as long as they respect the “template” tree given by the point decomposition. For flat point decompositions, which capture MIM-width, these underlying trees need to be subtrees of the template , and then they are more similar to each other. The full details of point decompositions and their flat variant are given in Sections 3 and 6, respectively.
The algorithm behind our main tractability result (Theorem 12) uses a form of dynamic programming over the point decomposition where in each step we need to solve an instance of the weighted maximum independent set problem in chordal graphs (which is known to be tractable and in fact solvable in linear time [17], see also [37]). We can think of this procedure as doing dynamic programming simultaneously over all the tree decompositions of the subhypergraphs of encoded in the point decomposition.
1.2 Related work
It is also possible to parameterise CSPs and Max-CSPs by a class of admissible underlying structures, instead of hypergraphs, which offers a more fine-grained analysis. In the case of CSPs of bounded arity, a complete classification of the tractable cases in terms of the underlying relational structures follows from [12] and [22]. Recently, a similar classification has been obtained for (finite-valued) Max-CSPs in terms of the underlying valued structures [8].
Another important type of restrictions (and perhaps the most studied one) are the non-uniform restrictions, where the constraint relations (or functions) are restricted to be fixed. In this case, the situation is fairly clear and now, after two decades of intense research, complete classifications have been obtained for CSPs [5, 41], and (finite-valued) Max-CSPs [38].
1.3 Structure
The paper is organised as follows. Section 2 introduces the necessary notation on hypergraphs and Max-CSPs. Section 3 defines point decompositions and point-width. The main tractability result is given in Section 4. Sections 5 and 6 show that -acyclicity and bounded MIM-width are special cases of bounded point-width, respectively. We conclude in Section 7.
2 Preliminaries
2.1 Hypergraphs, points and covers
We assume that the reader is familiar with elementary graph theory and refer to Diestel’s textbook for more details [13]. Given a graph , we use and to denote its sets of vertices and edges, respectively. The subgraph of a graph induced by a set , denoted by , has vertex set and edge set . We use the same notation for directed graphs.
**Hypergraphs. ** A (finite) hypergraph is a finite set of non-empty finite sets called edges. The set of vertices of a hypergraph , denoted by , is the union of all its edges. Note that in this definition, every vertex of a hypergraph belongs to at least one edge. A subhypergraph of a hypergraph is a subset of . We use to denote the set of all vertex sets of subhypergraphs of .
**Points. ** A point of a hypergraph is a pair with and . We use to denote the set of all points of . Given and , the restriction of to , denoted by , is the set . By extension the restriction of to , denoted by , is the hypergraph . If is a subhypergraph of and , we use the notation as a shorthand for .
**Covers. ** An edge cover of a hypergraph is a subhypergraph of such that . The cover number of , denoted by , is the smallest cardinality of an edge cover of . We denote by the maximum of over all subhypergraphs of .
2.2 Max-CSP
A finite-valued function of arity over a domain is a mapping . A finite-valued constraint over a set of variables is an expression of the form , where is a finite-valued function and . The set of variables appearing in is called the scope of the constraint . An instance of the Max-CSP problem is a finite set of variables, a finite domain of values, and an objective function of the form
[TABLE]
where each , is a finite-valued constraint. The goal is to compute the maximum value of over all possible assignments to , which we denote by . In this paper we assume that each function , is given in the input as the table of all pairs where and (the so-called positive representation). It follows that the total size of a Max-CSP instance is roughly
[TABLE]
where is a reasonable encoding for rational numbers.
Actually, Max-CSPs are commonly defined with only -valued functions, or with -valued functions, where could be different in different functions; the latter are called weighted Max-CSPs. What we defined as Max-CSPs is a more general framework, sometimes called finite-valued CSPs [38] or Max-CSPs with payoff functions [31].
The hypergraph of a Max-CSP instance is the set of scopes of its constraints. Without loss of generality, we will always assume that no two constraints share the same scope and for every constraint , the entries of are pairwise distinct. In particular, there is a bijection between the constraints of a Max-CSP instance and the edges of its hypergraph. Given a family of hypergraphs, we denote by Max-CSP() the restriction of Max-CSP to the instances whose hypergraph belongs to .
3 Point decompositions and point-width
Let be a hypergraph. Let be a pair such that is a rooted tree and is a set of points, for every . For , we call the set the bag of and the pairs with the sub-bags of . We denote by the strict partial order on such that if and only if is a descendant of in . A -structure is a directed graph whose vertex set is the set of all sub-bags of and such that for every arc in we have .
Example 1**.**
Consider the hypergraph , where and , for every ; see Figure 1 on the left. In particular, . The right-hand side of Figure 1 depicts a pair , where is a path (depicted by bold arcs444We view the tree as undirected although there is an implicit direction by the parent/child relationship. For clarity, in Figure 1, we directed the (bold) edges of the tree away from the root, which is .) rooted at , and the points in each bag are listed below each node. The sub-bags of each node of are depicted within the node. For instance, for the node we have . Hence the sub-bags of are , and . The arcs between sub-bags represent a possible -structure .
Definition 1** (Decomposability).**
Let be a -structure for a pair . We say that is decomposable if for any two arcs , in , if
- (i)
* are sub-bags of different vertices of , and* 2. (ii)
there exist two sub-bags (not necessarily distinct) of the same vertex , and directed paths in from to , and from to
then either or .
Observe that if is not decomposable due to arcs , , where are sub-bags of , respectively, then either or must hold (otherwise, condition (ii) would fail). Let say that . Note that it could be possible that , in which case, the directed path from to is simply the empty path, i.e., . If additionally, , we obtain the simplest case of non-decomposability, in which there is a directed path in from to (and ).
Example 2**.**
The -structure from Example 1 and Figure 1 is decomposable. Consider for instance the arcs and with , and . We have that and are sub-bags of different vertices of , and condition (ii) of decomposability holds if we take and . In this case decomposability requires that at least one of or is an arc of , which is true for .
The intuition behind decomposability is as follows. Suppose we have a sub-bag in the -structure and two incoming arcs in , where are sub-bags of distinct vertices . Let be the set of nodes of that can “reach” , i.e., that contain a sub-bag from which is reachable in . Similarly, we define . Then decomposability means that whenever and are “incomparable” with respect to (i.e., neither nor is an arc), then and must be disjoint.
Definition 2** (Realisations).**
Let be a -structure for a pair . A realisation of is a subgraph of induced by a subset such that
- (i)
* contains at most one sub-bag of each , and* 2. (ii)
* has exactly one sink, which must be a sub-bag of the root of .*
For any realisation of a -structure , we define as the rooted tree whose vertex set is
[TABLE]
and whose edges are defined as follows. Suppose due to sub-bags , respectively. Then is the parent of , i.e., , if is the least vertex with respect to of the set
[TABLE]
Example 3**.**
For the -structure in Figure 1, consider the subgraph of induced by the sub-bags , , , and . We have that is a realisation as the only sink is . Note that if we remove from the sub-bag then we obtain a subgraph that is not a realisation as now becomes a sink. Observe also that is precisely . Another possible realisation is the subgraph of induced by the sub-bags , , and . In this case, is the tree with vertices and edges , and .
For a -structure and a subhypergraph of , we denote by the subgraph of induced by the set . We denote by the directed graph obtained from after removing every connected component in that satisfies the following: for every sub-bag , we have that is not the root of and . In other words, contains precisely the connected components of that contain a sub-bag of the root of or a sub-bag with .
Example 4**.**
The subgraph of from Example 3 is precisely , where . Note that needs to be removed from in order to obtain . While is a realisation, is not, as is a sink.
Definition 3** (Point decomposition).**
A point decomposition of a hypergraph is a triple where is a rooted tree, each set is a set of points of , is a decomposable -structure, where , and
- (i)
For every edge , there exists such that . 2. (ii)
For every subhypergraph of , the subgraph of is a realisation. 3. (iii)
For every realisation of and , the set
[TABLE]
induces a connected subtree of .
A point decomposition is flat if every arc in is between sub-bags of nodes adjacent in . The width of a point decomposition of a hypergraph is given by , the point-width of , denoted by , is the minimum width over all its point decompositions, and the flat point-width of , denoted by , is the minimum width over all its flat point decompositions.
Throughout the paper we assume a straightforward encoding for point decompositions, where each bag is given as a list of points, the tree is given as a rooted graph whose vertex set is the set of all bags, and the -structure is given as a directed graph whose vertex set is the set of all sub-bags. We denote by the encoding size of a point decomposition . We remark that checking whether a triple is a point decomposition may be a difficult task due to conditions (ii) and (iii). Whether it can be done in polynomial time is an interesting question, which we leave for future work.
Example 5**.**
Figure 1 shows a point decomposition of the hypergraph to the left. Note that , for , and then the width of the decomposition is . Hence . Note that the decomposition is not flat.
As mentioned in the introduction, the intuition is that a -structure in a point decomposition of width encodes various tree decompositions of hypertreewidth at most (cf. Appendix A for a precise definition of tree decomposition and hypertreewidth), and in particular, one for each subhypergraph of . Such a tree decomposition for is given by the tree and the bags correspond to the sub-bags in .
Finally, let us remark that once we know the -structure of a point decomposition, the particular form of the tree is irrelevant. Indeed, we can always assume that is a path: if it is not the case, we can extend to a total order on , which is precisely for a certain path , and then replace by in the point decomposition. However, in the case of flat point decompositions this is not true. Hence, in general, we shall not impose any assumption on the tree .
4 The algorithm
In this section we describe a polynomial-time algorithm for solving Max-CSPs when the input instance is paired with a point decomposition of bounded width of its hypergraph. We start with a number of simple definitions and observations before proving the main result in Theorem 12.
Definition 4** (Partial realisations).**
Let be a hypergraph and be a point decomposition of . A partial realisation of is a subgraph of induced by a subset such that (i) contains at most one sub-bag of each , (ii) has exactly one sink and (iii) there is a (possibly empty) directed path in from to a sub-bag of the root of .
The rooted tree of a partial realisation is defined the same way as for realisations: its vertex set is the set of all with at least one sub-bag in , and the parent of with is the least vertex with respect to in the set \{t\in V(T):\text{\exists(t,S)\in V(A^{\prime})((t_{1},S_{1}),(t,S))\in E(A^{\prime})}\}. The next observation is a minor extension of condition (iii) of point decompositions to partial realisations.
Observation 5**.**
Let be a hypergraph, be a point decomposition of , be a partial realisation of and . Then, the set
[TABLE]
induces a connected subtree of .
Proof.
Let be the unique sink of . If is a sub-bag of the root of then is a realisation and the claim follows from condition (iii) of point decompositions. Otherwise, let be a directed path in from to a sub-bag of the root of . The subgraph of induced by is a realisation and is precisely the subtree of rooted at , so the observation follows. ∎
Definition 6** (Guards).**
Let be a hypergraph, be a point decomposition of and be a sub-bag of . A guard of is an inclusion-minimal subhypergraph of such that .
Given a Max-CSP instance with hypergraph and , we will use to denote the unique constraint with scope . (As usual and denote the variables and the domain of , respectively.) Given a constraint with , its support is the relation . Without ambiguity we will sometimes treat as a set of assignments to . As usual, for an assignment with domain and a subset , we denote by the restriction of to . Similarly, for a set of assignments over , we denote by the set . If is an assignment to , we define and call a partial assignment to . In particular, for any partial assignment to , we have that .
Given a partial assignment , we say that satisfies an edge if , and satisfies a subhypergraph if it satisfies all of its edges. Note that can satisfy edges that are not completely contained in . For , with , let be a set of partial assignments from to . The join of is the set of all partial assignments such that , for every . Observe that a partial assignment satisfies a subhypergraph if and only if restricted to belongs to the join of .
Definition 7** (Consistent assignments).**
Let be the hypergraph of a Max-CSP instance and be a point decomposition of . If is a sub-bag of , an -valid assignment is an assignment such that satisfies some guard of . A consistent assignment to a partial realisation of is a function that maps every sub-bag to an -valid assignment such that for any two sub-bags , with adjacent in , .
The following is a direct consequence from Observation 5.
Observation 8**.**
Let be the hypergraph of a Max-CSP instance, be a point decomposition of , be a consistent assignment to some partial realisation of and . Then, there exists an assignment such that for every , .
Definition 9**.**
Let be the hypergraph of a Max-CSP instance, be a point decomposition of , be a consistent assignment to a partial realisation of and be as in Observation 8. The value of is the quantity
[TABLE]
The general idea behind the algorithm is to traverse the tree of the point decomposition bottom-up, keeping track for each sub-bag and -valid assignment of the best value achievable by a partial realisation with sink and consistent assignment to that agrees with on . The fact that is decomposable ensures that joining multiple partial realisations to a common sink always produces a partial realisation, as long as their initial sinks form an independent set in a certain (easily computable) chordal graph. This property enables a dynamic programming approach. It will follow from conditions (i), (ii) and (iii) in the definition of point decompositions that the maximum of the values computed by this algorithm at the root of is, in fact, the optimum of the Max-CSP instance.
Proposition 10**.**
Let be a Max-CSP instance with hypergraph and be a point decomposition of . The maximum of over all realisations of and consistent assignments to is exactly .
Proof.
Let be the maximum of over all realisations of and consistent assignments to .
We first prove . Let be an assignment to the variables of such that , and let be the set of edges satisfied by . Consider the subgraph of , which by condition (ii) of point decompositions is a realisation. We define as the function that maps each to . Since satisfies , it satisfies at least one guard for each sub-bag . Therefore, is a consistent assignment to . By condition (i) of point decompositions, for every edge there exists such that , and hence .
We now prove . Let be a realisation of and be a consistent assignment to such that . By Observation 8, there exists an assignment to such that
[TABLE]
and hence . ∎
If is a partial realisation and , we use to denote the partial realisation induced by the sub-bags of such that there is a (possibly empty) directed path in from to .
Observation 11**.**
Let be the hypergraph of a Max-CSP instance, be a point decomposition of , be a consistent assignment to a partial realisation of with sink and be as in Observation 8. Let be the set of all sub-bags in such that is a child of in . Then,
[TABLE]
Proof.
By definition of there is no arc in with . Since is decomposable, it follows that the sets , , are pairwise disjoint. Furthermore, by Observation 5, if there exist an edge and two sub-bags with then . Similarly, if there exist and such that , then . Putting everything together we have
[TABLE]
as claimed. ∎
Recall that an independent set in a graph is a subset of vertices that induces a subgraph with no edges. We will denote by the set of all independent sets in a graph .
Theorem 12**.**
Let be a fixed positive integer. There exists an algorithm which, given as input a Max-CSP instance with hypergraph and a point decomposition of of width at most , computes in time polynomial in and .
Proof.
We first describe the algorithm. To each bag , sub-bag and -valid assignment we will associate a nonnegative rational value . We will compute these values bottom-up, starting from the leaves of .
Let be a vertex of , be a sub-bag of and be an -valid assignment. Suppose that the values have already been computed for all pairs with . If is a leaf then we set . If is not a leaf then we define a vertex-weighted graph where
- •
is the set of all sub-bags with such that (i) there exists at least one -valid assignment such that and (ii) is an arc in ;
- •
is the set of all pairs such that either or is an arc in ;
- •
For every , the weight of is the maximum of
[TABLE]
over all -valid assignments such that . Note that this quantity is well-defined because at least one suitable assignment exists, by definition of .
We then set . Once is computed for all pairs where is a sub-bag of the root of , the algorithm outputs the maximum of over all such pairs.
Claim 1**.**
For every , sub-bag with a (possibly empty) directed path in from to a sub-bag of the root of and -valid assignment , is the maximum of over all partial realisations of whose sink is and consistent assignments to such that .
Proof.
We proceed by induction, proving the claim for all pairs in the same order the algorithm computes . Let be a sub-bag with a directed path in to a sub-bag of the root of and be an -valid assignment. Suppose that the claim holds for all pairs for which is computed by the algorithm before (and in particular for all pairs where is a sub-bag of with ). If is a leaf then the claim trivially holds, so suppose that is not a leaf. We start by showing that is at least the maximum over all . Let be any partial realisation of with sink and be a consistent assignment to with . Let be the set of all sub-bags in such that is a child of in . Note that we have for all in ; it follows from the definition of the tree that there does not exist an arc in with (as otherwise one of would not have as parent in ). Therefore, is a subset of and forms an independent set. By Observation 11 and the induction hypothesis we have
[TABLE]
Then, from the definition of the vertex weights in we deduce
[TABLE]
and since is the maximum of the right-hand side expression taken over all independent sets of , we finally obtain that , as required.
For the other direction, we need only prove that there exist a partial realisation with sink and a consistent assignment to such that and is exactly . Let be the independent set of chosen by the algorithm to compute . For each sub-bag , let be an -valid assignment such that and . Note that every sub-bag in can reach a sub-bag of the root of via a directed path in by going through . Then, by induction for each there exist a partial realisation with sink and a consistent assignment to such that and . Now, if we define as the subgraph of induced by , then (i) has a single sink , since the sinks of each have an outgoing arc to , and (ii) contains at most one sub-bag for each because is decomposable and is an independent set in . It follows that is a partial realisation of .
The mapping defined on such that if and otherwise, where is the only sub-bag in such that , is a consistent assignment to . Finally, by Observation 11 and the induction hypothesis we obtain
[TABLE]
which is exactly . ∎
Corollary 13**.**
The output of the algorithm is the maximum of over all realisations of and consistent assignments to .
We deduce from Corollary 13 and Proposition 10 that the algorithm correctly outputs . We now turn to the problem of estimating the time complexity of the algorithm. To this end, we will need to bound the time necessary to compute the maximum-weight independent sets. This will be achieved with the help of the next claim.
A graph is chordal if every cycle with at least four vertices has a chord, that is, an edge connecting two vertices that are not consecutive in .
Claim 2**.**
For any given pair , the associated graph is chordal.
Proof.
By way of contradiction let us assume that there exists a pair for which has a chordless cycle . Let be a sub-bag in such that is minimal with respect to . Since is chordless, at least one of the two sub-bags that are adjacent to in is not a sub-bag of . Let be that sub-bag, and be the other one. Note that and are not adjacent in , which means that they are not sub-bags of the same vertex of and none of is an arc in . Furthermore, since is minimal with respect to in the cycle, there is a directed path (of length ) in from to . Likewise, there is always a directed path in from some sub-bag of to : if is a sub-bag of then this path is empty, and otherwise we have the path in by minimality of . Finally, by construction we have the arcs and in , so the triple contradicts the decomposability of . Thus the chordless cycle does not exist, which establishes the claim. ∎
Claim 3**.**
The runtime of the algorithm is polynomial in and .
Proof.
By definition of the width of a point decomposition, for each bag , we have . Hence, for each subhypergraph there exists a subhypergraph , , such that ; in particular, every guard of a sub-bag contains at most edges. Therefore, given a sub-bag , any -valid assignment is in the join of restrictions of the support of at most constraints; it follows that there are at most distinct -valid assignments, where , and the algorithm computes for pairs .
The computation of for a given pair reduces to computing a maximum weighted independent set in the graph , which can be achieved in time linear in since is chordal [17, 37] by Claim 2. Constructing the graph takes time polynomial in and , which concludes the proof of Claim 3. ∎
Theorem 12 now follows from Corollary 13, Proposition 10 and Claim 3. ∎
5 Relationship with -acyclicity
A hypergraph is -acyclic [3] if it has a join tree. A join tree is a pair where is a tree and is a bijection from to (the edges of) , such that for every the set induces a connected subtree of . A hypergraph is -acyclic [14] if every subhypergraph of is -acyclic. It is known that -acyclic hypergraphs are tractable for Max-CSPs:
Theorem 14** ([4]).**
Max-CSP() can be solved in polynomial time if is a family of -acyclic hypergraphs.
The algorithm of Brault-Baron, Capelli, and Mengel [4] works by variable elimination, making use of a well-known alternative characterisation of -acyclic hypergraphs in terms of the so-called -elimination orders [3]. In this section we show that such hypergraphs are covered by our framework as they always have a point decomposition of polynomial size and width , which can be computed in polynomial time. Hence, together with Theorem 12, we can obtain Theorem 14.
An ordering of the vertices of a hypergraph is a -elimination order if for any and such that , either or . A hypergraph is -acyclic if and only if it has a -elimination order [3].
Our construction of point decompositions for -acyclic hypergraphs is inspired by recent work of Capelli [7], from whom we borrow some notation and lemmas. Let be a -acyclic hypergraph and be a -elimination order of . Given a vertex , let and . Let be the total order on the edges of such that if and only if , where denotes the symmetric difference. A walk from to is a sequence , with , where each is an edge of , , , and each is a vertex of such that . Given and , let denote the set of edges of reachable from through a walk that contains only vertices and edges .
Example 6**.**
Consider the hypergraph from Figure 1 defined as , where and , for . We have that is -acyclic. A possible -elimination order is . The induced order is . For instance, note that as the only possible walk would be but . We have and . Note that as .
Lemma 15** ([7, Lemma 2]).**
Let such that and such that and . Then, .
Theorem 16** ([7, Theorem 3]).**
For every and , .
Now we are ready to state the main result of this section:
Theorem 17**.**
Every -acyclic hypergraph has a point decomposition of polynomial size and width . Moreover, such a decomposition can be computed in polynomial time.
Proof.
Let be a -acyclic hypergraph with -elimination order . The rooted tree of the point decomposition of has one vertex for each vertex , plus a special vertex . The root of is and its only child is , where is the last vertex in the -elimination order of . The remainder of is then a path, where is the child of if and only if is the vertex that directly follows in the -elimination order. In particular, for any two vertices we have that if and only if .
For any , the associated bag is the set of all points with and . The bag of is an empty set of points. We denote by the pair .
By definition of a -elimination order, for each it holds that and the possible sub-bags are of the form with . We now describe the directed graph on the sub-bags of that will complete the point decomposition. Given any two sub-bags and with and , we add an arc from to if one of the following conditions is satisfied:
- ()
and there exist such that , and ;
- ()
and there exist such that , , and , where .
In addition, if we add the arc . Figure 1 shows the construction applied to the -acyclic hypergraph to the left and -elimination order .
By construction, is a -structure. The next claim will be used in conjunction with Lemma 15 and Theorem 16 to show that is decomposable.
Claim 4**.**
Let and be two sub-bags with and , such that there is a directed path in from to . Then, there exist such that , and .
Proof.
We prove the claim by induction on the length of the path. If the path has length (i.e. is an arc in ) then satisfies either () or () and the claim holds. Now, suppose that the path has length and that the claim holds for all paths of length . Let , , be such that is the predecessor of in the path. (Note that such a vertex always exists because the special sub-bag is a sink in .) By induction, there exist such that , and . Also, since is an arc in , it satisfies either () or () and hence there exist such that , and . In particular, there exists a walk from to that only contains vertices and edges , and a walk from to that only contains vertices and edges .
If , then is a walk from to that contains only vertices and edges . Therefore, we have and the claim follows from the edges . If instead we have , then by Theorem 16 we have . Note that cannot be a strict subset of because . This implies that . Finally, we deduce from the inclusion that , and the claim follows from the edges . ∎
Claim 5**.**
* is decomposable.*
Proof.
We prove the claim by contradiction. Suppose that is not decomposable, that is, there exist five sub-bags with and such that (i) and are arcs in , (ii) neither nor is an arc in , and (iii) there are directed paths in from to and from to . By the definition of , we can further assume that none of is empty.
By Claim 4, there exist such that , , , , and . Without loss of generality we assume .
We distinguish two cases:
- •
. Observe that , so by Lemma 15 we have . In particular, it holds that . Since is not an arc in , we can deduce that ; it follows that is of the form where . However, the arc implies that , which means that should have been an arc in , a contradiction.
- •
. Then, we have , so by Lemma 15 we have . By Theorem 16 it holds that , and in particular . Then, since is an arc in and (as it contains both and ), it follows that is of the form where . Again, the arc implies that . Finally, since , we have , a contradiction.
∎
Claim 6**.**
The triple is a point decomposition of .
Proof.
is a rooted tree, each with is a set of points, and is a decomposable -structure by Claim 5. That leaves conditions (i), (ii) and (iii) in the definition of a point decomposition to verify.
By construction, for any edge , we have that , where is the smallest vertex in with respect to . Hence condition (i) holds.
For condition (ii), let be a subhypergraph of . Note that is precisely the subgraph of induced by
[TABLE]
because all sub-bags of the form with are isolated sub-bags of non-root vertices of . We show that is a realisation of . Suppose for the sake of contradiction that it is not the case. The only possibility is that has two sinks, and one of them is of the form with and . The sub-bag belongs to , which implies that since otherwise would be an arc in and hence would not be a sink. Now, let , and let be such that . Let denote the sub-bag and be such that . Note that is not empty because ; this implies in particular that . If then would be an arc in because of condition () (with ). Since , this contradicts our hypothesis that is a sink in . On the other hand, if then from the facts that is a -elimination order, and , we can further assume that . It follows that , and the walk implies that . However, by condition () we deduce that is an arc in , a final contradiction.
For condition (iii), we first prove that for any arc of where , and it holds that . Observe that always contains , and may only contain vertices with , so whenever satisfies condition () or if . If satisfies condition () instead, then for some . Let be such that , and . By Theorem 16 we have that and hence , as claimed.
Now, let be a realisation of and . It follows from the property above that if is the parent of in and are the sub-bags in , then and if and only if . Since may only appear in a set for sub-bags of the form with , the set
[TABLE]
induces a connected subtree of , which proves the claim. ∎
The point decomposition has polynomial size. Moreover, it can be computed in polynomial time since a -elimination order can be computed efficiently from [4]. Recall that for each it holds that ; it follows that has width . Together with Claim 6, these last observations establish Theorem 17. ∎
In the case of the hypergraph of Figure 1, it can be verified that our construction produces a non-flat point decomposition independently of the -elimination order we pick for . As we shall see in the next section, this is not coincidence as -acyclic hypergraphs cannot be captured by flat point decompositions of any constant width. The reason is that the latter captures precisely the so-called hypergraphs of constant MIM-width, which are known to be incomparable with -acyclic hypergraphs [4].
6 Flat point-width and MIM-width
In this section, we show how our main tractability result from Theorem 12 also explains the tractability of Max-CSPs for classes of hypergraphs of bounded MIM-width [39, 34]. Before doing so, we need some notation and definitions.
An induced matching in a graph is a set such that no two edges of share a common vertex and for every edge , we have . For a graph , we denote by the maximum size of an induced matching in . A graph is bipartite if there is a partition of its vertex set such that every edge of has one endpoint in and the other in . For a graph and disjoint subsets of , we define to be the bipartite graph with vertex set that contains all edges of with one endpoint in and the other in .
A branch decomposition of a graph is a pair where is a binary rooted tree and is a bijection from to the leaves of . For , we let denote the subtree of rooted at and denote the set \{\delta^{-1}(\ell):\text{\ellT_{t}}\}. The MIM-width of the branch decomposition is the maximum , taken over all . The MIM-width [39] of , denoted by , is the minimum MIM-width over all branch decompositions of .
The incidence graph of a hypergraph , denoted by , is the bipartite graph with vertex set and edge set \{\{v,e\}:\text{v\in V(H)e\in Hv\in e}\}. We define the MIM-width of the hypergraph to be . It follows from the work of Sæther, Telle and Vatshelle [34] that Max-CSPs are tractable for hypergraphs of bounded MIM-width, provided a branch decomposition of bounded MIM-width is given with the input. More formally:
Theorem 18** ([34]).**
Let be fixed. There exists an algorithm which, given as input a Max-CSP instance with hypergraph and a branch decomposition of of MIM-width at most , computes in time polynomial in .
Let us stress that the results in [39, 34] are given for Max-SAT (and #SAT). However, Theorem 18 can be obtained by adapting the algorithm from [39, 34] to Max-CSPs. We omit the details as Theorem 18 is implied by the results of this section.
The goal of this section is to prove the following:
Theorem 19**.**
Let be fixed. For every hypergraph and branch decomposition of of MIM-width , there exists a point decomposition of of polynomial size in and of width at most . Moreover, this point decomposition can be computed in time polynomial in .
Note that we obtain Theorem 18 as a consequence of Theorem 19 and Theorem 12. In order to prove Theorem 19, we show that the MIM-width of a hypergraph is equivalent to its flat point-width modulo constant factors. This is the main technical result of this section which we state below:
Theorem 20**.**
For every hypergraph , we have and . Moreover, for a fixed , a flat point decomposition (of polynomial size) of width at most can be computed in time polynomial in from a branch decomposition of of MIM-width .
Note how Theorem 20 directly implies Theorem 19. In order to prove Theorem 20, we present several notions of width and show that they are equivalent modulo constant factors. As an intermediate step, we show a characterisation of the MIM-width of a bipartite graph in terms of its line graph. This characterisation of MIM-width and the one from Theorem 20 may be of independent interest.
6.1 A characterisation of the MIM-width of bipartite graphs
A tree decomposition of a graph is a pair , where is a tree and each bag is a subset of such that
- (i)
, 2. (ii)
for each edge , there exists such that , and 3. (iii)
for each the set induces a connected subtree of .
For any function , we define the -width of the decomposition to be the maximum , taken over all , and the -width of the graph to be the minimum -width over all its tree decompositions. For instance, the standard notion of treewidth [32] corresponds to -width, where , for every .
For a graph , we say that a set is a distance- independent set if for every pair of distinct nodes , there is no path from to in of length at most , where the length of a path is the number of edges. We denote by the maximum size of a distance- independent set in . For , we define the function as , for every . (Recall that denotes the subgraph of induced by , i.e., .) We also consider the function defined by , for every .
Observation 21**.**
For a graph , we have the following:
- •
* is subadditive, i.e., , for all .*
- •
, for all .
- •
* is monotone (unlike ), i.e., , if .*
We are particularly interested in the notions of -width and -width for a graph , which we denote by and , respectively. For a graph , we define the line graph of , denoted by , to be the graph with vertex set such that is an edge in , where and , if and share a common vertex.
Observation 22**.**
Let be a graph. Every induced matching in is a distance -independent set in and vice versa. In particular, .
Below we show that for bipartite graphs, the MIM-width and the -w (and also -w) of the line graph are equivalent, modulo constant factors. The proof is an adaptation of the classical equivalence between treewidth and branchwidth [33].
Proposition 23**.**
For every graph , we have .
Proof.
Given a branch decomposition of of MIM-width , we define a tree decomposition of of -width at most . Recall that for a node , we denote by the subtree of rooted at and by the set \{\delta^{-1}(\ell):\text{\ellT_{t}}\}. The underlying tree of our sought decomposition is itself. For , we define to be the set of edges of appearing in the bipartite graph . Now we define to be , if is a leaf of , and , otherwise, where and are the two children of in . We claim that satisfies the required conditions.
For condition (i) of tree decompositions, for every , we have . For condition (ii), if and , then we have . In order to prove condition (iii), we show the following properties:
Suppose and are distinct nodes such that is a descendent of , belongs the (unique) path in from to , and . Then . 2. 2.
Suppose and are distinct nodes such that and are incomparable in , is the least common ancestor of and in , and . Then , where and are the two children of in .
For property 1), suppose , and note that by definition of the ’s, one endpoint of belongs to , say , and the other endpoint is in . In particular, and , and hence . For property 2), let and note again, by definition of the ’s, that one endpoint of belongs to , say , and the other endpoint belongs to . Then if is the ancestor of , we have and , and therefore . Similarly for and .
Now for condition (iii), let and be distinct nodes in such that belongs to the (unique) path in from to and . We start with the case when is a descendent of (the case when is a descendent of is analogous). Assume first that . We obtain that , by applying property 1) to and either (if ) or a child of (if ). Suppose now that . If is a child of , then and we are done. Otherwise, if is the child of that is ancestor of , we obtain by applying property 1) to , and either or a child of .
For the case when and are incomparable, we let be the least common ancestor of and in . We obtain that , where and are the two children of , by applying property 2) to , either or one of its child, and either or one of its child (depending on whether and , respectively). If , we can apply the previous case and obtain that as required.
It remains to bound the -width of . If is a leaf of , then . Otherwise let be the two children of in . By Observation 22, we have . By subadditivity, we have that . Observe that (in particular, ). By Observation 22, , and since is an induced subgraph of , we have . We obtain that as required. ∎
Proposition 24**.**
For every bipartite graph , we have .
Proof.
Let and be a tree decomposition of of -width . We can assume that is a binary rooted tree and that there is a bijection from to the leaves of such that , for every . To see this, we start by rooting arbitrarily. For each , the set is a clique in , and hence there exists such that (note that is not necessarily unique). We add a fresh leaf to as a child of and we let . After this, we iteratively remove all leaves of that are not of the form . Since , for every , the width of the resulting decomposition is at most . Finally, if a node has children with , we force to have only two children and , where is a fresh node with and with children . By applying this modification iteratively, we obtain a rooted binary tree as required.
We claim that is a branch decomposition of of MIM-width at most . Fix . We have that , where . Indeed, for , we have , and by connectivity, . Let be independent sets partitioning (recall that is bipartite). Let be a maximum size induced matching in . Note that is the disjoint union of and , where and . Finally, observe that and are distance -independent sets in as and are independent sets in . In particular, for each , is a distance -independent set in for every superset . This implies that , for . Hence . ∎
By Propositions 23 and 24, for every bipartite graph , we have:
[TABLE]
Remark 25**.**
As in the case of treewidth, the widths and can be related with other notions such as brambles and games. For instance, and can be lower bounded by the (natural adaptation of the) bramble number [36]. Also, can be characterised in terms of the monotone version of the cops and robber game [36] (this is the reason why we work explicitly with in the first place). Now the cops are not restricted to play on a set of size , but on a set with . The minimum for which the cops can win the game in a monotone way is precisely the (this follows for instance from [1, Theorem 2.2.12 and Remark 2.1.18]). Hence these connections could be used to obtain bounds on the mimw of bipartite graphs.
6.2 Proof of Theorem 20
We now show the equivalence of fpw and mimw. Let us start with a definition.
Definition 26** (Simplified point decomposition).**
A simplified point decomposition of a hypergraph is a pair where is a rooted tree, each set is a set of points of and
- (1)
For every edge , there exists such that . 2. (2)
For every subhypergraph of , and , the set induces a connected subtree of .
As before, the width of a simplified point decomposition is , and the simplified point-width of , denoted by , is the minimum width over all its simplified point decompositions.
Proposition 27**.**
For every hypergraph , we have .
Proof.
We start by showing . Let be a simplified point decomposition of of width . We say that two sub-bags and with are consistent if there exists a subhypergraph of such that and . Consider the triple , where is an arc in if and only if is the parent of in and, and are consistent. We claim that is a flat point decomposition of , and hence . Let be a subhypergraph of and note that if is the parent of in then there is an arc from to in as they are consistent. Hence (actually we have ) is a realisation of .
Now let be an arbitrary realisation of . By definition of , we have that the subtree associated with is actually a subtree of that contains the root. By contradiction, suppose the connectivity condition fails for some . Then, there exists a sequence , with , such that (i) each , (ii) is a path in , and (iii) but , for . We show by induction that for all , there exists a subhypergraph of such that , and . In particular, and . This is a contradiction since .
For the base case, recall that by construction of , is consistent with , and similarly, with . Hence, there are subhypergraphs and of such that , and . We define . Then we have that and . In particular, , and , as required. For the inductive case, suppose we have with the desired properties, for . As and are consistent, there is a subhypergraph of such that and . We take . Note that and (using the inductive hypothesis ). Observe that . Since and (by inductive hypothesis), we derive that . Since , it follows that ; otherwise the connectivity condition (2) for simplified point decompositions would be violated for . Hence satisfies all the required conditions.
For , let be a flat point decomposition of of width . We claim that is a simplified point decomposition of , and the result follows. Let be a subhypergraph of . By definition of point decompositions, is a realisation of and for every , the set induces a connected subtree of . For every , we have and then . Since must be a subtree of , the latter set induces a connected subtree of . Hence condition (2) of Definition 26 (simplified point decompositions) holds. ∎
Observe how a simplified point decomposition of encodes tree decompositions for the subhypergraphs of without the need of a -structure, unlike the case of flat point decompositions. Whether arbitrary point decompositions can also be captured by a notion of decomposition that does not use -structures explicitly is an interesting question which we leave for future work.
For a hypergraph , we define the point graph of , denoted by , as
[TABLE]
Note that the point graph of is isomorphic to . There is a known duality between -cn and MIM (see e.g. [6, Theorem 2.18]):
Observation 28**.**
For every hypergraph , we have . By Observation 22, we have .
Proposition 29**.**
For every hypergraph , we have and .
Proof.
For , let be a tree decomposition of of -width . We claim that is a simplified point decomposition of of width . By Observation 28, we have , for every . Hence, the width of is . For condition (1) of Definition 26, let and note that the set forms a clique in . Hence, there exists such that . Towards a contradiction, suppose that condition (2) of Definition 26 is violated, i.e., there is a subhypergraph of , a vertex and distinct nodes such that is in the unique path from to in , and but . In particular, there exist edges such that , and . Since is an edge in , there is a node such that . Using the connectivity of the tree decomposition , we obtain that ; a contradiction.
For , let be a simplified point decomposition of of width . We define to be the tree obtained from by subdividing every edge in , i.e., replacing every edge by two edges and , where is a fresh node. For , we define , if , or , if with .
We claim that is a tree decomposition of . First note that, for every point in , by condition (1) of simplified point decompositions, there is , such that , and hence condition (i) of tree decompositions holds. For condition (ii), suppose and are points with . Again by condition (1), we obtain that there is , such that . Now suppose that and are points with and pick such that and . By applying condition (2) of simplified point decompositions to the subhypergraph , we have that , for every in the unique path from to in . In particular, there is an edge in this path such that and . It follows that , for , and hence condition (ii) holds. For a point of , condition (iii) follows from applying condition (2) to the subhypergraph . Finally, note that, by Observation 28 and subadditivity of , the -width of is at most , as required. ∎
Theorem 20 follows from Propositions 29, 27, 23, and 24. Let us stress that given a branch decomposition of of MIM-width , we can efficiently compute a flat point decomposition (of polynomial size) of width at most . By applying the construction in the proof of Proposition 23 (and due to Proposition 29), from we can efficiently compute a simplified point decomposition for of width at most . Finally, the construction in the proof of Proposition 27 of a flat point decomposition from the simplified point decomposition of width , in particular, of the -structure , can be done in polynomial time. The main step is given two nodes , where is the parent of , and two sub-bags of the form and , to check whether they are consistent. This is equivalent to checking the existence of two subhypergraphs and with , , such that (i) , , and (ii) and . This can be checked in polynomial time.
7 Conclusions
We have introduced a new width that unifies -acyclicity and bounded MIM-width. We have also identified a novel island of tractability for structurally restricted Max-CSPs. The main open problem is to obtain more general hypergraph properties that lead to tractability, and ultimately find the precise boundary of tractability. There are many natural hypergraph properties that generalise bounded point-width whose tractability status is unclear (from less to more general): bounded -hypertreewidth (-hw) [21], bounded -fractional hypertreewidth (-fhw), and bounded -submodular width (-subw). In particular, we have . For precise definitions, see Appendix A.
In addition to -acyclicity and MIM-width, our notion of point-width also subsumes a width measure called coverwidth, introduced in [6, Section 5.3.2]. In Appendix D, we show that every class of hypergraphs of bounded coverwidth also has bounded flat point-width, and hence, bounded MIM-width. We also show that the converse does not hold, i.e., bounded MIM-width strictly generalises bounded coverwidth.
We have focused on polynomial-time solvability for Max-CSPs. Regarding fixed-parameter tractability (FPT), it is easy to show (cf. Appendix B) that Marx’s classification of CSPs [29] implies an FPT classification of {0,1}-valued Max-CSPs and the FPT frontier is given by the classes with bounded -submodular width. This classification implies that for a class of unbounded -submodular width the -valued, and hence the finite-valued, problem Max-CSP() is not fixed-parameter (and thus not polynomial-time) tractable. Note that a collapse between bounded point-width and bounded -submodular width would give us a complete classification of Max-CSPs in terms of polynomial time-solvability (and FPT). Hence, a natural research direction is to study the relationship between all these measures (pw, -hw, -fhw and -subw). As a related result, which could be interesting in its own right, we show (cf. Appendix C) that bounded -fractional hypertreewidth collapses to bounded -hypertreewidth.
We finish with a few open problems. Firstly, we have shown (Theorem 17) that every -acyclic hypergraph has a point decomposition of polynomial size and width . We do not know whether the converse is true. Secondly, as discussed before Example 5 in Section 3, we do not know whether the problem of checking that a given triple is a point decomposition admits an efficient algorithm. Finally, we do not know whether point decompositions of bounded width can be assumed to have polynomial size (hence the dependency on in the statement of Theorem 12, and the importance given to the fact that the decomposition has polynomial size in Theorem 17 and Theorem 19).
Acknowledgements
We would like to thank the anonymous referees of both the conference [9] and this full version of the paper.
Appendix A Width measures
Let be a hypergraph and . The hypergraph induced by , denote by , is defined as
[TABLE]
Note that, in general, is not a subhypergraph of as defined in Section 2.
A fractional edge cover of a hypergraph is a function such that for all , , and the fractional edge cover number of , denoted by , is the minimum of over all fractional edge covers of .
A tree decomposition of a hypergraph is a pair , where is a tree and each bag is a subset of such that (i) for each there exists such that and (ii) for each the set induces a connected subtree of .
Let be a hypergraph. For any function , we define the -width of a tree decomposition of as the maximum of taken over all , and the -width of as the minimum -width of a tree decomposition of . Given a hypergraph ,
- •
The treewidth [32] of is its -width, where ;
- •
The (generalised) hypertreewidth [20] of is its -width, where ;
- •
The fractional hypertreewidth [23] of is its -width, where .
The treewidth, hypertreewidth and fractional hypertreewidth of a hypergraph will be denoted by , and , respectively. Let us notice that a hypergraph is -acyclic if and only if .
Let be a hypergraph. If is a set of functions from to , we call -width of the quantity . A function is edge-dominated if for all , and submodular if for all . The submodular width [29] of , denoted by , is its -width, where is the set of all edge-dominated submodular functions from to satisfying .
Given a hypergraph , the -hypertreewidth [21] (resp. -fractional hypertreewidth, -submodular width) of is the maximum hypertreewidth (resp. fractional hypertreewidth, submodular width) taken over all subhypergraphs of . We denote these quantities by , and , respectively. Observe that a hypergraph is -acyclic if and only if .
Appendix B FPT Classification for {0,1}-valued Max-CSPs
We denote by -Max-CSP the restriction of Max-CSP to -valued functions. In other words, an instance of -Max-CSP is syntactically identical to a CSP instance but the goal is to compute the maximum number of constraints that can be simultaneously satisfied.
We shall consider a parameterised version of -Max-CSP() with parameter (we slightly abuse notation and denote this parameterised problem simply -Max-CSP()). In particular, -Max-CSP() is in the class FPT of fixed-parameter tractable problems if an instance of -Max-CSP() can be solved in time , where is any computable function and is a constant.
Theorem 30**.**
Let be a recursively enumerable class of hypergraphs. Then, assuming the Exponential Time Hypothesis (ETH), -Max-CSP() is in FPT if and only if has bounded -submodular width.
Proof.
For the tractability part, suppose has bounded -submodular width and let be an instance of -Max-CSP() with the underlying hypergraph . Let be an enumeration of all the sub-instances of (that is, instances obtained from by removing some constraints) ordered in non-increasing order according to the number of constraints (and hence according to the number of edges in the underlying hypergraph). To compute the optimal value of , it suffices to find the first sub-instance according to that has a solution. Since each sub-instance has bounded submodular width, the existence of a solution can be checked in FPT by the result of [29]. Since the number of all sub-instances is bounded in terms of , the whole procedure can be done in FPT.
For the hardness, suppose that has unbounded -submodular width. Then for each we can take a subhypergraph such that the class has unbounded submodular width. By Marx’s result [29], assuming ETH, we have that CSP() is not in FPT. It suffices to show that CSP() fpt-reduces to -Max-CSP(). Let be an instance of CSP() with the underlying hypergraph . We start by enumerating until we find a hypergraph that contains as a subhypergraph . By definition of , such an must exist. Let be the instance of -Max-CSP() obtained from by additionally adding one empty constraint for each edge . We have that has a solution if and only if the optimal value of is the number of constraints in . Note that the reduction can be done in FPT time. ∎
Appendix C Collapse of -hypertreewidth and -fractional hypertreewidth
It follows from the definitions that , for every hypergraph . In this section we show that , for a fixed function (Proposition 33). The key ingredient of the proof is the following lemma, which we borrow from [16]. The VC dimension of a hypergraph , denoted by , is the size of the largest set such that . Note that the precise statement of this result as given in [16] (in the proof of Theorem 6.1) differs by a factor , but we believe that this is due to a typographical error on their side.
Lemma 31** ([16]).**
For any hypergraph , it holds that
[TABLE]
It follows that if a hypergraph has a fractional edge cover of small weight then it has a small edge cover unless its VC dimension is large. We will combine this fact with a straightforward upper bound on the VC dimension in terms of .
Lemma 32**.**
For any hypergraph , it holds that
[TABLE]
Proof.
Let be a subset of vertices of size such that . Let be the complete graph with vertex set . Since is a subhypergraph of and fhw does not increase by taking induced hypergraphs, it holds that . Now, let be a tree decomposition of of -width . For each , let be a fractional edge cover of such that . Since is a clique on , there exists such that , and hence . It follows that
[TABLE]
Hence,
[TABLE]
∎
Proposition 33**.**
For any hypergraph , it holds that
[TABLE]
Proof.
Let be a subhypergraph of , and be a tree decomposition of of -width at most . By Lemma 31 and Lemma 32, for each bag we have
[TABLE]
and hence the hypertreewidth of is at most . This is true for all choices of subhypergraph , so the claim follows. ∎
Corollary 34**.**
A class of hypergraphs has bounded -hypertreewidth if and only if it has bounded -fractional hypertreewidth.
Appendix D Coverwidth and MIM-width
In this section, we prove that bounded MIM-width strictly generalises bounded coverwidth. We start with some definitions. Let be a hypergraph and be an ordering of . For , we define to be the set of edges of that can be reached from using only vertices . More formally, a walk from to is a sequence with such that , , and , for all . Then if and only if there is a walk from to with , for all . Note that . We define , where . Observe that . The coverwidth of the ordering is . The coverwidth of , denoted by , is the minimum coverwidth over all orderings of . It was shown in [6] that bounded coverwidth implies tractability of Max-CSP:
Theorem 35** ([6]).**
Let be fixed. There exists an algorithm which, given as input a Max-CSP instance with hypergraph and an ordering of of coverwidth , computes in time polynomial in .
The main result of this section is the following:
Proposition 36**.**
For every hypergraph , we have .
Proof.
Fix an ordering of of coverwidth , where . Let . We define to be the rooted tree with vertex set and root such that is the parent of in if and only if and , or and . For , we define .
We claim that is a simplified point decomposition of of width . To see the bound on the width, note that . For condition (1) of simplified point decompositions, given , we have that , where . For condition (2), we need the following claim:
Claim 7**.**
Suppose that is a descendent of in and , where is the only child of that is ancestor of . Then .
Proof.
We show the claim by induction. For the base case, assume is the parent of , and let . It follows that there is a walk from to using vertices . Since , we have . In particular, there is with , and hence a walk from to using vertices . We can concatenate and , where is the reverse sequence of , and obtain a walk from to using vertices (since ). Hence, . Now suppose that is a descendant of and is the parent of , where . Let . By induction, . Using the same argument as above, we obtain that . ∎
Let be a subhypergraph of . Suppose that , and is in the unique path from to in , where . Assume first that is a descendant of . Since , there is a point such that and . By definition of , we have that . Since , we can apply Claim 7 and obtain that . Since , we have . Therefore, . Suppose now that and are incomparable in . Since , there is with and . Let be the only child of that is ancestor of . Since , by Claim 7, we have that . As , we have that . We can then apply Claim 7 and deduce that . In particular, . Since and are descendent of , we obtain that by applying the previous case. Hence condition (2) holds. ∎
Together with Theorem 20 and Proposition 27, we obtain that , for every hypergraph . In particular, we have:
Corollary 37**.**
Every class of hypergraphs of bounded coverwidth also has bounded MIM-width.
It follows from the proofs of Propositions 36, 29 and 24, that, given a hypergraph and an ordering of of coverwidth , we can compute in time polynomial in , a branch decomposition of of MIM-width . In particular, we obtain Theorem 35 as a consequence of Theorem 18.
Finally, we show that the converse to Corollary 37 does not hold:
Proposition 38**.**
There exists a class of hypergraphs with bounded MIM-width and unbounded coverwidth.
Proof.
For every , we define to be the hypergraph with vertex set , where and and edges . Let . We also define , for every ; and , for every .
We first prove that has unbounded coverwidth by showing that , for every . Let be any ordering of and assume without loss of generality that . Observe that . Then we have . Note that , , , is an induced matching of . By Observation 28, we obtain that , and hence, the coverwidth of the ordering is . Since this holds for any ordering, we have that .
Now we show that , for every . We define a branch decomposition for as follows. Let be the rooted path
[TABLE]
with root . The tree is obtained from by adding, for every , fresh nodes , whose parents are , respectively; and by adding for every , fresh nodes , whose parents are , respectively, and a fresh node with parent . For every , we let and ; for every , we let and ; and we set and .
We claim that the MIM-width of is at most . Let be an internal node (i.e., not a leaf) of . Suppose that for some (the case is analogous). Then we have that is the disjoint union of two complete bipartite graphs: one with partition and the other with partition . In particular, . Now suppose that for some (again, the case is analogous). In this case, is the union of a complete bipartite graph with partition and the graph obtained from the complete bipartite graph with partition by adding the vertex and the edge . Hence, . We conclude that , and therefore, that has bounded MIM-width. ∎
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] I. Adler, Width functions for hypertree decompositions, Ph.D. thesis, Albert Ludwig University of Freiburg (2006).
- 2[2] C. Beeri, R. Fagin, D. Maier, A. Mendelzon, J. Ullman, M. Yannakakis, Properties of acyclic database schemes, in: Proceedings of the 13th Annual ACM Symposium on Theory of Computing (STOC’81), 1981, pp. 355–362. doi:10.1145/800076.802489 . · doi ↗
- 3[3] C. Beeri, R. Fagin, D. Maier, M. Yannakakis, On the desirability of acyclic database schemes, Journal of the ACM 30 (3) (1983) 479–513. doi:10.1145/2402.322389 . · doi ↗
- 4[4] J. Brault-Baron, F. Capelli, S. Mengel, Understanding model counting for beta-acyclic CNF-formulas, in: Proceedings of the 32nd International Symposium on Theoretical Aspects of Computer Science (STACS’15), 2015, pp. 143–156. doi:10.4230/LIP Ics.STACS.2015.143 . · doi ↗
- 5[5] A. Bulatov, A dichotomy theorem for nonuniform CS Ps, in: Proceedings of the 58th Annual IEEE Symposium on Foundations of Computer Science (FOCS’17), IEEE, 2017, pp. 319–330. doi:10.1109/FOCS.2017.37 . · doi ↗
- 6[6] F. Capelli, Structural restrictions of CNF-formulas: applications to model counting and knowledge compilation, Ph.D. thesis, Université Paris Diderot (2016).
- 7[7] F. Capelli, Understanding the complexity of #SAT using knowledge compilation, in: Proceedings of the 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS’17), 2017, pp. 1–10. doi:10.1109/LICS.2017.8005121 . · doi ↗
- 8[8] C. Carbonnel, M. Romero, S. Živný, The complexity of general-valued CS Ps seen from the other side, in: Proceedings of the 59th Annual IEEE Symposium on Foundations of Computer Science (FOCS’18), IEEE, 2018, pp. 319–330. doi:10.1109/FOCS.2018.00031 . · doi ↗
