SLIDE 1
Flood-filling Games on Graphs Kitty Meeks Alex Scott Mathematical - - PowerPoint PPT Presentation
Flood-filling Games on Graphs Kitty Meeks Alex Scott Mathematical - - PowerPoint PPT Presentation
Flood-filling Games on Graphs Kitty Meeks Alex Scott Mathematical Institute University of Oxford 23rd British Combinatorial Conference, Exeter, July 2011 The original Flood-It game The original Flood-It game The original Flood-It game The
SLIDE 2
SLIDE 3
The original Flood-It game
SLIDE 4
The original Flood-It game
SLIDE 5
The original Flood-It game
SLIDE 6
The original Flood-It game
SLIDE 7
The original Flood-It game
SLIDE 8
The original Flood-It game
SLIDE 9
The original Flood-It game
SLIDE 10
Generalising to graphs
SLIDE 11
Generalising to graphs
SLIDE 12
Generalising to graphs
SLIDE 13
Generalising to graphs
SLIDE 14
Generalising to graphs
SLIDE 15
Generalising to graphs
SLIDE 16
Generalising to graphs
SLIDE 17
Generalising to graphs
SLIDE 18
Generalising to graphs
SLIDE 19
The “Free” Variant
SLIDE 20
The “Free” Variant
SLIDE 21
The “Free” Variant
SLIDE 22
The “Free” Variant
SLIDE 23
The “Free” Variant
SLIDE 24
The “Free” Variant
SLIDE 25
The “Free” Variant
SLIDE 26
The “Free” Variant
SLIDE 27
The “Free” Variant
SLIDE 28
The “Free” Variant
SLIDE 29
The “Free” Variant
SLIDE 30
The “Free” Variant
SLIDE 31
Outline
◮ Problems considered
SLIDE 32
Outline
◮ Problems considered ◮ Background
SLIDE 33
Outline
◮ Problems considered ◮ Background ◮ Connecting pairs of vertices
SLIDE 34
Outline
◮ Problems considered ◮ Background ◮ Connecting pairs of vertices ◮ Rectangular k × n boards of fixed height
SLIDE 35
Outline
◮ Problems considered ◮ Background ◮ Connecting pairs of vertices ◮ Rectangular k × n boards of fixed height ◮ Open Problems
SLIDE 36
Problems considered: fixed version
Definition
Given a coloured connected graph G and a vertex v ∈ V , we define m(v)(G) to be the minimum number of moves required to make G monochromatic, if we always play at the vertex v.
SLIDE 37
Problems considered: fixed version
Definition
Given a coloured connected graph G and a vertex v ∈ V , we define m(v)(G) to be the minimum number of moves required to make G monochromatic, if we always play at the vertex v. Fixed Flood It Given a coloured connected graph G and a vertex v ∈ V (G), what is m(v)(G)? The number of colours may be unbounded.
SLIDE 38
Problems considered: fixed version
Definition
Given a coloured connected graph G and a vertex v ∈ V , we define m(v)(G) to be the minimum number of moves required to make G monochromatic, if we always play at the vertex v. Fixed Flood It Given a coloured connected graph G and a vertex v ∈ V (G), what is m(v)(G)? The number of colours may be unbounded. c-Fixed Flood It The same as Fixed Flood It, except that only colours from some fixed set of size c are used.
SLIDE 39
Problems considered: free version
Definition
Given a coloured connected graph, we define m(G) to be the minimum number of moves required to make G monochromatic if, at each move, we can choose to play at any vertex in G. Free Flood It Given a coloured connected graph G, what is m(G)? The number of colours may be unbounded. c-Free Flood It The same as Free Flood It, except that only colours from some fixed set of size c are used.
SLIDE 40
Background
Theorem (Arthur, Clifford, Jalsenius, Montanaro, Sach 2010)
3-Fixed Flood It and 3-Free Flood It are NP-hard on n × n grids (and the decision versions are NP-complete).
SLIDE 41
Background
Theorem (Arthur, Clifford, Jalsenius, Montanaro, Sach 2010)
3-Fixed Flood It and 3-Free Flood It are NP-hard on n × n grids (and the decision versions are NP-complete).
Theorem (Lagoutte 2010)
3-Fixed Flood It and 3-Free Flood It are NP-hard on trees.
SLIDE 42
Background
Theorem (Arthur, Clifford, Jalsenius, Montanaro, Sach 2010)
3-Fixed Flood It and 3-Free Flood It are NP-hard on n × n grids (and the decision versions are NP-complete).
Theorem (Lagoutte 2010)
3-Fixed Flood It and 3-Free Flood It are NP-hard on trees.
◮ Both proved by means of a reduction from Shortest
Common Supersequence (SCS).
SLIDE 43
Connecting pairs of vertices
Definition
Given a coloured connected graph G and u, v ∈ V (G), we define m(u, v) to be the minimum number of moves we must play in G (in the free variant) to link u and v.
SLIDE 44
Connecting pairs of vertices
Definition
Given a coloured connected graph G and u, v ∈ V (G), we define m(u, v) to be the minimum number of moves we must play in G (in the free variant) to link u and v.
Lemma
Let G be a connected coloured graph, and let u, v ∈ V (G). Then m(u, v) is equal to the minimum, taken over all u-v paths P, of the number of moves required to flood the path P.
SLIDE 45
Connecting pairs of vertices
Definition
Given a coloured connected graph G and u, v ∈ V (G), we define m(u, v) to be the minimum number of moves we must play in G (in the free variant) to link u and v.
Lemma
Let G be a connected coloured graph, and let u, v ∈ V (G). Then m(u, v) is equal to the minimum, taken over all u-v paths P, of the number of moves required to flood the path P.
Theorem (M., Scott 2011)
Let G = (V , E) be a connected graph, coloured with c colours. Then we can compute the number of moves required to link every pair (u, v) ∈ V (2) in time O(|V |3|E||C|2).
SLIDE 46
Applications: Free Flood It on paths
Corollary
For any path P, Free Flood It can be solved in time O(|P|6), and c-Free Flood It can be solved in time O(|P|4).
SLIDE 47
Applications: approximating c-Free Flood It on k × n boards
Corollary
For any fixed k, we can compute a constant additive approximation to c-Free Flood It, restricted to k × n boards, in time O(n4).
SLIDE 48
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves:
SLIDE 49
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v)
SLIDE 50
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v) + c
SLIDE 51
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v) + 2c
SLIDE 52
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v) + 3c
SLIDE 53
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v) + 4c
SLIDE 54
Applications: approximating c-Free Flood It on k × n boards
Let B be the coloured graph corresponding to a k × n board. Then m(u, v) ≤ m(B) ≤ m(u, v) + c(k − 1).
u v
Moves: m(u, v) + 5c
SLIDE 55
Solving the problems exactly for k × n boards
1 × n 2 × n 3 × n n × n c = 2 c = 3 NP-h c = 4 NP-h c unbounded NP-h
SLIDE 56
Solving the problems exactly for k × n boards
1 × n 2 × n 3 × n n × n c = 2 P P P P c = 3 NP-h c = 4 NP-h c unbounded NP-h
SLIDE 57
Solving the problems exactly for k × n boards
1 × n 2 × n 3 × n n × n c = 2 P P P P c = 3 P NP-h c = 4 P NP-h c unbounded P NP-h
SLIDE 58
3 × n boards
Theorem (M.,Scott 2011)
4-Fixed Flood It and 4-Free Flood It NP-hard on 3 × n boards. Proved by a reduction from SCS.
SLIDE 59
3 × n boards
1 × n 2 × n 3 × n n × n c = 2 P P P P c = 3 P ? NP-h c = 4 P NP-h NP-h c unbounded P NP-h NP-h
SLIDE 60
2 × n boards
Fixed Free c fixed P c unbounded P
Theorem (Clifford, Jalsenius, Montanaro and Sach 2010)
Fixed Flood It can be solved in time O(n) on 2 × n boards.
SLIDE 61
c-Free Flood It on 2 × n boards
Fixed Free c fixed P P c unbounded P
Theorem (M.,Scott 2011)
When restricted to 2 × n boards, c-Free Flood It is fixed parameter tractable, with parameter c.
SLIDE 62
c-Free Flood It on 2 × n boards
Fixed Free c fixed P P c unbounded P
Theorem (M.,Scott 2011)
When restricted to 2 × n boards, c-Free Flood It is fixed parameter tractable, with parameter c.
◮ Dynamic programming ◮ Split board into sections and consider the number of moves
required to create a monochromatic path through each section, subject to certain further conditions.
SLIDE 63
Free Flood It on 2 × n boards
Fixed Free c fixed P P c unbounded P NP-h
Theorem (M., Scott, 2011)
Free Flood It remains NP-hard when restricted to 2 × n boards.
◮ Reduction from Vertex Cover.
SLIDE 64
Open Problems
SLIDE 65
Open Problems
◮ Complexity of detemining the number of moves required to
link a given set of k ≥ 3 points, for fixed k.
SLIDE 66
Open Problems
◮ Complexity of detemining the number of moves required to
link a given set of k ≥ 3 points, for fixed k.
◮ Complexity of 3-Fixed Flood It and 3-Free Flood It
- n 3 × n boards.
SLIDE 67
Open Problems
◮ Complexity of detemining the number of moves required to
link a given set of k ≥ 3 points, for fixed k.
◮ Complexity of 3-Fixed Flood It and 3-Free Flood It
- n 3 × n boards.
◮ Conjecture: c-Free Flood It is solvable in polynomial time
- n subdivisions of any fixed graph H.
SLIDE 68
Open Problems
◮ Complexity of detemining the number of moves required to
link a given set of k ≥ 3 points, for fixed k.
◮ Complexity of 3-Fixed Flood It and 3-Free Flood It
- n 3 × n boards.
◮ Conjecture: c-Free Flood It is solvable in polynomial time
- n subdivisions of any fixed graph H.
◮ Extremal problems:
◮ What is the worst possible colouring of a k × n board with c
colours?
SLIDE 69
Open Problems
◮ Complexity of detemining the number of moves required to
link a given set of k ≥ 3 points, for fixed k.
◮ Complexity of 3-Fixed Flood It and 3-Free Flood It
- n 3 × n boards.
◮ Conjecture: c-Free Flood It is solvable in polynomial time
- n subdivisions of any fixed graph H.
◮ Extremal problems:
◮ What is the worst possible colouring of a k × n board with c
colours?
◮ Given a graph G,
- 1. what is the worst possible colouring with c colours?
- 2. what is the best possible proper colouring?
SLIDE 70