When can an FPT decision algorithm be used to count? January 2016 - - PowerPoint PPT Presentation

when can an fpt decision algorithm be used to count
SMART_READER_LITE
LIVE PREVIEW

When can an FPT decision algorithm be used to count? January 2016 - - PowerPoint PPT Presentation

When can an FPT decision algorithm be used to count? January 2016 Kitty Meeks Deciding, counting and enumerating DECISION Is there a witness? 2/19 Deciding, counting and enumerating DECISION Is there a witness? APPROX COUNTING


slide-1
SLIDE 1

When can an FPT decision algorithm be used to count?

January 2016 Kitty Meeks

slide-2
SLIDE 2

Deciding, counting and enumerating

DECISION Is there a witness?

2/19

slide-3
SLIDE 3

Deciding, counting and enumerating

APPROX COUNTING Approximately how many witnesses? DECISION Is there a witness?

2/19

slide-4
SLIDE 4

Deciding, counting and enumerating

APPROX COUNTING Approximately how many witnesses? DECISION Is there a witness? EXACT COUNTING Exactly how many witnesses?

2/19

slide-5
SLIDE 5

Deciding, counting and enumerating

APPROX COUNTING Approximately how many witnesses? DECISION Is there a witness? EXACT COUNTING Exactly how many witnesses? EXTRACTION Identify a single witness

2/19

slide-6
SLIDE 6

Deciding, counting and enumerating

APPROX COUNTING Approximately how many witnesses? DECISION Is there a witness? EXACT COUNTING Exactly how many witnesses? EXTRACTION Identify a single witness UNIFORM SAMPLING Pick a single witness uniformly at random

2/19

slide-7
SLIDE 7

Deciding, counting and enumerating

APPROX COUNTING Approximately how many witnesses? DECISION Is there a witness? EXACT COUNTING Exactly how many witnesses? EXTRACTION Identify a single witness UNIFORM SAMPLING Pick a single witness uniformly at random ENUMERATION List all witnesses

2/19

slide-8
SLIDE 8

If we can decide, we can find a witness

3/19

slide-9
SLIDE 9

If we can decide, we can find a witness

3/19

slide-10
SLIDE 10

If we can decide, we can find a witness

3/19

slide-11
SLIDE 11

If we can decide, we can find a witness

3/19

slide-12
SLIDE 12

If we can decide, we can find a witness

3/19

slide-13
SLIDE 13

If we can decide, we can find a witness

3/19

slide-14
SLIDE 14

If we can decide, we can find a witness

3/19

slide-15
SLIDE 15

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-16
SLIDE 16

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-17
SLIDE 17

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-18
SLIDE 18

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-19
SLIDE 19

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-20
SLIDE 20

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-21
SLIDE 21

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-22
SLIDE 22

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-23
SLIDE 23

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-24
SLIDE 24

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-25
SLIDE 25

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-26
SLIDE 26

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-27
SLIDE 27

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-28
SLIDE 28

If we can decide, we can find a witness

Theorem (Björklund, Kaski and Kowalik, 2014) There exists an algorithm that extracts a witness using at most 2k

  • log2

n k + 2

  • queries to a deterministic inclusion oracle.

4/19

slide-29
SLIDE 29

If we can count approximately, we can decide

5/19

slide-30
SLIDE 30

If we can count approximately, we can decide

... at least with high probability. An FPRAS for a counting problem Π is a randomised approximation scheme that takes an instance I of Π (with |I| = n), and numbers ǫ > 0 and 0 < δ < 1, and in time poly(n, 1/ǫ, log(1/δ)) outputs a rational number z such that P[(1 − ǫ)Π(I) ≤ z ≤ (1 + ǫ)Π(I)] ≥ 1 − δ.

5/19

slide-31
SLIDE 31

If we can count approximately, we can decide

... at least with high probability. An FPRAS for a counting problem Π is a randomised approximation scheme that takes an instance I of Π (with |I| = n), and numbers ǫ > 0 and 0 < δ < 1, and in time poly(n, 1/ǫ, log(1/δ)) outputs a rational number z such that P[(1 − ǫ)Π(I) ≤ z ≤ (1 + ǫ)Π(I)] ≥ 1 − δ. Set ǫ < 1

2, and we will distinguish between 0 and at least 1 with probability

at least 1 − δ.

5/19

slide-32
SLIDE 32

