Introduction Self avoiding and non-crossing paths About the shape - - PowerPoint PPT Presentation

introduction self avoiding and non crossing paths about
SMART_READER_LITE
LIVE PREVIEW

Introduction Self avoiding and non-crossing paths About the shape - - PowerPoint PPT Presentation

Introduction Self avoiding and non-crossing paths About the shape Tilings Sre cko Brlek Words2011: words and digital geometry Introduction Self avoiding and non-crossing paths About the shape Tilings Discrete Applied Mathematics 139


slide-1
SLIDE 1

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-2
SLIDE 2

Introduction Self avoiding and non-crossing paths About the shape Tilings Discrete Applied Mathematics 139 (2004) 197–230 www.elsevier.com/locate/dam

Digital straightness—a review

Reinhard Klettea;∗, Azriel Rosenfeldb

aCITR, University of Auckland, Tamaki Campus, Auckland 1005, New Zealand bCenter for Automation Research, University of Maryland, College Park, MA, USA

Sreˇ cko Brlek Words2011: words and digital geometry

slide-3
SLIDE 3

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-4
SLIDE 4

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-5
SLIDE 5

Introduction Self avoiding and non-crossing paths About the shape Tilings

+

Sreˇ cko Brlek Words2011: words and digital geometry

slide-6
SLIDE 6

Introduction Self avoiding and non-crossing paths About the shape Tilings

+ +

Sreˇ cko Brlek Words2011: words and digital geometry

slide-7
SLIDE 7

Introduction Self avoiding and non-crossing paths About the shape Tilings

+ +

Sreˇ cko Brlek Words2011: words and digital geometry

slide-8
SLIDE 8

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-9
SLIDE 9

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-10
SLIDE 10

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-11
SLIDE 11

Introduction Self avoiding and non-crossing paths About the shape Tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-12
SLIDE 12

Introduction Self avoiding and non-crossing paths About the shape Tilings

How can we recognize a tile ?

Sreˇ cko Brlek Words2011: words and digital geometry

slide-13
SLIDE 13

Introduction Self avoiding and non-crossing paths About the shape Tilings

How can we recognize a tile ? How can we generate new tiles ?

Sreˇ cko Brlek Words2011: words and digital geometry

slide-14
SLIDE 14

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

Sreˇ cko Brlek Words2011: words and digital geometry

slide-15
SLIDE 15

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

w =

Sreˇ cko Brlek Words2011: words and digital geometry

slide-16
SLIDE 16

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a w = a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-17
SLIDE 17

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a w = a a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-18
SLIDE 18

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a w = a a a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-19
SLIDE 19

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a w = a a a a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-20
SLIDE 20

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b w = a a a a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-21
SLIDE 21

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a w = a a a a b a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-22
SLIDE 22

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b w = a a a a b a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-23
SLIDE 23

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a w = a a a a b a b a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-24
SLIDE 24

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a a w = a a a a b a b a a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-25
SLIDE 25

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a a b w = a a a a b a b a a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-26
SLIDE 26

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a a b a w = a a a a b a b a a b a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-27
SLIDE 27

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a a b a b w = a a a a b a b a a b a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-28
SLIDE 28

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓

a a a a b a b a a b a b Note : any conjugate w ≡ w′ codes the same polyomino. w = a a a a b a b a a b a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-29
SLIDE 29

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile representation

It is convenient to approximate tiles on square grids, and therefore to use the Freeman chain code on 4 letters for representing discrete figures (polyominoes) by their boundary a → b ↑ Σ =

  • a, a, b, b
  • = {0, 2, 1, 3}

a ← b ↓ a a a a b a b a a b a b Note : any conjugate w ≡ w′ codes the same polyomino. w ≡ a a a a b a b a a b a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-30
SLIDE 30

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile recognition : Given a word w ∈ Σ∗

  • 1. check if it is a boundary word

Sreˇ cko Brlek Words2011: words and digital geometry

slide-31
SLIDE 31

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile recognition : Given a word w ∈ Σ∗

  • 1. check if it is a boundary word : w is closed

