Spanning trees and the complexity of flood-filling games Kitty - - PowerPoint PPT Presentation

spanning trees and the complexity of flood filling games
SMART_READER_LITE
LIVE PREVIEW

Spanning trees and the complexity of flood-filling games Kitty - - PowerPoint PPT Presentation

Spanning trees and the complexity of flood-filling games Kitty Meeks Alex Scott Mathematical Institute University of Oxford FUN 2012, Venice The original Flood-It game The original Flood-It game The original Flood-It game The original


slide-1
SLIDE 1

Spanning trees and the complexity of flood-filling games

Kitty Meeks Alex Scott

Mathematical Institute University of Oxford

FUN 2012, Venice

slide-2
SLIDE 2

The original Flood-It game

slide-3
SLIDE 3

The original Flood-It game

slide-4
SLIDE 4

The original Flood-It game

slide-5
SLIDE 5

The original Flood-It game

slide-6
SLIDE 6

The original Flood-It game

slide-7
SLIDE 7

The original Flood-It game

slide-8
SLIDE 8

The original Flood-It game

slide-9
SLIDE 9

The original Flood-It game

slide-10
SLIDE 10

The Honey-Bee game

slide-11
SLIDE 11

Generalising to arbitrary graphs

slide-12
SLIDE 12

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-13
SLIDE 13

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-14
SLIDE 14

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-15
SLIDE 15

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-16
SLIDE 16

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-17
SLIDE 17

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-18
SLIDE 18

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-19
SLIDE 19

Generalising to arbitrary graphs

Sources: brighton-hove.dbprimary.com, englishclub.com, picgifs.com

slide-20
SLIDE 20

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph.

slide-21
SLIDE 21

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph. Free Flood It is NP-hard when restricted to n × n or 3 × n grids,

slide-22
SLIDE 22

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph. Free Flood It is NP-hard when restricted to n × n or 3 × n grids, trees,

slide-23
SLIDE 23

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph. Free Flood It is NP-hard when restricted to n × n or 3 × n grids, trees, series-parallel graphs.

slide-24
SLIDE 24

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph. Free Flood It is NP-hard when restricted to n × n or 3 × n grids, trees, series-parallel graphs. Free Flood It can be solved in polynomial time when restricted to paths cycles co-comparability graphs

slide-25
SLIDE 25

Existing results concerning Free Flood It

Given a coloured graph G, Free Flood It is the problem of determining the minimum number of moves required to flood G, when we are allowed to make moves anywhere in the graph. Free Flood It is NP-hard when restricted to n × n or 3 × n grids, trees, series-parallel graphs. Free Flood It can be solved in polynomial time when restricted to paths cycles co-comparability graphs

  • r

if only two colours are used

slide-26
SLIDE 26

Connecting pairs of vertices

G u v

slide-27
SLIDE 27

Connecting pairs of vertices

G u v

Using this fact, we can compute in time O(|V |3|E|c2) the number

  • f moves required to connect any given pair of vertices in a graph

G = (V , E) coloured with c colours.

slide-28
SLIDE 28

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-29
SLIDE 29

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-30
SLIDE 30

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-31
SLIDE 31

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-32
SLIDE 32

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-33
SLIDE 33

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-34
SLIDE 34

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-35
SLIDE 35

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-36
SLIDE 36

Spanning trees

Theorem The number of moves required to flood a coloured graph G is equal to the minimum, taken over all spanning trees T of G, of the number of moves required to flood T.

slide-37
SLIDE 37

Proof of spanning trees result: key step

A

B

The number of moves required to flood T with colour d is at most the sum of the numbers of moves required to flood A and B respectively with colour d.

slide-38
SLIDE 38

This is useless!

In general, a graph has an exponential number of spanning trees.

slide-39
SLIDE 39

This is useless!

In general, a graph has an exponential number of spanning trees. Besides, Free Flood It is still NP-hard even on trees.

slide-40
SLIDE 40

... or is it?

P = NP

slide-41
SLIDE 41

... or is it?

P = NP

slide-42
SLIDE 42

... or is it?

P = NP

slide-43
SLIDE 43

... or is it?

Source: finditinscotland.com

slide-44
SLIDE 44

... or is it?

Source: finditinscotland.com

slide-45
SLIDE 45

... or is it?

A B

The number of moves required to flood G with colour d is at most the sum of the numbers of moves required to flood A and B respectively with colour d.

slide-46
SLIDE 46

... or is it?

H

The number of moves required to flood a subgraph doesn’t increase when we play in a larger graph.

slide-47
SLIDE 47

... or is it?

H

G

The number of moves required to flood a subgraph doesn’t increase when we play in a larger graph.

slide-48
SLIDE 48

Application I: Graphs with polynomially many connected subgraphs

Theorem Free Flood It can be solved in polynomial time on graphs that have only a polynomial number of connected subgraphs.

A

slide-49
SLIDE 49

Application I: Graphs with polynomially many connected subgraphs

Theorem Free Flood It can be solved in polynomial time on graphs that have only a polynomial number of connected subgraphs.

A A1 A2

slide-50
SLIDE 50

Application I: Graphs with polynomially many connected subgraphs

Classes of graphs with only a polynomial number of connected subgraphs include: paths cycles

slide-51
SLIDE 51

Application I: Graphs with polynomially many connected subgraphs

Classes of graphs with only a polynomial number of connected subgraphs include: paths cycles subdivisions of any fixed graph H

slide-52
SLIDE 52

Application II: Connecting k points

Given a coloured graph G and a subset U of at most k vertices, k-Linking Flood It is the problem of determining the number

  • f moves required to create a single monochromatic component

containing U. Theorem k-Linking Flood It can be solved in time O(|V |k+3|E|c22k) on a graph G = (V , E) coloured with c colours.

slide-53
SLIDE 53

Application II: Connecting k points

G

The number of moves required to connect U is equal to the minimum, taken over all subtrees T of G that contain U, of the number of moves required to flood T.

slide-54
SLIDE 54

Application II: Connecting k points

G

slide-55
SLIDE 55

Application II: Connecting k points

G

slide-56
SLIDE 56

Conclusions

We can analyse flood filling problems by considering only trees.

slide-57
SLIDE 57

Conclusions

We can analyse flood filling problems by considering only trees. This allows us to prove nice complexity results:

slide-58
SLIDE 58

Conclusions

We can analyse flood filling problems by considering only trees. This allows us to prove nice complexity results:

Free Flood It is solvable in polynomial time on graphs with polynomially many connected subgraphs.

slide-59
SLIDE 59

Conclusions

We can analyse flood filling problems by considering only trees. This allows us to prove nice complexity results:

Free Flood It is solvable in polynomial time on graphs with polynomially many connected subgraphs. k-Linking Flood It is solvable in polynomial time on arbitrary graphs (for fixed k).

slide-60
SLIDE 60

Open Problems

Is k-Linking Flood It fixed parameter tractable, parameterised by k?

slide-61
SLIDE 61

Open Problems

Is k-Linking Flood It fixed parameter tractable, parameterised by k? On what other minor-closed classes of trees is Free Flood It solvable in polynomial time?

slide-62
SLIDE 62

Open Problems

Is k-Linking Flood It fixed parameter tractable, parameterised by k? On what other minor-closed classes of trees is Free Flood It solvable in polynomial time? Extremal problems...

slide-63
SLIDE 63

Open Problems

Is k-Linking Flood It fixed parameter tractable, parameterised by k? On what other minor-closed classes of trees is Free Flood It solvable in polynomial time? Extremal problems... Does the Loch Ness Monster exist?

slide-64
SLIDE 64

Thank you