<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>General and Fractional Hypertree Decompositions: Hard and Easy Cases (Extended Abstract)?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Wolfgang Fischl</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Georg Gottlob</string-name>
          <email>georg.gottlob@cs.ox.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Reinhard Pichler</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Oxford</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Hypertree decompositions, generalized hypertree decompositions, and fractional hypertree decompositions are hypergraph decomposition methods successfully used for answering conjunctive queries and for the solution of constraint satisfaction problems. In this work, we present new intractability and tractability results for the problem of recognizing if a given hypergraph has a generalized or fractional hypertree decomposition of low width.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Clearly, bounded fhw defines the largest tractable class while bounded hw defines
the smallest one. On the other hand, only the problem CHECK(HD, k) is known to be
feasible in polynomial time [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. CHECK(GHD, k) has been shown to be NP-complete
? This is an extended abstract of [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
for k 3 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The status of CHECK(FHD, k) has been open for over a decade [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
The goal of this work is therefore as follows: first, we want to identify the
complexity of the CHECK(FHD, k) problem. Ideally, we would also like to close the gap of
CHECK(GHD, k) for k = 2. Note that this is an important special case since CQs tend
to have low hw and, thus also low ghw [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Finally, we want to define meaningful
classes of hypergraphs for which the CHECK(GHD, k) and CHECK(FHD, k) problems
become tractable.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Basic Definitions</title>
      <p>Formally both, CQs and CSPs, are first-order formulae using only f9; ^g as
connectives. but not f8; _; :g. Now consider an arbitrary CQ or CSP, i.e., an FO-formula
with connectives f9; ^g. The hypergraph corresponding to is defined as hypergraph
H = (V (H); E(H)), where the set of vertices V (H) is defined as the set of variables
in and the set of edges E(H) is defined as E(H) = fe j contains an atom A, s.t. e
equals the set of variables occurring in Ag.</p>
      <p>We consider here three notions of hypergraph decompositions with associated
notions of width. To this end, we first introduce the notion of (fractional) edge covers.
Let H = (V (H); E(H)) be a hypergraph and consider a function : E(H) ! [0; 1].
Then, we define the set B( ) of all vertices covered by and the weight of as
8
&lt;
:
B( ) =
v 2 V (H) j</p>
      <p>X
e2E(H);v2e
(e)
9
=
1 ; weight ( ) =
;</p>
      <p>
        X
e2E(H)
(e):
The special case of a function with values restricted to f0; 1g, will usually be denoted
by , i.e., : E(H) ! f0; 1g. Note that, following [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], can also be seen as a set with
      </p>
      <p>E(H) (i.e., the set of edges e with (e) = 1) and the weight as the cardinality of
such a set of edges.</p>
      <p>We are now ready to introduce our three notions of hypergraph decompositions and
their width measures.</p>
      <p>Definition 1. A generalized hypertree decomposition (GHD) of a hypergraph H =
(V (H); E(H)) is a tuple T; (Bu)u2N(T ); ( )u2N(T ) , such that T = hN (T ); E(T )i
is a rooted tree and the following conditions hold:
(1) for each e 2 E(H), there is a node u 2 N (T ) with e Bu;
(2) for each v 2 V (H), the set fu 2 N (T ) j v 2 Bug is connected in T ;
(3) for each u 2 N (T ), u is a function u : E(H) ! f0; 1g with Bu</p>
      <p>
        We use the following notational conventions. To avoid confusion, we will
consequently refer to the elements in V (H) as vertices of the hypergraph and to the elements
in N (T ) as the nodes of the decomposition. For a node u in T , we write Tu to denote
the subtree of T rooted at u. By slight abuse of notation, we will write u0 2 Tu to denote
that u0 is a node in the subtree Tu of T . Finally, we define V (Tu) := Su02Tu Bu0 .
Definition 2. A hypertree decomposition (HD) of a hypergraph H = (V (H); E(H))
is a GHD, which in addition also satisfies the following condition:
(4) for each u 2 N (T ), V (Tu) \ B( u)
Definition 3. A fractional hypertree decomposition (FHD) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] of a hypergraph H =
(V (H); E(H)) is a tuple T; (Bu)u2N(T ); ( )u2N(T ) , where conditions (1) and (2)
of Definition 1 plus condition (3’) hold:
(3’) for each u 2 N (T ), u is a function u : E(H) ! [0; 1] with Bu
      </p>
      <p>The width of a GHD, HD, or FHD is the maximum weight of the functions u
or u, respectively, over all nodes u in T . The generalized hypertree width, hypertree
width, and fractional hypertree width of H (denoted ghw (H), hw (H), fhw (H)) is the
minimum width over all GHDs, HDs, and FHDs of H, respectively.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Main Results</title>
      <p>On the negative side, the main result of our work is the following NP-completeness (in
particular, the NP-hardness) result:
Theorem 1. The CHECK(FHD, k) problem is NP-complete for k = 2.</p>
      <p>
        The NP-hardness proof is by reduction from the 3-SAT problem. It can be easily
extended to arbitrary (possibly fractional) k 3 (see [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for details). For fractional k
with 1 &lt; k &lt; 3, the precise complexity remains an open question for future work.
      </p>
      <p>The construction in the proof of Theorem 1 also gives us the following result:
Theorem 2. The CHECK(GHD, k) problem is NP-complete for k = 2.</p>
      <p>On the positive side, we identify general, realistic, and non-trivial restrictions that
make the CHECK(GHD, k) and CHECK(FHD, k) problems tractable. More precisely,
we concentrate on the following three properties:
Definition 4. We say that a class C of hypergraphs has the bounded intersection
property (BIP) if there exists some constant i such that for every hypergraph H in C , the
cardinality of any intersection e1 \ e2 of two distinct edges e1 and e2 of H is i.</p>
      <p>We say that a class C of hypergraphs has the bounded multi-intersection property
(BMIP) if there exist constants c and i such that for every hypergraph H in C , the
cardinality of any intersection e1 \ \ ec of c distinct edges e1; : : : ; ec of H is i.</p>
      <p>We say that a class C of hypergraphs has bounded degree, if there exists d 1,
such that for every hypergraph H 2 C , jfe 2 E(H) j v 2 E(H)gj d holds, i.e.,
every vertex occurs in at most d edges.</p>
      <p>
        In an empirical analysis of several CQ and CSP instances we have verified that an
overwhelming number of the instances enjoy these properties for low constants i, c, or
d, respectively [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. With these restrictions, we get the following tractability result.
Theorem 3. Let C be a class of hypergraphs. If C has the BMIP, then the
CHECK(GHD, k) problem is in P for arbitrary k &gt; 0. Moreover, in case of a
positive instance, a GHD of width k can be computed in polynomial time. Consequently,
this tractability holds if C has bounded degree or the BIP (which each imply the BMIP).
      </p>
      <p>Unfortunately, the tractability proof for the BMIP in Theorem 3 does not directly
carry over to FHDs. However, by combining two restrictions, we also manage to
identify an interesting tractable fragment for the CHECK(FHD, k) problem.
Theorem 4. Let C be a class of hypergraphs. If C has the BIP and bounded degree,
then the CHECK(FHD, k) problem is in P for arbitrary k &gt; 0. Moreover, in case of a
positive instance, an FHD of width k can be computed in polynomial time.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>
        Our main results shown in this work are, on the one hand, the NP-completeness proof
of the CHECK(decomp, k) problem for decomp 2 fGHD, FHDg and k = 2 and, on the
other hand, the identification of tractable fragments of these problems. The tractability
results for CHECK(FHD, k) are significantly weaker than for CHECK(GHD, k).
Further results in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] therefore deal with efficient approximations of the CHECK(FHD, k)
problem. More precisely, we could show that polynomial-time approximation up to
a logarithmic factor is possible for any class of hypergraphs with bounded Vapnik–
Chervonenkis dimension. This is a much closer approximation than the cubic
approximation for the general case shown in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Moreover, in a follow-up work, we have
meanwhile managed to show tractability of CHECK(FHD, k) in case of bounded degree
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. An interesting open problem is, if the weaker restriction of the BMIP also suffices
to guarantee tractability. If not, then the effect of the BIP alone on the CHECK(FHD, k)
problem has to be investigated.
      </p>
      <p>Acknowledgements. This work was supported by the Engineering and Physical
Sciences Research Council (EPSRC), Programme Grant EP/M025268/ VADA: Value
Added Data Systems — Principles and Architecture as well as by the Austrian Science
Fund (FWF):P25518-N23 and P30930-N35.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Bonifati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Martens</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Timm</surname>
          </string-name>
          .
          <article-title>An analytical study of large SPARQL query logs</article-title>
          .
          <source>PVLDB</source>
          ,
          <volume>11</volume>
          (
          <issue>2</issue>
          ):
          <fpage>149</fpage>
          -
          <lpage>161</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>A. K.</given-names>
            <surname>Chandra</surname>
          </string-name>
          and
          <string-name>
            <given-names>P. M.</given-names>
            <surname>Merlin</surname>
          </string-name>
          .
          <article-title>Optimal implementation of conjunctive queries in relational data bases</article-title>
          .
          <source>In Proc. STOC</source>
          <year>1977</year>
          , pages
          <fpage>77</fpage>
          -
          <lpage>90</lpage>
          . ACM,
          <year>1977</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>W.</given-names>
            <surname>Fischl</surname>
          </string-name>
          , G. Gottlob, and
          <string-name>
            <given-names>R.</given-names>
            <surname>Pichler</surname>
          </string-name>
          .
          <article-title>Tractable cases for recognizing low fractional hypertree width</article-title>
          . viXra.org e-prints,
          <source>viXra:1708.0373</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>W.</given-names>
            <surname>Fischl</surname>
          </string-name>
          , G. Gottlob, and
          <string-name>
            <given-names>R.</given-names>
            <surname>Pichler</surname>
          </string-name>
          .
          <article-title>General and fractional hypertree decompositions: Hard and easy cases</article-title>
          .
          <source>In Proc. PODS</source>
          <year>2018</year>
          . ACM,
          <year>2018</year>
          . Full version available at http: //arxiv.org/abs/1611.01090.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Leone</surname>
          </string-name>
          , and
          <string-name>
            <given-names>F.</given-names>
            <surname>Scarcello</surname>
          </string-name>
          .
          <article-title>Hypertree decompositions and tractable queries</article-title>
          .
          <source>J. Comput. Syst. Sci.</source>
          ,
          <volume>64</volume>
          (
          <issue>3</issue>
          ):
          <fpage>579</fpage>
          -
          <lpage>627</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <surname>Z.</surname>
          </string-name>
          <article-title>Miklo´s, and</article-title>
          <string-name>
            <given-names>T.</given-names>
            <surname>Schwentick</surname>
          </string-name>
          .
          <article-title>Generalized hypertree decompositions: NPhardness and tractable variants</article-title>
          .
          <source>J. ACM</source>
          ,
          <volume>56</volume>
          (
          <issue>6</issue>
          ):
          <volume>30</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>30</lpage>
          :
          <fpage>32</fpage>
          ,
          <string-name>
            <surname>Sept</surname>
          </string-name>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>M.</given-names>
            <surname>Grohe</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Marx</surname>
          </string-name>
          .
          <article-title>Constraint solving via fractional edge covers</article-title>
          .
          <source>In Proc. SODA</source>
          <year>2006</year>
          , pages
          <fpage>289</fpage>
          -
          <lpage>298</lpage>
          . ACM Press,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>M.</given-names>
            <surname>Grohe</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Marx</surname>
          </string-name>
          .
          <article-title>Constraint solving via fractional edge covers</article-title>
          .
          <source>ACM Trans. Algorithms</source>
          ,
          <volume>11</volume>
          (
          <issue>1</issue>
          ):4:
          <fpage>1</fpage>
          -
          <lpage>4</lpage>
          :
          <fpage>20</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>D.</given-names>
            <surname>Marx</surname>
          </string-name>
          .
          <article-title>Approximating fractional hypertree width</article-title>
          .
          <source>ACM Trans. Algorithms</source>
          ,
          <volume>6</volume>
          (
          <issue>2</issue>
          ):
          <volume>29</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>29</lpage>
          :
          <fpage>17</fpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>