• No results found

Counting minimal transversals in β-acyclic Hypergraph

N/A
N/A
Protected

Academic year: 2022

Share "Counting minimal transversals in β-acyclic Hypergraph"

Copied!
43
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

Counting minimal transversals in β-acyclic Hypergraph

Benjamin Bergougnoux, Florent Capelli, Mamadou M. Kanté?

?LIMOS, CNRS, Université Clermont Auvergne

Université Lille 3, CRIStAL, CNRS, INRIA

Algorithm Seminar, Bergen, November 22, 2019

(2)

Hypergraphs

1 2 3

4

5 6 7

(3)

Definitions

Transversal

A set of vertices intersecting allhyperedges.

I Transversals of graph: Vertex Cover.

I Minimal w.r.t. inclusion.

I Everyvertex has aprivate hyperedge.

1 2 3

4

5 6 7

(4)

Definitions

Transversal

A set of vertices intersecting allhyperedges.

I Transversals of graph: Vertex Cover.

I Minimal w.r.t. inclusion.

I Everyvertex has aprivate hyperedge.

1 2 3

4

5 6 7

2

(5)

Motivations

I Graphs: vertex covers, dominating sets (transversals ofclosed neighborhoods),...

I AI: models of monotoneCNF-formula.

Counting andenumerating them have a lot ofapplications

I Graphs Theory, A.I. (robustness), Datamining, Model-checking,...

(6)

Counting

Goal

Find thenumberof solutions to some problem.

I An analogous hierarchy toPN P. I Polynomial

I #P

I #P-hard / complete

I Counting can be much harderthan finding:

I Minimal Transversal, Perfect Matching, 2-SAT,...

I k-path,k-cycle!

(7)

Minimality matters

Theorem [Okamoto, Uno, Uehara 2005]

In chordal graphs:

I Countingtransversals is doable inpolynomial time.

I Countingminimal transversals is #P-complete.

I Chordal graph: no induced cycle of size≤4.

(8)

β-acyclic

Definition

A hypergraph is β-acyclicif it does not haveβ-cycles.

I Theincidence graph (vertices/hyperedges) isBipartite Chordal.

(9)

β-acyclic

Definition bis

A hypergraph is β-acyclicif

I Strong Elimination orderingonV(H) : β-leaf

e1 e2 e3

e1⊆ e2⊆ e3 ⊆. . .⊆ e`

e`

I Not related to thex-width of the incidence graph.

(10)

Results on β-acyclic hypergraph

Theorem [Brault-Baron, Capelli, Mengel 2017]

We can count the transversalsof a β-acyclichypergraph in polynomial time.

Theorem [B., Capelli, Kanté 2017]

We can count the minimaltransversals of a β-acyclichypergraph in polynomial time.

I The ingredients: recursive decompositionand“blocked transversals”.

(11)

Basic facts

x

H

Fact

The nb. of minimal transversals ofH not containingx is the nb. of minimal transversals of H −x.

(12)

Basic facts

H − x

Fact

The nb. of minimal transversals ofH not containingx is the nb. of minimal transversals of H −x.

(13)

Basic facts

x

H

Lemma

(14)

Basic facts

H \ H(x)

Lemma

(15)

Basic facts

H \ H(x)

Lemma

(16)

Basic facts

x

H

Lemma

(17)

Basic facts

x

H

Lemma

Tx is a min. transversalof Hiff:

I T is a min. transversal of H \ H(x) I T is not a transversal of H

(18)

Formula

Corollary

The following values are equal:

I The nb. of minimal transversals ofH containingx.

I The nb. of minimal transversals ofH − H(x) that are not transversals of H.

I The nb. of minimal transversals ofH − H(x) minus the nb. of minimal transversals ofH − H(x) that aretransversals of H.

(19)

Blocked-Transversals

S: a subset of vertices.

Definition

S-blockedtransversal ofH (denoted by S-btr(H)):

I Minimal transversals of Hand of H \ H(S)

I ∅-btr(H) = min. transversals ofH.

I Private hyperedges cannot contain a vertex ofS.