Sreˇ cko Brlek Words2011: words and digital geometry

slide-32
SLIDE 32

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile recognition : Given a word w ∈ Σ∗

  • 1. check if it is a boundary word : w is closed and does not

intersect itself

Sreˇ cko Brlek Words2011: words and digital geometry

slide-33
SLIDE 33

Introduction Self avoiding and non-crossing paths About the shape Tilings

Tile recognition : Given a word w ∈ Σ∗

  • 1. check if it is a boundary word : w is closed and does not

intersect itself

  • 2. check if it has the “right” shape : BN-factorization (later)

Tile generation :

  • 1. Build a closed word having the BN-factorization
  • 2. check that it does not intersect itself

1 self avoiding and non crossing paths 2 about the shape 3 tilings Sreˇ cko Brlek Words2011: words and digital geometry

slide-34
SLIDE 34

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

Problem Given a path w ∈ Z × Z of length n, determine if w is self avoiding

  • r intersects itself.

Many solutions : sparse n × n matrix = ⇒ O(n2) list of n sorted points in = ⇒ O(n log n) hash table = ⇒ O(n log n) worst case

Sreˇ cko Brlek Words2011: words and digital geometry

slide-35
SLIDE 35

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

Problem Given a path w ∈ Z × Z of length n, determine if w is self avoiding

  • r intersects itself.

Many solutions : sparse n × n matrix = ⇒ O(n2) list of n sorted points in = ⇒ O(n log n) hash table = ⇒ O(n log n) worst case Problem Given a non-intersecting closed path encoded by a word w ∈ {a, b, ¯ a, ¯ b} of length n, determine whether w is written clockwise or counterclockwise. Solutions : left to the reader as an exercise

Sreˇ cko Brlek Words2011: words and digital geometry

slide-36
SLIDE 36

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The binary representation of numbers in N × N can be stored conveniently in a dictionary (trie, radix-tree) G = (N, R) : Root := (0, 0) the root has three child nodes : (00, 01), (01, 00), (01, 01) each other node n = (x, y), with x, y ∈ {0, 1}∗ has 4 child nodes : (x0, y0), (x0, y1), (x1, y0), (x1, y1)

7,6 1,0 0,2 0,3 1,2 1,3 6,6 6,7 2,2 7,7 1,1 2,3 3,2 3,3 3,1 0,0 4,2 4,3 5,3 5,2 3,0 0,1

(1,0) (1,1) (1,0) (0,0) (1,1) (0,1)

2,1

(1,1) (0,0) (1,0) (0,0) (0,1) (1,1) (0,1) (0,0) (0,1) (1,1) (1,1)

2,0

(0,0) (1,0) (0,1) (1,0) (1,0) (0,1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-37
SLIDE 37

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

Partioning the plane

Definition Two points p, q ∈ Z × Z are neighbors ⇐ ⇒ p − q ∈ − → Σ The neighborhood

level 0 level 1 level 2 level 3

Figure: Partition of the plane

relation T can be added

  • n the tree G for every

point so that G becomes G = (N, R, T).

Sreˇ cko Brlek Words2011: words and digital geometry

slide-38
SLIDE 38

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The radix tree with the neighborhood relation

a b b a

4,2 4,3 1,0 2,2 5,3 5,2 3,1 0,0 1,1 2,0

(0,1) (1,1) (1,0) (0,1) (0,0) (1,1) (1,0) (0,1) (0,0) (1,1) (1,0)

2,1

(0,0) (0,1) (1,0) (1,1) Sreˇ cko Brlek Words2011: words and digital geometry

slide-39
SLIDE 39

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

Observation For each coordinate, the father of each node xi is ⌊ xi

2 ⌋, and

consequently, when xi is odd, we have (xi + 1) = (⌊ xi

2 ⌋ + 1) · 0.

It leads to the following computation Lemma Let G (k) be the complete graph representing B≤k × B≤k for some k ≥ 1, ǫ ∈ Σ, and z = (x, y) be a node of Nk. If one of the four conditions holds : (i) ǫ = a and x[k] = 0, (ii) ǫ = a and x[k] = 1, (iii) ǫ = b and y[k] = 0, (iv) ǫ = b and y[k] = 1, then f ( z + ǫ) = f ( z ). Otherwise, f ( z + ǫ) = f ( z ) + ǫ.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-40
SLIDE 40

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

Propagating the carry

10111,01011 11000,01011

...

1011,0101 10110,01011 1100,0101

a a a

(0,1) (1,1) (0,1) (1,1) (0,1)

Figure: Adding 1 to the first coordinate in the radix tree representation.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-41
SLIDE 41

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

It remains to construct dynamically the graph Gw = (N, R, T) w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0) (0,1) (1,0)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-42
SLIDE 42

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0) (0,1) (1,0)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-43
SLIDE 43

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0) (0,1) (1,0)

