Enumerating Tree Decompositions
Nofar Carmeli Batya Kenig Benny Kimelfeld
Technion – Israel Institute of Technology
1
Enumerating Tree Decompositions Nofar Carmeli Batya Kenig Benny - - PowerPoint PPT Presentation
Enumerating Tree Decompositions Nofar Carmeli Batya Kenig Benny Kimelfeld Technion Israel Institute of Technology 1 Motivation Q1: Is there a manager with a relative in the company? Manages: Relative: Works: Employee Project Emp1
Nofar Carmeli Batya Kenig Benny Kimelfeld
Technion – Israel Institute of Technology
1
works Emp1,Proj1 ∧ manages Emp2,Proj2 ∧ relative Emp1, Emp2
Proj1 Emp1 Emp2 Proj2
2
Employee Project Alice A Anna A Bob B Barak B Employee Project Ester A Fady B Gil C Hava D Emp1 Emp2 Barak Hava Anna Ester Carl Clement David Dan Works: Manages: Relative:
works Emp1,Proj ∧ manages Emp2,Proj ∧ relative Emp1,Emp2
Proj Emp1 Emp2
3
Employee Project Alice A Anna A Bob B Barak B Employee Project Ester A Fady B Gil C Hava D Employee Employee Barak Hava Anna Ester Carl Clement David Dan Works: Manages: Relative:
[Chandra&Merlin77]
conjunctive queries [Chekuri&Rajaraman97]
Q2 – cyclic Q1 – acyclic
Proj1 Emp1 Emp2 Proj2 Proj Emp1 Emp2
4
Every edge is contained in some bag Tree Every node
connected subtree
Graph Tree decomposition
5
6
Graph Tree decompositions
7
Flexible Caching in Trie Joins [Kalinsky+16]
Query TD1 TD2
TD1 runs 100 times faster!
8
decompositions using machine learning [Abseher+15]
9
10
Graph Better tree decomposition
11
Tree decomposition Better tree decomposition
Problem: exponentially many TDs, what is an “efficient” algorithm?
12
[Johnson,Papadimitriou,Yannakakis 88]
13
start time
polynomial total time
Running time is polynomial in input + output
incremental polynomial time
Delay before answer i is polynomial in input + i start time start time
polynomial delay
Delay between successive answers is poly(input)
14
15
Chord:
Not Chordal Chordal
[Jordan02][Gavril74] [Yamada+10]
16
1 1 2
Adding a proper subset of the edges does not make it chordal
17
Graph Minimal triangulation Triangulation
classes of bag equivalent proper TDs ↔ min triangulations
18
19
Removing these nodes separates some u and v No proper subset separates u and v
One of them separates nodes of the other
20
and
and
↔
/
↔
/
↔
/
minimal triangulations ↔ maximal sets of non crossing minimal separators
21
22
23
Problem: The graph may be of exponential size! Challenge: Solve without generating the graph
Enumerating max independent sets can be done in polynomial delay [Johnson+88]
24
properties [Cohen+08]
independent sets.
25
decomposition algorithm
26
Enumerate proper TDs Enumerate min triangulations Enumerate max independent sets
27
Single min triangulation
28
29
30
1000 2000 3000 4000 5000 6000 7000 10 20 30 40 50 5 10 15 20 25 30
fill width time (minutes)
1000 2000 3000 4000 5000 5 10 15 20 25 30
number of results time (minutes)
results min width results ≤w1 results
46 39 6232 3934
31
1 2 3 4 5 6 50 100 150 200
average delay (seconds) number of nodes
MCS-M
p=0.3 p=0.5 p=0.7
1 2 3 4 5 6 50 100 150 200
number of nodes
LB-Triang
alg. measure avg #results avg #≤first avg min avg %improv max %improv MCS-M width 33635.0 12733.4 20.2 2.6% 26.3% MCS-M fill 33635.0 12724.9 2043.8 14.4% 55.8% LB-T(fill) width 11998.3 4744.1 18.5 3.4% 20.7% LB-T(fill) fill 11998.3 1013.6 965.8 2.2% 27.6%
32
33