x

H

(20)

Blocked Transversal

Lemma (reformulation)

The nb. of minimal transversals ofH = nb. of min. transversals ofH excluding x

+ nb. of min. transversals ofH \ H(x)

− nb. of min. transversals ofH \ H(x)and of H.

Lemma (generalization)

The nb. of S-blocked transversals ofH =

#S-btr(H −x) + #S-btr(H \ H(x))

− #S∪{x}-btr(H \ (H(x)∩ H(S))).

(21)

Blocked Transversal

Lemma (reformulation)

The nb. of minimal transversals ofH =

#∅-btr(H −x)

+ nb. of min. transversals ofH \ H(x)

− nb. of min. transversals ofH \ H(x)and of H.

Lemma (generalization)

The nb. of S-blocked transversals ofH =

#S-btr(H −x) + #S-btr(H \ H(x))

− #S∪{x}-btr(H \ (H(x)∩ H(S))).

(22)

Blocked Transversal

Lemma (reformulation)

The nb. of minimal transversals ofH =

#∅-btr(H −x) + #∅-btr(H \ H(x))

− nb. of min. transversals ofH \ H(x)and of H.

Lemma (generalization)

The nb. of S-blocked transversals ofH =

#S-btr(H −x) + #S-btr(H \ H(x))

− #S∪{x}-btr(H \ (H(x)∩ H(S))).

(23)

Blocked Transversal

Lemma (reformulation)

The nb. of minimal transversals ofH =

#∅-btr(H −x) + #∅-btr(H \ H(x))

− #x-btr(H).

Lemma (generalization)

The nb. of S-blocked transversals ofH =

#S-btr(H −x) + #S-btr(H \ H(x))

− #S∪{x}-btr(H \ (H(x)∩ H(S))).

(24)

Blocked Transversal

Lemma (reformulation)

The nb. of minimal transversals ofH =

#∅-btr(H −x) + #∅-btr(H \ H(x))

− #x-btr(H).

Lemma (generalization)

The nb. of S-blocked transversals ofH =

#S-btr(H −x) + #S-btr(H \ H(x))

− #S∪{x}-btr(H \ (H(x)∩ H(S))).

(25)

Blocked Transversal

Using the formula leads to a combinatorial explosionin general!

(26)

Decomposition of β-acyclic hypergraph

I Strong elimination ordering onV(H) : x1, . . . , xn. I Induced orderon the hyperedges : e1, . . . , em. Definition

H(x, e)⇒ thehyperedges6econnected toethrough vertices6x .

2

1 3

4

5 6 7

2

1 3

H H(3,{2,3})

I H(xn, em)=H.

I Goal is to compute#∅-btr(H(xn, em)) with the help of:

I The formula: #S-btr(H) =

#S-btr(H −x)+#S-btr(H \ H(x))−#S∪ {x}-btr(H \(H(x)∩ H(S)))

(27)

Avoid the explosion

Combinatorial explosion !

To compute #{w}-btr(H) we need to compute:

I #{x, w}-btr(H \ (H(x)∩ H(w))),...

But in β-acyclic hypergraphs

We can compute #{x, w}-btr(H \ (H(x)∩ H(w))) from I #x-btr(H0).

I #w-btr(H0).

We can express each H0 as a H(y, f)where y < x.

(28)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

(29)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4 #∅-btr(H(4, e5)) #∅-btr(H(4, e2)) #5-btr(H(4, e5))

2

1

#∅-btr(H(2, e1))

Each termiscomputable fromsmaller terms.

(30)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4 #∅-btr(H(4, e5)) #∅-btr(H(4, e2)) #5-btr(H(4, e5))

2

1

#∅-btr(H(3, e2)) #4-btr(H(3, e2))

#∅-btr(H(2, e5))

#4-btr(H(2, e5))

Each termiscomputable fromsmaller terms.

(31)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4 #∅-btr(H(4, e5)) #∅-btr(H(4, e2)) #5-btr(H(4, e5))

2

1

