Definitionresearch
Fractional hypertree width
Also called fractional hypertree decomposition.
The width of a tree decomposition whose bags are covered by fractional edge covers; bounded width gives polynomial time join evaluation.
Fractional hypertree width is a width measure of a hypergraph that is never larger than hypertree width and is often much smaller. It uses a tree decomposition, as hypertree width does, but it covers each bag by a fractional edge cover, a weighting of the edges, instead of a set of edges. Grohe and Marx (2006, journal version 2014) defined it. If a conjunctive query has a decomposition of fractional width , then by the AGM bound each bag has at most partial answers on a database with tuples per relation, and the query can be evaluated in polynomial time.
Definition
Let be a hypergraph and .
Fractional edge cover. A fractional edge cover of is a map with for each . Its weight is . The fractional edge cover number is the smallest weight of a fractional edge cover of . It is the value of a linear program, so it can be computed in polynomial time, and by linear programming duality it equals the largest weight of a fractional independent set of .
Definition (Grohe and Marx 2006). A fractional hypertree decomposition of is a triple , where is a tree decomposition of and is a fractional edge cover of the bag for each node of . So:
- for each edge there is a node with ;
- for each vertex the set induces a connected subtree of ;
- for each node and each , .
Its width is . The fractional hypertree width is the smallest width of a fractional hypertree decomposition. Equivalently,
over all tree decompositions of . A decomposition with finitely many nodes is enough, so the minimum exists.
Comparisons (theorems). A set of edges that covers a bag is a fractional cover of weight . So
where is the generalized hypertree width. One bag with all vertices gives . Grohe and Marx showed that there are classes of hypergraphs of bounded fractional hypertree width and unbounded hypertree width, so the first inequality can be far from equality.
Evaluation (theorem). Let be a conjunctive query whose hypergraph has a fractional hypertree decomposition of width , given as part of the input, and let each relation have at most tuples. For each node , let be the join of the projections over all edges that meet . The cover , restricted to these projections, gives by the AGM bound, and a worst-case optimal join such as Generic Join computes in about that time. The relations form an acyclic query along with the same answers as , and the Yannakakis algorithm finishes in time polynomial in , the size of and the size of the output. This is combined complexity, and it is polynomial for each fixed .
The bound is on each bag, not on the answer. The path query is acyclic, so , but with and the answer has tuples.
Computing the width (theorems). Deciding is NP-complete (Fischl, Gottlob and Pichler 2018). For each fixed , Marx (2010) finds in polynomial time a fractional hypertree decomposition of width for each hypergraph with . This approximation is enough for polynomial evaluation of queries of bounded fractional hypertree width when no decomposition is given.
Examples and non-examples
- Acyclic hypergraphs. A join tree with has width 1, so . Each bag has at least one vertex that needs weight 1, so the width of a hypergraph with a nonempty edge is never less than 1.
- The triangle. The edges , , . One bag with weight on each edge covers each vertex with weight 1, so . Any tree decomposition has a bag with all three vertices, since they form a clique of the primal graph, and each edge covers only two of them, so a fractional cover needs weight at least . So , while . On a database with tuples per relation, the triangle query has at most answers.
- Complete graphs. For read as a hypergraph with binary edges, some bag has all vertices, and weight on each of the edges covers them. Each edge covers 2 vertices, so , while .
- Longer cycles gain nothing. Let , , be the cycle of binary edges, of hypertree width 2 (see hypertree width). The treewidth of a cycle is 2, so each tree decomposition has a bag with at least three vertices. Two of them are not adjacent, so no edge holds both, and each one needs weight 1 from its own edges. So each such bag needs weight 2, and . Among the cycles, only the triangle gains from fractional weights.
- Non-example: one cover of the whole query. is only an upper bound. For the path , , , , vertex needs weight 1 on , vertex needs weight 1 on , and vertex needs weight 1 on and together, so . But , since the path is acyclic.
Related definitions
- AGM bound. The AGM bound says that a join with a fractional edge cover of weight over all its variables has at most tuples. Fractional hypertree width applies the bound to each bag instead of to the whole query.
- Hypertree width. Hypertree width uses integral covers and the special condition. It is at least the fractional hypertree width.
- Worst-case optimal joins. Generic Join and Leapfrog Triejoin meet the AGM bound and so compute each bag in time close to .
- Fractional matchings. By duality, equals the largest weight of a fractional independent set of , the vertex version of a fractional matching.
- Treewidth. For graphs with binary edges, the cover number of a bag of vertices is at least and at most , so fractional hypertree width and treewidth are within a factor of about 2. For hypergraphs with large edges the gap can be unbounded.
References
- Martin Grohe and Daniel Marx, Constraint solving via fractional edge covers, ACM Transactions on Algorithms 11(1), article 4 (2014); first in SODA 2006, 289 to 298, the definition of fractional hypertree width, the polynomial-time evaluation for bounded width when a decomposition is given, and classes where it is much smaller than hypertree width
- Daniel Marx, Approximating fractional hypertree width, ACM Transactions on Algorithms 6(2), article 29 (2010); first in SODA 2009, 902 to 911, for fixed w, a decomposition of width O(w^3) in polynomial time for each hypergraph of fractional hypertree width at most w
- Wolfgang Fischl, Georg Gottlob and Reinhard Pichler, General and fractional hypertree decompositions, hard and easy cases, Proceedings of the 37th ACM Symposium on Principles of Database Systems (PODS), 17 to 32 (2018), deciding whether the fractional hypertree width is at most 2 is NP-complete
- Albert Atserias, Martin Grohe and Daniel Marx, Size bounds and query plans for relational joins, SIAM Journal on Computing 42(4), 1737 to 1767 (2013), the bound on the size of a join by a fractional edge cover, used for each bag
- Georg Gottlob, Nicola Leone and Francesco Scarcello, Hypertree decompositions and tractable queries, Journal of Computer and System Sciences 64(3), 579 to 627 (2002), hypertree decompositions, which fractional hypertree decompositions generalize
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag TQRKBW Edit this page History Report an error Markdown