• Aucun résultat trouvé

Draft ConnectingWidthandStructureinKnowledgeCompilation

N/A
N/A
Protected

Academic year: 2022

Partager "Draft ConnectingWidthandStructureinKnowledgeCompilation"

Copied!
114
0
0

Texte intégral

(1)

Dr aft

Connecting Width and Structure in Knowledge Compilation

Antoine Amarilli1, Mikaël Monet1,3,Pierre Senellart1,2,3 October 4th, 2018 (results from ICDT 2018 paper)

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

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

3Inria; Paris, France

(2)

Dr aft

What is Knowledge Compilation?

You have atask

Boolean SAT (is there a satisfying assignment?)

#SAT (model counting) (how many satisfying assignments?)

probabilistic evaluation

enumeration

Idea: compilethe input into a format that isdesignedto solve efficiently your task

1/20

(3)

Dr aft

What is Knowledge Compilation?

You have atask

Boolean SAT (is there a satisfying assignment?)

#SAT (model counting) (how many satisfying assignments?)

probabilistic evaluation

enumeration

Idea: compilethe input into a format that isdesignedto solve efficiently your task

1/20

(4)

Dr aft

What is Knowledge Compilation?

You have atask

Boolean SAT (is there a satisfying assignment?)

#SAT (model counting) (how many satisfying assignments?)

probabilistic evaluation

enumeration

Idea: compilethe input into a format that isdesignedto solve efficiently your task

1/20

(5)

Dr aft

What is Knowledge Compilation?

You have atask

Boolean SAT (is there a satisfying assignment?)

#SAT (model counting) (how many satisfying assignments?)

probabilistic evaluation

enumeration

Idea: compilethe input into a format that isdesignedto solve efficiently your task

1/20

(6)

Dr aft

What is Knowledge Compilation?

You have atask

Boolean SAT (is there a satisfying assignment?)

#SAT (model counting) (how many satisfying assignments?)

probabilistic evaluation

enumeration

Idea: compilethe input into a format that isdesignedto solve efficiently your task

1/20

(7)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result

Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(8)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result

Input classC3 Algo. 3 Result ...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(9)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(10)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(11)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result

Algo.10 Algo. 20 Algo.30

2/20

(12)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(13)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20

Algo.30

2/20

(14)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:

modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(15)

Dr aft

Why would I do that?

Without knowledge compilation Input classC1 Algo. 1 Result Input classC2 Algo. 2 Result Input classC3 Algo. 3 Result

...

With knowledge compilation:modularity!

Input class C1 Input class C2 Input class C3

Compilation target

for your task Generic algo. Result Algo.10

Algo. 20 Algo.30

2/20

(16)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(17)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(18)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table Evaluation

SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(19)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table O(1) Evaluation

SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(20)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table O(1) Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(21)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table O(1) O(n)

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(22)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table O(1) O(n)

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(23)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Truth table O(1) O(n) O(n)

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(24)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

DNF Evaluation

SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(25)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

DNF O(n) Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(26)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

DNF O(n)

O(n)

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(27)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

DNF O(n)

O(n)

#P-hard

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(28)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(29)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit O(n) Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(30)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit O(n) NP-hard

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(31)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit O(n) NP-hard

#P-hard

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(32)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit O(n) NP-hard

#P-hard

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(33)

Dr aft

Studying the compilation targets

Tradeoffs between:

Complexity of compilation (concisenessof thecompilation target)

Complexity of solving the task

Input Compilation Ctarget

Result Complexity

Boolean circuit O(n) NP-hard

#P-hard

Evaluation SAT

#SAT

→ When can we convert from one target to another?

We are interested in#SATandprobability evaluation

3/20

(34)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(35)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(36)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(37)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks

Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(38)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(39)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(40)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(41)

Dr aft

Target classes in knowledge compilation

For #SAT and probabilistic evaluation, two main restrictions on compilation targets:

Width-based:

Boundedpathwidth/treewidthBoolean circuits, CNFs, DNFs, etc.

message passingalgorithm for #SAT and probabilistic evaluation

• Links withBayesian networks Semantics-based:

Ordered Binary Decision Diagrams(OBDDs)/Deterministic Structured Decomposable Negation Normal Forms(d-SDNNFs)

#SAT and probabilistic evaluation are easy because these classes have strongsemantic constraints

• Used to understand#SAT solvers

Question: what are the links beetween the two?

4/20

(42)

Dr aft

Plan

CircuitCoftreewidth6k O(|C| ×exp(k)) d-SDNNF

+'matching lower bound Then

