• Aucun résultat trouvé

Conjunctive Queries on Probabilistic Graphs: Combined Complexity

N/A
N/A
Protected

Academic year: 2022

Partager "Conjunctive Queries on Probabilistic Graphs: Combined Complexity"

Copied!
86
0
0

Texte intégral

(1)

Conjunctive Queries on Probabilistic Graphs:

Combined Complexity

Antoine Amarilli1,Mikaël Monet1,2, Pierre Senellart2,3 May 16th, 2017

1LTCI, Télécom ParisTech, Université Paris-Saclay; Paris, France

2Inria Paris; Paris, France

3École normale supérieure, PSL Research University; Paris, France

(2)

Tuple-independent databases (TID)

Probabilistic databases:modeluncertaintyabout data

Simplest model:tuple-independent databases(TID)

• Arelational databaseI

• Aprobability valuationπmapping each fact ofIto[0,1]

Semanticsof a TID(I, π): aprobability distributiononI0I:

• Each factFIis eitherpresentorabsentwith probabilityπ(F)

• Assumeindependenceacross facts

(3)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(4)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(5)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(6)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(7)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(8)

Example: TID

S a b .5 a c .2

This TID(I, π)represents the followingprobability distribution:

.5×.2 S a b a c

.5×(1−.2) S

a b

(1−.5)×.2 S

a c

(1−.5)×(1−.2) S

(9)

Probabilistic query evaluation (PQE)

Let us fix:

Relational signatureσ

ClassI ofrelational instancesonσ (e.g., acyclic, treelike)

ClassQofBoolean queries(e.g., paths, trees)

Probabilistic query evaluation(PQE) problem forQandI:

Given aqueryq∈ Q

Given aninstanceI∈ I and aprobability valuationπ

Compute theprobabilitythat(I, π)satisfiesq

→ Pr((I, π)|=q) =P

J⊆I,J|=qPr(J)

(10)

Probabilistic query evaluation (PQE)

Let us fix:

Relational signatureσ

ClassI ofrelational instancesonσ (e.g., acyclic, treelike)

ClassQofBoolean queries(e.g., paths, trees)

Probabilistic query evaluation(PQE) problem forQandI:

Given aqueryq∈ Q

Given aninstanceI∈ I and aprobability valuationπ

Compute theprobabilitythat(I, π)satisfiesq

→ Pr((I, π)|=q) =P

J⊆I,J|=qPr(J)

(11)

Probabilistic query evaluation (PQE)

Let us fix:

Relational signatureσ

ClassI ofrelational instancesonσ (e.g., acyclic, treelike)

ClassQofBoolean queries(e.g., paths, trees)

Probabilistic query evaluation(PQE) problem forQandI:

Given aqueryq∈ Q

Given aninstanceI∈ I and aprobability valuationπ

Compute theprobabilitythat(I, π)satisfiesq

→ Pr((I, π)|=q) =P

J⊆I,J|=qPr(J)

(12)

Complexity of probabilistic query evaluation (PQE)

Question:what is the (data, combined)complexityof PQE depending on the classQofqueriesand classI ofinstances?