Uniform sampling is harder than finding a witness

GENCYCLE Input: A directed graph G. Output: A cycle selected uniformly, at random, from the set of all directed cycles of G. Theorem (Jerrum, Valiant, Vazirani, 1986) Suppose there exists a polynomial time bounded Probabilistic Turing Machine which solves the problem GENCYCLE. Then NP = RP.

6/19

slide-33
SLIDE 33

Self-reducibility

A relation R ⊆ Σ∗ × Σ∗ is self-reducible if and only if: there exists a polynomial time computable function g ∈ Σ∗ → N such that xRy = ⇒ |y| = g(x); there exist polynomial time computable functions ψ ∈ Σ∗ × Σ∗ → Σ∗ and σ ∈ Σ∗ → N satisfying:

σ(x) = O(log |x|) g(x) > 0 = ⇒ σ(x) > 0 ∀x ∈ Σ∗ |ψ(x, w)| ≤ |x| ∀x, w ∈ Σ∗,

and such that, for all x ∈ Σ∗, y = y1 . . . yn ∈ Σ∗, x, y1 . . . yn ∈ R ⇐ ⇒ ψ(x, y1 . . . yσ(x)), yσ(x)+1 . . . yn ∈ R.

7/19

slide-34
SLIDE 34

Self-reducibility

A relation R ⊆ Σ∗ × Σ∗ is self-reducible if and only if: there exists a polynomial time computable function g ∈ Σ∗ → N such that xRy = ⇒ |y| = g(x); there exist polynomial time computable functions ψ ∈ Σ∗ × Σ∗ → Σ∗ and σ ∈ Σ∗ → N satisfying:

σ(x) = O(log |x|) g(x) > 0 = ⇒ σ(x) > 0 ∀x ∈ Σ∗ |ψ(x, w)| ≤ |x| ∀x, w ∈ Σ∗,

and such that, for all x ∈ Σ∗, y = y1 . . . yn ∈ Σ∗, x, y1 . . . yn ∈ R ⇐ ⇒ ψ(x, y1 . . . yσ(x)), yσ(x)+1 . . . yn ∈ R. Theorem (Jerrum, Valiant, Vazirani, 1986) For self-reducible problems, approximate counting and almost-uniform sampling are polynomial-time inter-reducible.

7/19

slide-35
SLIDE 35

Parameterised subgraph problems

Let Φ be a family (φ1, φ2, . . .) of functions, such that φk is a mapping from labelled graphs on k-vertices to {0, 1}. p-INDUCED SUBGRAPH WITH PROPERTY(Φ) (p-ISWP(Φ)) Input: A graph G = (V, E) and an integer k. Parameter: k. Question: Is there a tuple (v1, . . . , vk) ∈ Vk such that v1, . . . , vk are all distinct and φk(G[v1, . . . , vk]) = 1?

8/19

slide-36
SLIDE 36

Parameterised subgraph problems

Let Φ be a family (φ1, φ2, . . .) of functions, such that φk is a mapping from labelled graphs on k-vertices to {0, 1}. p-INDUCED SUBGRAPH WITH PROPERTY(Φ) (p-ISWP(Φ)) Input: A graph G = (V, E) and an integer k. Parameter: k. Question: Is there a tuple (v1, . . . , vk) ∈ Vk such that v1, . . . , vk are all distinct and φk(G[v1, . . . , vk]) = 1? p-MISWP(Φ) Input: A graph G = (V, E), an integer k and a colouring f : V → {1, . . . , k}. Parameter: k. Question: Is there a tuple (v1, . . . , vk) ∈ Vk such that {f(v1), . . . , f(vk)} = {1, . . . , k} and φk(G[v1, . . . , vk]) = 1?

8/19

slide-37
SLIDE 37

Parameterised subgraph problems

Let Φ be a family (φ1, φ2, . . .) of functions, such that φk is a mapping from labelled graphs on k-vertices to {0, 1}. p-INDUCED SUBGRAPH WITH PROPERTY(Φ) (p-ISWP(Φ)) Input: A graph G = (V, E) and an integer k. Parameter: k. Question: Is there a tuple (v1, . . . , vk) ∈ Vk such that v1, . . . , vk are all distinct and φk(G[v1, . . . , vk]) = 1? p-EXT-ISWP(Φ) Input: A graph G = (V, E), an integer k and subset U ⊂ V of cardinality at most k. Parameter: k. Question: Is there a tuple (v1, . . . , vk) ∈ Vk such that v1, . . . , vk are all distinct, U ⊆ {v1, . . . , vk}, and φk(G[v1, . . . , vk]) = 1?