(1,0)

(2,0)

(0,0) Sreˇ cko Brlek Words2011: words and digital geometry

slide-44
SLIDE 44

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0) (0,1) (1,0)

(1,0)

(2,0) (2,1)

(0,1) (0,1) (0,0) Sreˇ cko Brlek Words2011: words and digital geometry

slide-45
SLIDE 45

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0)

(0,0) (1,1)

(2,2) (0,1) (1,0)

(1,0)

(2,0) (2,1)

(0,1) (0,1) (0,0) (1,0) (0,1)

(1,1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-46
SLIDE 46

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0)

(0,0) (1,1)

(2,2) (0,1) (1,2)

(!1,0) (!1,0) (1,0)

(1,0)

(1,0)

(2,0) (2,1)

(0,1) (0,1) (0,0) (1,0) (0,1)

(1,1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-47
SLIDE 47

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0)

(0,0) (1,1)

(2,2) (0,1) (1,2)

(!1,0) (!1,0) (1,0)

(1,0)

(1,0)

(2,0) (2,1)

(0,1) (0,1) (0,0) (1,0) (0,!1) (0,!1) (0,1)

(1,1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-48
SLIDE 48

Introduction Self avoiding and non-crossing paths About the shape Tilings Radix-trees with neighborhood links The linear algorithm

The linear algorithm

w = aabb¯ a¯ ba (0,0)

(1,0) (0,1) (1,0) (0,1)

(0,0)

(0,0) (1,1)

(2,2) (0,1) (1,2)

(!1,0) (!1,0) (1,0)

(1,0)

(1,0)

(2,0) (2,1)

(0,1) (0,1) (0,0) (1,0) (0,!1) (0,!1) (0,1) (1,0)

(1,1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-49
SLIDE 49

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex Sreˇ cko Brlek Words2011: words and digital geometry

slide-50
SLIDE 50

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Let w be a word on {a, b, a, b}, then

  • a“left turn” of w is a factor of w in {ab, ba, ab, ba},
  • a“right turn” of w is a factor of w in {ab, ba, ab, ba}.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-51
SLIDE 51

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Let w be a word on {a, b, a, b}, then

  • a“left turn” of w is a factor of w in {ab, ba, ab, ba},
  • a“right turn” of w is a factor of w in {ab, ba, ab, ba}.

Definition (Alternative) Let w be the counterclockwise boundary word of a polyomino. A salient corner is a left turn, and a reentrant corner is a right turn.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-52
SLIDE 52

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Lemma (Daurat and Nivat 2003) Let w be the counterclockwise boundary word of a polyomino. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) = 4.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-53
SLIDE 53

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Lemma (Daurat and Nivat 2003) Let w be the counterclockwise boundary word of a polyomino. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) = 4. Manhattan Taxi driver’s proof :

Sreˇ cko Brlek Words2011: words and digital geometry

slide-54
SLIDE 54

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Lemma (Daurat and Nivat 2003) Let w be the counterclockwise boundary word of a polyomino. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) = 4. Manhattan Taxi driver’s proof :

N S E W

Sreˇ cko Brlek Words2011: words and digital geometry