#∅-btr(H(3, e2)) #4-btr(H(3, e2))

Each termiscomputable fromsmaller terms.

(32)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4 #∅-btr(H(4, e5)) #∅-btr(H(4, e2)) #5-btr(H(4, e5))

2

1

#∅-btr(H(3, e2))

#5-btr(H(2, e5))

#4-btr(H(3, e2))

#∅-btr(H(2, e1))

Each termiscomputable fromsmaller terms.

(33)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

We end up with a DAG.

(34)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

Sink are easilycomputable.

(35)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

As a salmon, we go back to the source.

(36)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

As a salmon, we go back to the source.

(37)

Dynamic programming

#∅-btr(H(5, e5))

3 5

4

2

1

Number of termsis polynomial ⇒ Algorithmpolynomial.

(38)

Result and Consequences

Theorem [B. , Capelli, Kanté 2017]

We can count the number of minimal transversalsof aβ-acyclic hypergraph in polynomialtime.

I Min. dominating sets⇒ min. transversals ofclosed neighborhoods.

I Strongly chordalgraphs⇔ {N[x]|xV(G)}is β-acyclic.

Corollary

We can count the number of min. dominating setsofStrongly Chordal graph in polynomialtime.

(39)

Minimal dominating sets

I Stongly Chordal graphs⇔ Chordal graphs + k-sun free, for k>3.

3-sun 4-sun 5-sun

[Kanté, Uno 2017]

Counting min. dominating setsofChordal graphs is #P-complete.

Conjecture [Kanté, Uno 2017]

Counting min. dominating setsof a subclass ofChordal graphs is I doable inpolynomial time if this class isk-sun free, fork>4, I #P-complet otherwise.

(40)

Minimal dominating sets

I Stongly Chordal graphs⇔ Chordal graphs + k-sun free, for k>3.

3-sun 4-sun 5-sun

[Kanté, Uno 2017]

Counting min. dominating setsofChordal graphs is #P-complete.

Conjecture [Kanté, Uno 2017]

Counting min. dominating setsof a subclass ofChordal graphs is I doable inpolynomial time if this class isk-sun free, fork>4, I

(41)

Possible generalizations

Theorem [Brault-Baron, Capelli, Mengel 2015]

We can count the Modelsof aβ-acyclicCNF-formula in polynomialtime.

Corollary of our result

We can count the minimal modelsof a monotoneβ-acyclicCNF-formula in polynomialtime.

I Can we do it for non-monotone formulas?

(42)

Beyond β-acyclicity

β-hypertree width

β-acyclic mim(incidence graph)

tw(incidence graph) cw(incidence graph) Hypertree width

Polytime or XP

Para-NP-hard

?

point-width

(43)

Thank you!

Referanser

RELATERTE DOKUMENTER

permanent-id is the first 80 bits of the SHA1 hash of P(K Bob ), time-period is a number derived from the current time and P (K Bob ) which changes every 24 hours, descriptor-cookie

Subset FVS is solvable in polynomial time on interval, permutation, bi-interval graphs, circular arc and circular permutation graphs, convex graphs, k-polygon, Dilworth-k

(Indeed it is open whether Metric Dimension is polynomial time solvable on graphs of treewidth 2.) This is mainly due to the fact that pairs of vertices can be resolved by a vertex

In 2015, NORDEM had a total of 23 experts on long term missions with the OSCE working on a range of issues such as human rights in the security sector, freedom of the media,

Subset FVS is solvable in polynomial time on interval, permutation, bi-interval graphs, circular arc and circular permutation graphs, convex graphs, k-polygon, Dilworth-k

First, we show that on apex-minor-free graphs, a general class of graphs containing planar graphs, graphs of bounded treewidth, and graphs of bounded genus, the problem to

The Branch &amp; Recharge algorithm recursively builds candidate sets S for (σ, )- dominating sets in G by calling for a candidate vertex v the procedure SigmaRho which consists

Similarly, we show that every con- nected well-partitioned chordal graph admits a (polynomial-time constructible) tree 3-spanner, while the complexity status of the Tree 3