(13)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI (under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(14)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI (under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(15)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI (under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(16)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI (under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(17)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI (under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(18)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI(under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What aboutcombinedcomplexity?

(19)

Data complexity results

Existingdata dichotomy resulton queries [Dalvi & Suciu, 2012]

Q=UCQs

I is all instances

• There is a classS ⊆ Qofsafe queries

PQE isPTIMEfor anyq∈ S

PQE is#P-hardfor anyq∈ Q\S

Existingdata dichotomy resulton instances

PQE forMSOonbounded-treewidthinstances haslineardata complexity [Amarilli, Bourhis, & Senellart, 2015]

There is an FO query for which PQE is#P-hardonany

unbounded-treewidth graph familyI(under some assumptions) [Amarilli, Bourhis, & Senellart, 2016]

What about complexity?

(20)

Restrict to CQs on graph signatures

∃x y z t R(x,y)S(y,z)S(t,z)

x R y S z S t

R a b .1 b c .1 c d .05 d a 1.

d b .8 S b d .7

d

c b

a R 1.

R .1 R

.1

R .05 S

a .7 R a .8

(21)

Restrict to CQs on graph signatures

∃x y z t R(x,y)S(y,z)S(t,z)x R y S z S t R

a b .1 b c .1 c d .05 d a 1.

d b .8 S b d .7

d

c b

a R 1.

R .1 R

.1

R .05 S

a .7 R a .8

(22)

Restrict to CQs on graph signatures

∃x y z t R(x,y)S(y,z)S(t,z)x R y S z S t R

a b .1 b c .1 c d .05 d a 1.

d b .8 S b d .7

d

c b

a R 1.

R .1 R

.1

R .05 S

a .7 R a .8

(23)

Restrict instances to trees

Q=one-way paths(1WP),I =polytrees(PT)

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S

T S

T

Proposition

PQE of1WPonPTis#P-hard

(24)

Restrict instances to trees

Q=one-way paths(1WP),I =polytrees(PT)

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S

T S

T

Proposition

PQE of1WPonPTis#P-hard

(25)

Restrict instances to trees

Q=one-way paths(1WP),I =polytrees(PT)

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S

T S

T

Proposition

PQE of1WPonPTis#P-hard

(26)

Restrict instances to trees

Q=one-way paths(1WP),I =polytrees(PT)

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S

T S

T

Proposition

PQE of1WPonPTis#P-hard

(27)

Q=one-way paths,I =polytrees, without labels

What if wedo not have labels?

Probability that the instance graph has a path of length|Q|

PTIME: Bottom-up, e.g., tree automaton

Labelshave an impact!

Q: T S S S T

I:

T T

T T

S S

S S

S

S T

S T

(28)

Q=one-way paths,I =polytrees, without labels

What if wedo not have labels?

Probability that the instance graph has a path of length|Q|

PTIME: Bottom-up, e.g., tree automaton

Labelshave an impact!

Q:

I:

+ prob. for each edge

(29)

Q=one-way paths,I =polytrees, without labels

What if wedo not have labels?

Probability that the instance graph has a path of length|Q|

PTIME: Bottom-up, e.g., tree automaton

Labelshave an impact!

Q:

I:

(30)

Q=one-way paths,I =polytrees, without labels

What if wedo not have labels?

Probability that the instance graph has a path of length|Q|

PTIME: Bottom-up, e.g., tree automaton

Labelshave an impact!

Q:

I:

+ prob. for each edge

(31)

Q=one-way paths,I =polytrees, without labels

What if wedo not have labels?

Probability that the instance graph has a path of length|Q|

PTIME: Bottom-up, e.g., tree automaton

Labelshave an impact!

Q:

I:

(32)

Q=two-way paths,I =polytrees, without labels

Q=one-way paths(1WP),I=polytrees(PT)

#P-hard

Global orientationof thequeryhas an impact

Q:

I:

+ prob. for each edge

(33)

Q=two-way paths,I =polytrees, without labels

Q=two-way paths(2WP),I=polytrees(PT)

#P-hard

Global orientationof thequeryhas an impact

Q:

I:

+ prob. for each edge

(34)

Q=two-way paths,I =polytrees, without labels

Q=two-way paths(2WP),I=polytrees(PT)

#P-hard

Global orientationof thequeryhas an impact

Q:

I:

+ prob. for each edge

(35)

Q=two-way paths,I =polytrees, without labels

Q=two-way paths(2WP),I=polytrees(PT)

#P-hard

Global orientationof thequeryhas an impact

Q:

I:

+ prob. for each edge

(36)

Q=one-way paths,I =downwards trees

Q=one-way paths(1WP),I=polytrees(PT)

PTIMEalso:β-acyclicity of the lineage

Global orientationof theinstancealso has an impact!

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

(37)

Q=one-way paths,I =downwards trees

Q=one-way paths(1WP),I=downwards trees(DWT)

PTIMEalso:β-acyclicity of the lineage

Global orientationof theinstancealso has an impact!

Q: T S S S T

I:

T T

T T

S S

S S

S

S T

S T

(38)

Q=one-way paths,I =downwards trees

Q=one-way paths(1WP),I=downwards trees(DWT)

PTIMEalso:β-acyclicity of the lineage

Global orientationof theinstancealso has an impact!

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

(39)

Q=one-way paths,I =downwards trees

Q=one-way paths(1WP),I=downwards trees(DWT)

PTIMEalso:β-acyclicity of the lineage

Global orientationof theinstancealso has an impact!

Q: T S S S T

I:

T T

T T

S S

S S

S

S T

S T

(40)

Q=downwards trees,I =downwards trees, with labels

Q=one-way paths(1WP),I=downwards trees

#P-hard

Branchinghas an impact!

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

(41)

Q=downwards trees,I =downwards trees, with labels

Q=downwards trees(DWT),I =downwards trees

#P-hard

Branchinghas an impact!

Q:

T

S S

S

I:

T T

T T

S S

S S

S

S T

S T

(42)

Q=downwards trees,I =downwards trees, with labels

Q=downwards trees(DWT),I =downwards trees

#P-hard

Branchinghas an impact!

Q:

T

S S

S

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

(43)

Q=downwards trees,I =downwards trees, with labels

Q=downwards trees(DWT),I =downwards trees

#P-hard

Branchinghas an impact!

Q:

T

S S

S

I:

T T

T T

S S

S S

S

S T

S T

(44)

Our graph classes

1WP

2WP

R S S T

R S S T R

DWT PT

1WP

2WP DWT

PT Connected All

⊆ ⊆

⊆ ⊆

⊆ ⊆

(45)

Results

↓Q I→ 1WP 2WP DWT PT Connected 1WP

• •

2WP

DWT PTIME

PT #P-hard

Connected

>2labels

↓Q I→ 1WP 2WP DWT PT Connected 1WP

2WP

DWT PTIME

PT #P-hard

Connected

• •

No labels

(46)

Results

↓Q I→ 1WP 2WP DWT PT Connected 1WP

• •

2WP

DWT PTIME

PT #P-hard

Connected

>2labels

↓Q I→ 1WP 2WP DWT PT Connected 1WP

2WP

DWT PTIME

PT #P-hard

Connected

• •

No labels

(47)

Results

↓Q I→ 1WP 2WP DWT PT Connected

1WP • •

2WP •

DWT PTIME •

PT #P-hard

Connected •

>2labels

↓Q I→ 1WP 2WP DWT PT Connected

1WP •

2WP •

DWT PTIME •

PT #P-hard

Connected • •

No labels

(48)

Results

↓Q I→ 1WP 2WP DWT PT Connected 1WP

• 2WP

DWT PTIME

PT #P-hard

Connected

>2labels

↓Q I→ 1WP 2WP DWT PT Connected 1WP

2WP

DWT PTIME

PT #P-hard

Connected

• •

No labels

(49)

Reduction forQ=one-way paths,I =polytrees

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

Reduction from#P-hardproblem#PP2DNF:

INPUT:Boolean formulaϕ=W

j=1...m(XxjYyj)on variables {X1, . . . ,Xn1} t {Y1, . . . ,Yn2}

OUTPUT:number of satisfying assignments ofϕ

(50)

Reduction forQ=one-way paths,I =polytrees

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

Reduction from#P-hardproblem#PP2DNF:

INPUT:Boolean formulaϕ=W

j=1...m(XxjYyj)on variables {X1, . . . ,Xn1} t {Y1, . . . ,Yn2}

OUTPUT:number of satisfying assignments ofϕ

(51)

Reduction forQ=one-way paths,I =polytrees

Q: T S S S T

I:

+ prob. for each edge

T T

T T

S S

S S

S

S T

S T

Reduction from#P-hardproblem#PP2DNF:

INPUT:Boolean formulaϕ=W

j=1...m(XxjYyj)on variables {X1, . . . ,Xn1} t {Y1, . . . ,Yn2}

OUTPUT:number of satisfying assignments ofϕ

(52)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X2 Y1 YY22

Q:

(53)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X2 Y1 YY22

(54)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X2 Y1 YY22

Q:

(55)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2

Y1 YY22

S S

(56)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

Q:

(57)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

(58)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S

Q:

(59)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

(60)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

Q:

(61)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

(62)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T T

Q:

(63)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

(64)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

T Q:

(65)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

T

(66)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(67)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

T

(68)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S

S S S

S S S

S S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(69)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S S

S S S

S S S

S S S T

T

T

T

T

T

(70)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S S

S S S

S S S

S S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(71)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S S

S S S

S S S

S S S T

T

T

T

T

T

(72)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S S

S S S

S S S

S

S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(73)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1 Y2

Y2

S S S S

S S S S

S S S

S S S

S

S S T

T

T

T

T

T

(74)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1

Y2

Y2

S S S S

S S S S

S S S

S S S

S

S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(75)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1

Y2

Y2

S S S S

S S S S

S S S

S S S

S

S S T

T

T

T

T

T

(76)

Reduction forQ=one-way paths,I =polytrees ϕ=X1Y2X1Y1X2Y2

#ϕ=Pr((I, π)|=Q)×2|vars(ϕ)|

I:

X1 X2 Y1

Y2

Y2

S S S S

S S S S

S S S

S S S

S

S S T

T

T

T

T

T Q: −−→T −−→S −−→S −−→S −−→S −−→S −−→S −−→T

(77)

Disconnected graphs

We also introduce the classesF

1WP(resp.,F

2WP,F

DWT,F PT) of graphs that aredisjoint unions of1WP(resp.,2WP,DWT,PT)

↓G H→ 1WP 2WP DWT PT Connected F1WP

F2WP FDWT FPT

All

No labels

With labels, PQE ofF

1WPon1WPis already#P-hard!

(78)

Disconnected graphs

We also introduce the classesF

1WP(resp.,F

2WP,F

DWT,F PT) of graphs that aredisjoint unions of1WP(resp.,2WP,DWT,PT)

↓G H→ 1WP 2WP DWT PT Connected F1WP

F2WP FDWT FPT

All

No labels

With labels, PQE ofF

1WPon1WPis already#P-hard!

(79)

Disconnected graphs

We also introduce the classesF

1WP(resp.,F

2WP,F

DWT,F PT) of graphs that aredisjoint unions of1WP(resp.,2WP,DWT,PT)

↓G H→ 1WP 2WP DWT PT Connected F1WP

F2WP FDWT FPT

All

No labels

With labels, PQE ofF

1WPon1WPis already#P-hard!

(80)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem: labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(81)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem: labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(82)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem:

labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(83)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem:

labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(84)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem:

labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(85)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem:

labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

(86)

Conclusion

Contributions:

Detailed study of thecombinedcomplexity of PQE

Focus on CQs on arity-two signatures

Showed the importance of various features on the problem:

labels, global orientation, branching, connectedness

Established the complexity for all combinations of the graph classes we considered

Drawbacks and future work:

Our graph classes may seem “arbitrary”

Not yet a dichotomy, just starting to understand the problem

Practical applications?

Thanks for your attention!

Références

Documents relatifs

The original purpose—of providing a provincial voice for naturalists on environmental is- sues—remains as one of the Federation's objectives, in addition to which there is now a

If u 1 is to the left and u 2 to the right of a (u ′ 1 and u ′ 2 are both still to the left of b), then the imbalance of the gadget in the natural ordering in this situation is 18

Surprisingly, a very broad and well-studied set of queries appears to lie within this class: as shown in [Yan81] (see also [FFG02] for a precise bound), ACQ, the acyclic

We have shown that Problem 1 which is NP-complete for arbitrary graphs be- comes decidable in polynomial time for graphs belonging to any minor-closed family that does not contain

Dies beinhaltet aber faktisch, daß τρόπος τής ύπάρξεως nicht nur auf den Sohn angewendet wird, sondern auch auf den Vater, mindestens in indirekter Weise (vgl..

We consider stan- dard decision problems associated to logic-based abduction: (i) existence of an expla- nation, (ii) recognition of a given ABox as being an explanation, and

On the positive side, we show that the unweighted problem is polynomial-time solvable for proper interval graphs, and that the weighted cluster deletion prob- lem is

Crossdocking is a warehouse management concept in which items delivered to a warehouse by inbound trucks are quickly sorted out, reorganized based on customer demands and loaded