slide-55
SLIDE 55

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Lemma Let w be a closed non-crossing path written counterclockwise. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) = 4. Lemma Let w be a closed path. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) ≡ 0 mod 4.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-56
SLIDE 56

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Lemma Let w be a closed non-crossing path written counterclockwise. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) = 4. Lemma Let w be a closed path. Let R(ww1) be the set of its right turns and L(ww1) be the set of its left turns. Then L(ww1) − R(ww1) ≡ 0 mod 4. Exercice : hexagonal grids.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-57
SLIDE 57

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-58
SLIDE 58

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-59
SLIDE 59

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

x y

Sreˇ cko Brlek Words2011: words and digital geometry

slide-60
SLIDE 60

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-61
SLIDE 61

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-62
SLIDE 62

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-63
SLIDE 63

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-64
SLIDE 64

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-65
SLIDE 65

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Euclidean convexity) A subset S ⊂ r2 is said convex if for any pair of points x, y ∈ S, the line segment joining x to y is entirely included in S.

y x

Sreˇ cko Brlek Words2011: words and digital geometry

slide-66
SLIDE 66

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Sreˇ cko Brlek Words2011: words and digital geometry

slide-67
SLIDE 67

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Sreˇ cko Brlek Words2011: words and digital geometry

slide-68
SLIDE 68

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Sreˇ cko Brlek Words2011: words and digital geometry

slide-69
SLIDE 69

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Minsky et Papert 1969, Slansky 1970) A subset S ⊂ Z2 is digitally convex if it is the discretization of a convex Euclidean figure.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-70
SLIDE 70

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Minsky et Papert 1969, Slansky 1970) A subset S ⊂ Z2 is digitally convex if it is the discretization of a convex Euclidean figure.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-71
SLIDE 71

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Minsky et Papert 1969, Slansky 1970) A subset S ⊂ Z2 is digitally convex if it is the discretization of a convex Euclidean figure.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-72
SLIDE 72

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Minsky et Papert 1969, Slansky 1970) A subset S ⊂ Z2 is digitally convex if it is the discretization of a convex Euclidean figure.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-73
SLIDE 73

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Minsky et Papert 1969, Slansky 1970) A subset S ⊂ Z2 is digitally convex if it is the discretization of a convex Euclidean figure. Remark : connexity may fail !

Sreˇ cko Brlek Words2011: words and digital geometry

slide-74
SLIDE 74

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition A discrete figure is a finite 8-connected subset of Z2, without holes.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-75
SLIDE 75

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition A discrete figure is a finite 8-connected subset of Z2, without holes.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-76
SLIDE 76

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition A discrete figure is a finite 8-connected subset of Z2, without holes.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-77
SLIDE 77

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition A discrete figure is a finite 8-connected subset of Z2, without holes.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-78
SLIDE 78

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Kim) A discrete figure F ⊂ Z2 is digitally convex if it is the digitization

  • f its Euclidean convex hull.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-79
SLIDE 79

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Kim) A discrete figure F ⊂ Z2 is digitally convex if it is the digitization

  • f its Euclidean convex hull.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-80
SLIDE 80

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Basics

Definition (Kim) A discrete figure F ⊂ Z2 is digitally convex if it is the digitization

  • f its Euclidean convex hull.

Remark : 8-connexity is included in the hypothesis !

Sreˇ cko Brlek Words2011: words and digital geometry

slide-81
SLIDE 81

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

HV-convexity

Definition A subset S ⊂ Z2 is H-convex if all its rows are connected.

(b) (c) (a)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-82
SLIDE 82

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

HV-convexity

Definition A subset S ⊂ Z2 is H-convex if all its rows are connected. Definition A subset S ⊂ Z2 is V-convex if all its column are connected.

(b) (c) (a)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-83
SLIDE 83

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

HV-convexity

Definition A subset S ⊂ Z2 is H-convex if all its rows are connected. Definition A subset S ⊂ Z2 is V-convex if all its column are connected. Definition A subset S ⊂ Z2 is HV-convex if it is H-convex and V-convex.

(b) (c) (a)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-84
SLIDE 84

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Previous result