8/19

slide-38
SLIDE 38

Self-reducibility and equivalent notions

Proposition Suppose that ISWP(Φ) belongs to FPT. Then the following three statements are equivalent:

1

ISWP(Φ) is self-reducible;

2

MISWP(Φ) belongs to FPT;

3

EXT-ISWP(Φ) belongs to FPT.

9/19

slide-39
SLIDE 39

A special case

Theorem (Arvind and Raman (2002); Jerrum and M. (2015); M. (2016)) Suppose that Φ is a monotone property, and that p-ISWP(Φ) is self-reducible. Then, if p-ISWP(Φ) belongs to FPT, there is an FPTRAS for p-#ISWP(Φ).

10/19

slide-40
SLIDE 40

Many witnesses

Proposition Suppose that, for each k and any graph G on n vertices, the number of k-vertex (labelled) subgraphs of G that satisfy φk is either

1 zero, or 2 at least

1 g(k)p(n) n k

  • .

Then there exists an FPTRAS for p-#ISWP(Φ).

11/19

slide-41
SLIDE 41

Few witnesses

Theorem Suppose that p-MISWP(Φ) belongs to FPT. Then we can enumerate (and hence count) all witnesses in time f(k) · nO(1) · N, where N is the total number of witnesses.

12/19

slide-42
SLIDE 42

Few witnesses

Theorem Suppose that p-MISWP(Φ) belongs to FPT. Then we can enumerate (and hence count) all witnesses in time f(k) · nO(1) · N, where N is the total number of witnesses.

...

12/19

slide-43
SLIDE 43

Few witnesses

Theorem Suppose that p-MISWP(Φ) belongs to FPT. Then we can enumerate (and hence count) all witnesses in time f(k) · nO(1) · N, where N is the total number of witnesses.

...

12/19

slide-44
SLIDE 44

Few witnesses

Theorem Suppose that p-MISWP(Φ) belongs to FPT. Then we can enumerate (and hence count) all witnesses in time f(k) · nO(1) · N, where N is the total number of witnesses.

... ... ...

12/19

slide-45
SLIDE 45

Few witnesses

Theorem Suppose that p-MISWP(Φ) belongs to FPT. Then we can enumerate (and hence count) all witnesses in time f(k) · nO(1) · N, where N is the total number of witnesses.

... ... ...

12/19

slide-46
SLIDE 46

Not all subgraph problems are self-reducible

Let φk(H) = 1 if and only if H is either a clique or an independent set. Then:

13/19

slide-47
SLIDE 47

Not all subgraph problems are self-reducible

Let φk(H) = 1 if and only if H is either a clique or an independent set. Then: p-ISWP(Φ) is in FPT:

By Ramsey, for sufficiently large graphs the answer is always “yes”.

13/19

slide-48
SLIDE 48

Not all subgraph problems are self-reducible

Let φk(H) = 1 if and only if H is either a clique or an independent set. Then: p-ISWP(Φ) is in FPT:

By Ramsey, for sufficiently large graphs the answer is always “yes”.

p-EXT-ISWP(Φ) is W[1]-complete:

Reduction from p-CLIQUE.

G

13/19

slide-49
SLIDE 49

Not all subgraph problems are self-reducible

Let φk(H) = 1 if and only if H is either a clique or an independent set. Then: p-ISWP(Φ) is in FPT:

By Ramsey, for sufficiently large graphs the answer is always “yes”.

p-EXT-ISWP(Φ) is W[1]-complete:

Reduction from p-CLIQUE.

v G

13/19

slide-50
SLIDE 50

Colour coding

Theorem (Alon, Yuster, Zwick, 1995) For all n, k ∈ N there is a k-perfect family Fn,k of hash functions from [n] to [k] of cardinality 2O(k) · log n. Furthermore, given n and k, a representation

  • f the family Fn,k can be computed in time 2O(k) · n log n.

14/19

slide-51
SLIDE 51

Colour coding

Theorem (Alon, Yuster, Zwick, 1995) For all n, k ∈ N there is a k-perfect family Fn,k of hash functions from [n] to [k] of cardinality 2O(k) · log n. Furthermore, given n and k, a representation

  • f the family Fn,k can be computed in time 2O(k) · n log n.