DNF/CNFϕofpathwidth6k O(|ϕ| ×exp(k)) OBDD (not us)

+ matching lower bound Then

Application to provenance and probabilistic databases

5/20

(43)

Dr aft

Plan

CircuitCoftreewidth6k O(|C| ×exp(k)) d-SDNNF

+'matching lower bound

Then

DNF/CNFϕofpathwidth6k O(|ϕ| ×exp(k)) OBDD (not us)

+ matching lower bound Then

Application to provenance and probabilistic databases

5/20

(44)

Dr aft

Plan

CircuitCoftreewidth6k O(|C| ×exp(k)) d-SDNNF

+'matching lower bound Then

DNF/CNFϕofpathwidth6k O(|ϕ| ×exp(k)) OBDD (not us)

+ matching lower bound Then

Application to provenance and probabilistic databases

5/20

(45)

Dr aft

Plan

CircuitCoftreewidth6k O(|C| ×exp(k)) d-SDNNF

+'matching lower bound Then

DNF/CNFϕofpathwidth6k O(|ϕ| ×exp(k)) OBDD (not us)

+ matching lower bound

Then

Application to provenance and probabilistic databases

5/20

(46)

Dr aft

Plan

CircuitCoftreewidth6k O(|C| ×exp(k)) d-SDNNF

+'matching lower bound Then

DNF/CNFϕofpathwidth6k O(|ϕ| ×exp(k)) OBDD (not us)

+ matching lower bound Then

Application to provenance and probabilistic databases

5/20

(47)

Dr aft

Treewidth and d-SDNNFs

6/20

(48)

Dr aft

Bounded treewidth Boolean circuits

x ¬ ∨

t ¬

z y

TreewidthofC= that of the underlying graph

We can domessage passing:

Theorem (Lauritzen & Spielgelhalter, 1988)

Fixk∈N. Given a Boolean circuitCoftreewidth6k, we can compute itsprobabilityin timeO(f(k)× |C|), wheref is singly exponential

7/20

(49)

Dr aft

Bounded treewidth Boolean circuits

x ¬ ∨

t ¬

z y

TreewidthofC= that of the underlying graph

We can domessage passing:

Theorem (Lauritzen & Spielgelhalter, 1988)

Fixk∈N. Given a Boolean circuitCoftreewidth6k, we can compute itsprobabilityin timeO(f(k)× |C|), wheref is singly exponential

7/20

(50)

Dr aft

Bounded treewidth Boolean circuits

x ¬ ∨

t ¬

z y

TreewidthofC= that of the underlying graph

We can domessage passing:

Theorem (Lauritzen & Spielgelhalter, 1988)

Fixk∈N. Given a Boolean circuitCoftreewidth6k, we can compute itsprobabilityin timeO(f(k)× |C|), wheref is singly exponential

7/20

(51)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(52)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(53)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(54)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(55)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(56)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(57)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(58)

Dr aft

d-SDNNF

x

y ¬

z

¬

x

y z

y z x

Negation Normal Form: negations only applied to the leaves

Decomposable: inputs of∧-gates are independent(no variable has a path to two different inputs of the same

∧-gate)

SATcan be solved efficiently

Deterministic: inputs of∨-gates are mutually exclusive

#SATandprobability evaluation

Structured: there is avtreethat structures the∧-gates

Enumeration

8/20

(59)

Dr aft

Treewidth and d-SDNNFs: Upper bound

Theorem (Bova & Szeider, 2017)

LetCbe a Boolean circuit onmvariables oftreewidth6k.

There existsad-SDNNFequivalent toCof sizeO(m×g(k)), wheregisdoublyexponential

Drawbacks: non constructive Theorem (Our contribution)

LetCbe a Boolean circuit oftreewidth6k.

We can computead-SDNNFequivalent toCin timeO(|C| ×f(k)), wheref issinglyexponential

Applications: recapturing message passing, and enumeration of satisfying valuations

9/20

(60)

Dr aft

Treewidth and d-SDNNFs: Upper bound

Theorem (Bova & Szeider, 2017)

LetCbe a Boolean circuit onmvariables oftreewidth6k.

There existsad-SDNNFequivalent toCof sizeO(m×g(k)), wheregisdoublyexponential

Drawbacks: non constructive

Theorem (Our contribution)

LetCbe a Boolean circuit oftreewidth6k.

We can computead-SDNNFequivalent toCin timeO(|C| ×f(k)), wheref issinglyexponential

Applications: recapturing message passing, and enumeration of satisfying valuations

9/20

(61)

Dr aft