Theorem (Debled-Renneson, R´ emy and Rouyer-Degli) Given an HV-convex discrete figure F. Deciding if F is digitally convex is decidable in linear time.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-85
SLIDE 85

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Previous result

Theorem (Debled-Renneson, R´ emy and Rouyer-Degli) Given an HV-convex discrete figure F. Deciding if F is digitally convex is decidable in linear time. Algorithm based on the segmentation of curves in discrete lines, which requires only arithmetic computations.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-86
SLIDE 86

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-87
SLIDE 87

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-88
SLIDE 88

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1. = (1) · (0 1 0 1 1) · (0 0 1) · (0 0 0 0 1)2.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-89
SLIDE 89

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1. = (1) · ( 0 1 0 1 1 ) · (0 0 1) · (0 0 0 0 1)2.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-90
SLIDE 90

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1. = (1) · ( 0 1 0 1 1 ) · ( 0 0 1 ) · (0 0 0 0 1)2.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-91
SLIDE 91

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1. = (1) · ( 0 1 0 1 1 ) · ( 0 0 1 ) · ( 0 0 0 0 1 )2.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-92
SLIDE 92

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Here, the boundary word w is written clockwise. Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words.

0 1 1 1 1 1 1 1

w = 1 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 1. = (1) · ( 0 1 0 1 1 ) · ( 0 0 1 ) · ( 0 0 0 0 1 )2.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-93
SLIDE 93

Introduction Self avoiding and non-crossing paths About the shape Tilings Daurat-Nivat relation : R − S = 4 Lyndon+Christoffel = Digitally convex

Proposition A word w is NW-convex iff its Lyndon factorization w = ln1

1 ln2 2 · · · lnk k

is only composed of Christoffel words. In practice there are linear algorithms for building the Lyndon factorization of any word (J.P. Duval) checking if a word is a Christoffel word By combining the two, where each Lyndon factor must be a Christoffel word, this leads to a linear algorithm which is 10 times faster than previous ones. Then it suffices to check NE, ES, SW-convexity by permuting the alphabet NW : (0, 1) ; NE : (0, 3) ; ES (3, 2) ; SW (2, 1)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-94
SLIDE 94

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares Sreˇ cko Brlek Words2011: words and digital geometry

slide-95
SLIDE 95

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Figure: Maurits Cornelis Escher (1898-1972)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-96
SLIDE 96

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares Sreˇ cko Brlek Words2011: words and digital geometry

slide-97
SLIDE 97

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Figure: Hexagonal tiling

Sreˇ cko Brlek Words2011: words and digital geometry

slide-98
SLIDE 98

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares Sreˇ cko Brlek Words2011: words and digital geometry

slide-99
SLIDE 99

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Figure: Hexagonal and Square tilings

Sreˇ cko Brlek Words2011: words and digital geometry

slide-100
SLIDE 100

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares Sreˇ cko Brlek Words2011: words and digital geometry

slide-101
SLIDE 101

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Figure: Pure Square Tilings

Sreˇ cko Brlek Words2011: words and digital geometry

slide-102
SLIDE 102

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

The tiling problem

Problem Given a word w, does it represent a polyomino P which tiles the plane by translation ?

Sreˇ cko Brlek Words2011: words and digital geometry

slide-103
SLIDE 103

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

The tiling problem

Problem Given a word w, does it represent a polyomino P which tiles the plane by translation ? Complexity : let n be the length of w.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-104
SLIDE 104

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

The tiling problem

Problem Given a word w, does it represent a polyomino P which tiles the plane by translation ? Complexity : let n be the length of w. Lower bound : Ω(n)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-105
SLIDE 105

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

The tiling problem

Problem Given a word w, does it represent a polyomino P which tiles the plane by translation ? Complexity : let n be the length of w. Lower bound : Ω(n) Upper bound : ? ? ?

Sreˇ cko Brlek Words2011: words and digital geometry

slide-106
SLIDE 106

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Sreˇ

cko Brlek Words2011: words and digital geometry