IDEA: create many coloured instances, and enumerate the colourful copies in each (omitting duplicates)

14/19

slide-52
SLIDE 52

Colour coding

Theorem (Alon, Yuster, Zwick, 1995) For all n, k ∈ N there is a k-perfect family Fn,k of hash functions from [n] to [k] of cardinality 2O(k) · log n. Furthermore, given n and k, a representation

  • f the family Fn,k can be computed in time 2O(k) · n log n.

IDEA: create many coloured instances, and enumerate the colourful copies in each (omitting duplicates) PROBLEM: although we’re now looking for colourful witnesses, we still only have a decision oracle for the uncoloured version...

14/19

slide-53
SLIDE 53

A randomised approach

A B C

15/19

slide-54
SLIDE 54

A randomised approach

C1 C2 B1 B2 A1 A2

15/19

slide-55
SLIDE 55

A randomised approach

A1 B1 C1 A2 A1 B1 C2 A1 B2 C1 A1 B2 C2 B1 C1 B1 C2 B2 C1 B2 C2 A2 A2 A2 C1 C2 B1 B2 A1 A2

15/19

slide-56
SLIDE 56

A randomised approach

A1 B1 C1 A2 A1 B1 C2 A1 B2 C1 A1 B2 C2 B1 C1 B1 C2 B2 C1 B2 C2 A2 A2 A2 C1 C2 B1 B2 A1 A2

15/19

slide-57
SLIDE 57

A randomised approach

If a witness is colourful: It will always survive in exactly one combination

16/19

slide-58
SLIDE 58

A randomised approach

If a witness is colourful: It will always survive in exactly one combination If a witness contains vertices of only ℓ < k colours: the probability it survives in at least one combination is at most 2−(k−ℓ) if it survives in any combination, it will survive in exactly 2k−ℓ combinations

16/19

slide-59
SLIDE 59

A randomised approach

If a witness is colourful: It will always survive in exactly one combination If a witness contains vertices of only ℓ < k colours: the probability it survives in at least one combination is at most 2−(k−ℓ) if it survives in any combination, it will survive in exactly 2k−ℓ combinations It can then be shown that, for any witness, the expected number of combinations in which it survives at each level is at most one.

16/19

slide-60
SLIDE 60

Few witnesses, revisited

Theorem Suppose that ISWP(Φ) is in FPT. Then there is a randomised algorithm which enumerates all witnesses for ISWP(Φ) in expected time f(k) · nO(1) · N, where N is the total number of witnesses in the instance.

17/19

slide-61
SLIDE 61

Few witnesses, revisited

Theorem Suppose that ISWP(Φ) is in FPT. Then there is a randomised algorithm which enumerates all witnesses for ISWP(Φ) in expected time f(k) · nO(1) · N, where N is the total number of witnesses in the instance. Corollary Suppose that ISWP(Φ) is in FPT and that, for each k and any graph G on n vertices, the number of k-vertex (labelled) subgraphs of G that satisfy φk is at most f(k)nO(1). Then there exists an FPTRAS for p-ISWP(Φ).

17/19

slide-62
SLIDE 62

Open problems

Can the randomised enumeration process be derandomised?

18/19

slide-63
SLIDE 63

Open problems

Can the randomised enumeration process be derandomised? How common are non-self-reducible subgraph problems?

18/19

slide-64
SLIDE 64

Open problems

Can the randomised enumeration process be derandomised? How common are non-self-reducible subgraph problems? Can we close the gap?

At least nk/(f(k)nO(1)) witnesses: can approximately count by random sampling

n k

( (

18/19

slide-65
SLIDE 65

Open problems

Can the randomised enumeration process be derandomised? How common are non-self-reducible subgraph problems? Can we close the gap?

At most f(k)nO(1) witnesses: can count efficiently using a decision oracle At least nk/(f(k)nO(1)) witnesses: can approximately count by random sampling

n k

( (

18/19

slide-66
SLIDE 66

Open problems

Can the randomised enumeration process be derandomised? How common are non-self-reducible subgraph problems? Can we close the gap?

At most f(k)nO(1) witnesses: can count efficiently using a decision oracle At least nk/(f(k)nO(1)) witnesses: can approximately count by random sampling

?

n k

( (

18/19

slide-67
SLIDE 67

Thank you

19/19