Local Algorithms on Grids Jukka Suomela Aalto University - - PowerPoint PPT Presentation

local algorithms on grids
SMART_READER_LITE
LIVE PREVIEW

Local Algorithms on Grids Jukka Suomela Aalto University - - PowerPoint PPT Presentation

Local Algorithms on Grids Jukka Suomela Aalto University arXiv:1702.05456 LCL Problems on Grids , joint work with: Janne H Korhonen, Tuomo Lempiinen, Christopher Purcell, Patric RJ stergrd (Aalto) Sebastian Brandt,


slide-1
SLIDE 1

Local Algorithms

  • n Grids

Jukka Suomela · Aalto University

slide-2
SLIDE 2

arXiv:1702.05456

“LCL Problems on Grids”, joint work with:

  • Janne H Korhonen, Tuomo Lempiäinen,

Christopher Purcell, Patric RJ Östergård (Aalto)

  • Sebastian Brandt, Przemysław Uznański (ETH)
  • Juho Hirvonen (Paris Diderot)
  • Joel Rybicki (Helsinki)
slide-3
SLIDE 3

2-colouring 3-colouring 4-colouring global global local

slide-4
SLIDE 4

Introduction

slide-5
SLIDE 5

Setting

  • Distributed graph algorithms
  • Input graph = computer network
  • node = computer, edge = communication link
  • unknown topology
  • Each node outputs its own part of solution
  • e.g. graph colouring: node outputs its own colour
slide-6
SLIDE 6

Setting

  • Deterministic distributed algorithms,

LOCAL model of computing

  • unique identifiers
  • synchronous communication rounds
  • time = number of rounds until all nodes stop
  • unlimited message size,

unlimited local computation

slide-7
SLIDE 7

Setting

  • Deterministic distributed algorithms,

LOCAL model of computing

  • Time = distance
  • Algorithm with running time T:

mapping from radius-T neighbourhoods to local outputs

slide-8
SLIDE 8

LCL problems

  • LCL = locally checkable labelling
  • Naor–Stockmeyer (1995)
  • Valid solution can be detected by checking

O(1)-radius neighbourhood of each node

  • maximal independent set, maximal matching,

vertex colouring, edge colouring …

slide-9
SLIDE 9

LCL problems

  • All LCL problems can be solved with

O(1)-round nondeterministic algorithms

  • guess a solution, verify it in O(1) rounds
  • Key question: how fast can we solve them

with deterministic algorithms?

  • cf. P vs. NP
slide-10
SLIDE 10

Traditional settings

  • Directed cycles
  • Cole–Vishkin (1986), Linial (1992)…
  • well understood
  • General (bounded-degree) graphs
  • lots of ongoing work…
  • typical challenge:

expander-like constructions

slide-11
SLIDE 11

Our setting today

  • Oriented grids (2D)
  • toroidal grid, n × n nodes, unique identifiers
  • consistent orientations north/east/south/west
  • Generalisation of directed cycles (1D)
  • Closer to real-world systems than

expander-like worst-case constructions?

slide-12
SLIDE 12

1D grids

  • Vertex colouring
  • 2-colouring: global, Θ(n) rounds
  • 3-colouring: local, Θ(log* n) rounds
  • Cole–Vishkin (1986), Linial (1992)
slide-13
SLIDE 13

Why is 3-colouring Θ(log* n)?

  • Upper bound: one-round colour reduction
  • input: colouring with 2k colours
  • output: colouring with 2k colours
  • Lower bound: speed-up lemma
  • given: algorithm for k-colouring in time T
  • construct: algorithm for 2k-colouring in time T − 1
slide-14
SLIDE 14

1D grids

  • Vertex colouring
  • 2-colouring: global, Θ(n) rounds
  • 3-colouring: local, Θ(log* n) rounds
  • Cole–Vishkin (1986), Linial (1992)
slide-15
SLIDE 15

2D grids

  • Vertex colouring
  • 2-colouring: global, Θ(n) rounds
  • 3-colouring: ???
  • 4-colouring: ???
  • 5-colouring: local, Θ(log* n) rounds
slide-16
SLIDE 16

2D grids

  • Vertex colouring
  • 2-colouring: global, Θ(n) rounds
  • 3-colouring: global, Θ(n) rounds
  • 4-colouring: local, Θ(log* n) rounds
  • 5-colouring: local, Θ(log* n) rounds
slide-17
SLIDE 17

Classification of LCL problems

slide-18
SLIDE 18

LCL problems on grids

  • O(1) time: “trivial”
  • o(log* n) time implies O(1) time (Naor–Stockmeyer)
  • Θ(log* n) time: “local”
  • Θ(n) time: “global”
  • Why nothing between local and global?
slide-19
SLIDE 19

Normalisation

  • Setting: LCL problems, 2D grids
  • Theorem: Any o(n)-time algorithm can be

translated to a “normal form”:

  • 1. fixed Θ(log* n)-time component
  • 2. problem-specific O(1)-time component
slide-20
SLIDE 20