slide-107
SLIDE 107

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-108
SLIDE 108

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

Sreˇ cko Brlek Words2011: words and digital geometry

slide-109
SLIDE 109

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-110
SLIDE 110

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-111
SLIDE 111

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-112
SLIDE 112

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-113
SLIDE 113

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-114
SLIDE 114

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-115
SLIDE 115

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-116
SLIDE 116

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

Sreˇ cko Brlek Words2011: words and digital geometry

slide-117
SLIDE 117

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

Sreˇ cko Brlek Words2011: words and digital geometry

slide-118
SLIDE 118

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-119
SLIDE 119

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-120
SLIDE 120

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-121
SLIDE 121

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-122
SLIDE 122

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-123
SLIDE 123

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-124
SLIDE 124

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t

Sreˇ cko Brlek Words2011: words and digital geometry

slide-125
SLIDE 125

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t ✛

Sreˇ cko Brlek Words2011: words and digital geometry

slide-126
SLIDE 126

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Beauquier and Nivat (1991)

  • Characterization : A polyomino P tiles the plane

if and only if there exist X, Y , Z ∈ Σ∗ such that w ≡ XYZ X Y Z.

  • · = · ◦

·

X = a a b a b a b

t ✻

  • X = b a b a b a a

t ✛

Two words u, v such that u = v are called homologous.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-127
SLIDE 127

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Detecting squares

Let w be the boundary of P with |w| = n. Naive : O(n4) [Wijshof and Van Leeuven (1984)] O(n2) by using Beauquier-Nivat’s characterization [Gambini and Vuillon (2007)] .

Sreˇ cko Brlek Words2011: words and digital geometry

slide-128
SLIDE 128

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Detecting squares

Let w be the boundary of P with |w| = n. Naive : O(n4) [Wijshof and Van Leeuven (1984)] O(n2) by using Beauquier-Nivat’s characterization [Gambini and Vuillon (2007)] . O(n) optimal [B., Proven¸ cal (2006)] by using :

Sreˇ cko Brlek Words2011: words and digital geometry

slide-129
SLIDE 129

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Detecting squares

Let w be the boundary of P with |w| = n. Naive : O(n4) [Wijshof and Van Leeuven (1984)] O(n2) by using Beauquier-Nivat’s characterization [Gambini and Vuillon (2007)] . O(n) optimal [B., Proven¸ cal (2006)] by using :

  • 1. Beauquier-Nivat’s characterization ;
  • 2. computation of Longest Common

Right Extensions and Longest Common Left Extensions in constant time [Lothaire (2005)] conditional to a linear pre-processing of w for building its suffix tree [Gusfield (1997)]

Sreˇ cko Brlek Words2011: words and digital geometry

slide-130
SLIDE 130

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Theorem Let w ∈ Σ∗. Determining if w codes a square is decidable in linear time.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-131
SLIDE 131

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Theorem Let w ∈ Σ∗. Determining if w codes a square is decidable in linear time. Theorem Let w ∈ Σ∗ be a k-square-free word, with k ∈ O(√n). Determining if w codes a hexagon is decidable in linear time.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-132
SLIDE 132

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Generation of squares tiles

  • A. Hexaustive and brute force

for each even n generate all polyominoes of length n ; check if the boundary w of each polyomino satisfies the

  • factorization

w ≡ AB A B.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-133
SLIDE 133

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Generation of squares tiles

  • A. Hexaustive and brute force

for each even n generate all polyominoes of length n ; check if the boundary w of each polyomino satisfies the

  • factorization

w ≡ AB A B.

  • B. Less brute force

Generate 2 self avoiding walks A, B of length n, m :

  • 1. generate a walk of length n : O(n)
  • 2. check if it intersects itself : ?

Sreˇ cko Brlek Words2011: words and digital geometry

slide-134
SLIDE 134

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Generation of squares tiles

  • A. Hexaustive and brute force

for each even n generate all polyominoes of length n ; check if the boundary w of each polyomino satisfies the

  • factorization

w ≡ AB A B.

  • B. Less brute force