Treewidth and d-SDNNFs: Upper bound

Theorem (Bova & Szeider, 2017)

LetCbe a Boolean circuit onmvariables oftreewidth6k.

There existsad-SDNNFequivalent toCof sizeO(m×g(k)), wheregisdoublyexponential

Drawbacks: non constructive Theorem (Our contribution)

LetCbe a Boolean circuit oftreewidth6k.

We can computead-SDNNFequivalent toCin timeO(|C| ×f(k)), wheref issinglyexponential

Applications: recapturing message passing, and enumeration of satisfying valuations

9/20

(62)

Dr aft

Treewidth and d-SDNNFs: Upper bound

Theorem (Bova & Szeider, 2017)

LetCbe a Boolean circuit onmvariables oftreewidth6k.

There existsad-SDNNFequivalent toCof sizeO(m×g(k)), wheregisdoublyexponential

Drawbacks: non constructive Theorem (Our contribution)

LetCbe a Boolean circuit oftreewidth6k.

We can computead-SDNNFequivalent toCin timeO(|C| ×f(k)), wheref issinglyexponential

Applications: recapturing message passing, and enumeration of satisfying valuations

9/20

(63)

Dr aft

Construction sketch

V1

L

x V 2 V3

10/20

(64)

Dr aft

Construction sketch

V1

L

V

2

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(65)

Dr aft

Construction sketch

V1

L

V

2

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(66)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(67)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(68)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(69)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(70)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(71)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(72)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(73)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(74)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(75)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(76)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(77)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(78)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(79)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(80)

Dr aft

Construction sketch

V1

L

V

2

V1 V

2 V1 V

2 V1 V

2

V1 V3 V1 V3 V1 V3 V1 L

x

V1 L x

V1 L x

x

V3 V1 V1

L

x V 2 V3

V1

10/20

(81)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(82)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(83)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(84)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs

Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(85)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(86)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(87)

Dr aft

Treewidth and d-SDNNFs: Lower bound

Already applies to very restricted Boolean circuits:monotone DNFs and CNFs

Treewidth of a DNF/CNF: that of itsGaifman graph

Arity: size of the largest clause

Degree: maximal number of clauses to which a variable belongs Theorem

Letϕbe amonotone DNFoftreewidthk, leta:=arity(ϕ)and d:=degree(ϕ). Then anyd-SDNNFforϕhas size>2

j k 3×a3×d2

k

−1

ForCNFs, the bound even works for (non-deterministic)SDNNF

The bound isgeneric: it applies toanymonotone DNF/CNF

11/20

(88)

Dr aft

Pathwidth and OBDDs

12/20

(89)

Dr aft

Ordered Binary Decision Diagrams (OBDDs)

DAGwith sink nodes{>,⊥}and internal nodes labeled by variables

Semantics:follow the path of an assignment to get the value of the Boolean function

There is atotal orderon the variables v=X1 X2 X3X4such that each root-to-sink path is compatible withv

Compute probabilitybottom-up Prπ(•) =π(X3)×Prπ(•)

+(1−π(X3))×Prπ(•)

Widthof the OBDD'largest number of nodes that are labeled by the same variable

x

1

x

4

x

3

x

3

T T

x

2

x

2

0 1

0

0 0

0

0 1

1

1

1 1

13/20

Références

Documents relatifs

Actually, the main idea behind the snap-stabilization is the following: the protocol is seen as a function and the function ensures two properties despites the arbitrary

Treewidth was introduced by Robertson and Seymour in connection with graph minors [5], but it has wide algorithmic applications since many NP-hard problems become polynomial

G , κ, N um) is not covering prime then there is no election algorithm and no naming algorithm for the graph G with N um as port numbering using Inst as set of basic instructions..

Unite´ de recherche INRIA Rennes, Irisa, Campus universitaire de Beaulieu, 35042 RENNES Cedex Unite´ de recherche INRIA Rhoˆne-Alpes, 46 avenue Fe´lix Viallet, 38031 GRENOBLE Cedex

REYES, Connections in formal differential, geometry, in : Topos Theoretic Methods in Geometry, Aarhus Var. KOLA0158, Fundamental vector fields on associated fibre

HCK (horizon content knowledge), the third sub-domain of subject matter knowledge in the MKT framework was tentatively defined by Ball and colleagues as ‘an awareness of

The LSA-based critiquing and knowledge building environment marks the con- tours of a “double-loop” learning process (see Figure 1), alternating between inner (individual) and

Thus, for gaining information regarding the content validity of a given concept map representing a particular domain, it may be compared with empirically gathered concept maps