92 33 77 57 49 26 71 79 8 62 48 24 31 21 15 30 60 67 5 17 95 23 47 87 80 25 38 20 64 45 61 91 51 69 1 74 55 3 98 88 99 58 53 63 40 16 2 39 1 1 1 1 1 1 1 1 1 1 1 1 1 1

O(log* n) O(1) MIS f

slide-21
SLIDE 21

Normalisation in more detail…

  • For any problem P of complexity o(n),

there are constants k and r and function f such that P can be solved as follows:

  • input: 2D grid G with unique identifiers
  • find a maximal independent set in Gk
  • discard unique identifiers
  • apply function f to each r × r neighbourhood
slide-22
SLIDE 22

Some proof ideas…

  • Given: A solves P in time o(n) in n × n grids
  • Solving P in time O(log* N) in N × N grids:
  • pick suitable n = O(1), k = O(1)
  • find a maximal independent set (MIS) in Gk
  • use MIS to find locally unique identifiers for

n × n neighbourhoods

  • simulate A in n × n local neighbourhoods
slide-23
SLIDE 23

LCL problems on grids

  • O(1) time: “trivial”
  • o(log* n) time implies O(1) time (Naor–Stockmeyer)
  • Θ(log* n) time: “local”
  • o(n) time implies O(log* n) time (normalisation)
  • Θ(n) time: “global”
slide-24
SLIDE 24

Vertex colouring

  • Every LCL problem is trivial, local, or global
  • Why is 4-colouring in 2D grids “local”?
  • Why is 3-colouring in 2D grids “global”?
slide-25
SLIDE 25

4-colouring

  • n grids
slide-26
SLIDE 26

4-colouring

  • Lucky guess: maybe it is local?
  • Try to use computers to find normal form
  • turns out it is enough to find an MIS in G3,

then consider 7 × 5 tiles

  • algorithm ≈ mapping {0, 1}7 × 5 → {1, 2, 3, 4}
  • only 2079 possible tiles, easy to find a solution
slide-27
SLIDE 27
slide-28
SLIDE 28
slide-29
SLIDE 29
slide-30
SLIDE 30

3-colouring

  • n grids
slide-31
SLIDE 31

3-colouring

  • Inherently different from 4-colouring:
  • cannot be solved locally
  • But also different from 2-colouring:
  • nontrivial to argue that the problem is global
slide-32
SLIDE 32

2-colouring 3-colouring 4-colouring global global local

slide-33
SLIDE 33
slide-34
SLIDE 34
slide-35
SLIDE 35

Proof idea

  • Assume: a local algorithm

for 3-colouring in n × n grids

  • Implication: a local algorithm

for “sum coordination” in n-cycles

  • But we can prove that this problem is global
slide-36
SLIDE 36

even × even

  • dd × odd

Consider any feasible 3-colouring…

slide-37
SLIDE 37

even × even

  • dd × odd

We can convert it into a greedy solution in constant time

(eliminate colour 2 whenever possible, then colour 3)

slide-38
SLIDE 38

even × even

  • dd × odd

Greedy solution: boundaries + 2-coloured regions

slide-39
SLIDE 39

even × even

  • dd × odd

Parity changes at each boundary

slide-40
SLIDE 40

even × even

  • dd × odd

Parity changes at each boundary

slide-41
SLIDE 41

even × even

  • dd × odd

Wrap around: same parity Wrap around:

  • pposite parity
slide-42
SLIDE 42

even × even

  • dd × odd

Boundaries can be oriented with local rules

(keep orange on right, white on left)

slide-43
SLIDE 43

even × even

  • dd × odd

Pick any row, label boundary crossings with +1 / −1

up = +1, down = −1 −1

slide-44
SLIDE 44

even × even

  • dd × odd

Sum of crossings: even Sum of crossings:

  • dd

−1

slide-45
SLIDE 45

even × even

  • dd × odd

Sum of crossings: even Sum of crossings:

  • dd

−1

slide-46
SLIDE 46

even × even

  • dd × odd

Boundaries are closed curves: constant sum

up = +1, down = −1 −1 −1 −1 −1

slide-47
SLIDE 47

even × even

  • dd × odd

Locality: sum only depends on grid dimensions, not on IDs

(otherwise we could construct one instance with non-constant sum) −1 −1 −1 −1

slide-48
SLIDE 48

Sum coordination

  • What any 3-colouring algorithms has to

solve for every row of the grid:

  • label nodes with {+1, 0, −1}
  • there is some function q so that the sum of labels is

q(n) in any n-cycle, regardless of unique identifiers

  • q(n) odd iff n is odd: cannot label everything with 0
  • |q(n)| not too large: cannot label everything with +1
slide-49
SLIDE 49

Sum coordination

  • What any 3-colouring algorithms has to

solve for every row of the grid

  • Requires global coordination
slide-50
SLIDE 50

Conclusions

slide-51
SLIDE 51

2-colouring 3-colouring 4-colouring global global local

slide-52
SLIDE 52

Conclusions: LCLs on grids

  • Only three complexity classes in 2D grids:

trivial O(1), local Θ(log* n), global Θ(n)

  • 4-colouring is local: algorithm synthesis
  • 3-colouring is global: sum coordination
  • Can be generalised to d-dimensional grids!
slide-53
SLIDE 53