Generate 2 self avoiding walks A, B of length n, m :

  • 1. generate a walk of length n : O(n)
  • 2. check if it intersects itself : ?

Check if the final word AB A B does not intersect itself ;

Sreˇ cko Brlek Words2011: words and digital geometry

slide-135
SLIDE 135

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Observations : A tile may have both an hexagon and square factorization. A tile may have many distinct factorizations.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-136
SLIDE 136

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Observations : A tile may have both an hexagon and square factorization. A tile may have many distinct factorizations. Definition Call pure square a tile having only square BN-factorizations. Extensive computations suggest the following statement :

Sreˇ cko Brlek Words2011: words and digital geometry

slide-137
SLIDE 137

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Observations : A tile may have both an hexagon and square factorization. A tile may have many distinct factorizations. Definition Call pure square a tile having only square BN-factorizations. Extensive computations suggest the following statement : Theorem Every pure square has at most 2 distinct square BN-factorizations.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-138
SLIDE 138

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

..... search for pure double squares..... [WORDS 2009]

Solving equations of type AB A B ≡ XY X Y

Sreˇ cko Brlek Words2011: words and digital geometry

slide-139
SLIDE 139

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

..... search for pure double squares..... [WORDS 2009]

Solving equations of type AB A B ≡ XY X Y

Sreˇ cko Brlek Words2011: words and digital geometry

slide-140
SLIDE 140

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

..... search for pure double squares..... [WORDS 2009]

Solving equations of type AB A B ≡ XY X Y Nice cookies ! optimally packed, self assembling in two distinct ways ....

Sreˇ cko Brlek Words2011: words and digital geometry

slide-141
SLIDE 141

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Let B = {a, b}. We define a morphism λ : B∗ → F∗ by λ(a) = a¯ bab; λ(b) = ab.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-142
SLIDE 142

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Let B = {a, b}. We define a morphism λ : B∗ → F∗ by λ(a) = a¯ bab; λ(b) = ab. Two useful properties of λ are Lemma Let v, v′ ∈ B∗. Then (i) bλ(v) is a palindrome if and only if v is a palindrome. (ii) λ(v) ≡ λ(v′) if and only if v ≡ v′.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-143
SLIDE 143

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Definition We call linear tile a polyomino whose boundary word is given by λ(w)λ(w) where w = avb and v ∈ Pal(B∗). A linear tile is a square since λ(w)λ(w) = a¯ babλ(v)ab¯ ab¯ a¯ bλ(v)¯ a¯ b ≡ ¯ ba¯ b·abλ(v)a· ¯ ba¯ b· abλ(v)a. We say that a linear tile obtained from a lower Christoffel word w is a basic Christoffel tile.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-144
SLIDE 144

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Definition We call linear tile a polyomino whose boundary word is given by λ(w)λ(w) where w = avb and v ∈ Pal(B∗). A linear tile is a square since λ(w)λ(w) = a¯ babλ(v)ab¯ ab¯ a¯ bλ(v)¯ a¯ b ≡ ¯ ba¯ b·abλ(v)a· ¯ ba¯ b· abλ(v)a. We say that a linear tile obtained from a lower Christoffel word w is a basic Christoffel tile.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-145
SLIDE 145

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Definition We call linear tile a polyomino whose boundary word is given by λ(w)λ(w) where w = avb and v ∈ Pal(B∗). A linear tile is a square since λ(w)λ(w) = a¯ babλ(v)ab¯ ab¯ a¯ bλ(v)¯ a¯ b ≡ ¯ ba¯ b·abλ(v)a· ¯ ba¯ b· abλ(v)a. We say that a linear tile obtained from a lower Christoffel word w is a basic Christoffel tile.

Figure: Basic Christoffel tiles : (a) w = aaaab (b) w = abbbb and (c) w = aabaababaabab.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-146
SLIDE 146

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Christoffel Tiles, DGCI2009

Theorem Let P be a linear tile. Then P is a double square if and only if P is a basic Christoffel tile.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-147
SLIDE 147

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Fibonacci Tiles, DGCI2009

We define a sequence (qn)n∈N in {r, l}∗ by q0 = ε, q1 = r and qn =

  • qn−1qn−2

if n ≡ 2 mod 3, qn−1qn−2 if n ≡ 0, 1 mod 3. The first terms of (qn)n∈N are

q0 = ε q3 = rl q6 = rllrllrr q1 = r q4 = rll q7 = rllrllrrlrrlr q2 = r q5 = rllrl q8 = rllrllrrlrrlrrllrllrr

Sreˇ cko Brlek Words2011: words and digital geometry

slide-148
SLIDE 148

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Fibonacci Tiles, DGCI2009

We define a sequence (qn)n∈N in {r, l}∗ by q0 = ε, q1 = r and qn =

  • qn−1qn−2

if n ≡ 2 mod 3, qn−1qn−2 if n ≡ 0, 1 mod 3. The first terms of (qn)n∈N are

q0 = ε q3 = rl q6 = rllrllrr q1 = r q4 = rll q7 = rllrllrrlrrlr q2 = r q5 = rllrl q8 = rllrllrrlrrlrrllrllrr

Remark : the length of these words is given by the Fibonacci sequence : |qn| = F(n)

Sreˇ cko Brlek Words2011: words and digital geometry

slide-149
SLIDE 149

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-150
SLIDE 150

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-151
SLIDE 151

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-152
SLIDE 152

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-153
SLIDE 153

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-154
SLIDE 154

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Lemma Let n ∈ N and α ∈ {a, b, a, b}. (i) The path qn is self-avoiding. (ii) The path (q3n+1)4 is the boundary word of a polyomino.

Figure: Basic Fibonacci tiles of order n = 0, 1, 2, 3, 4.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-155
SLIDE 155

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

A tesselation......

Figure: A tesselation with a Fibonacci polyomino.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-156
SLIDE 156

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

A combinatorial result ......

The perimeter of Fibonacci snowflakes is given by 4F(3n + 1) while its area A(n) satisfies the recurrence formulas A(0) = 1, A(1) = 5; A(n) = 6A(n − 1) − A(n − 2), for n ≥ 2, whose first terms are 1, 5, 29, 169, 985, 5741, 33461, 195025, 1136689, 6625109, 38613965, . . . This sequence is the subsequence of odd index Pell numbers 0, 1, 2, 5, 12, 29, 70, 169, 408, 985, 2378, 5741, 13860, 33461, 80782, . . . defined by P(0) = 0, P(1) = 1; P(n) = 2P(n − 1) + P(n − 2), for n > 1.

Sreˇ cko Brlek Words2011: words and digital geometry

slide-157
SLIDE 157

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

Interactions between combinatorics on words and digital geometry

Sreˇ cko Brlek September 13, 2011

based on work with : Alexandre Blondin Mass´ e(1), Jean-Marc F´ edou (5)Ariane Garon(1), Michel Koskas(2), Annie Lacasse(1), S´ ebastien Labb´ e (1), Gilbert Labelle (1), Jacques-Olivier Lachaud (4),Michel Mend` es France (3), Xavier Proven¸ cal (4), Christophe Reutenauer (1)

(1) Laboratoire de Combinatoire et d’Informatique Math´

ematique, UQAM

(2)AgroParisTech, UMR518, 16 rue Claude Bernard, 75005 Paris Cedex (3)UMR 5251, Universit´

e de Bordeaux, 351 cours de la Lib´ eration, Talence

(4)LAMA (Un. de Savoie, Chamb´

ery)

(5)I3S, Un. Nice, Sophia-Antipolis

Sreˇ cko Brlek Words2011: words and digital geometry

slide-158
SLIDE 158

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares Sreˇ cko Brlek Words2011: words and digital geometry

slide-159
SLIDE 159

Introduction Self avoiding and non-crossing paths About the shape Tilings Escher tilings Tiling by translation Algorithms Double Squares

T HANK YOU!

with special thanks to Eliot - alias Marcel - and Val´ erie

Sreˇ cko Brlek Words2011: words and digital geometry