blackwork embroidery and algorithms for maze traversals

28
Blackwork embroidery and algorithms for maze traversals Joshua Holden Joint work with Lana Holden Rose-Hulman Institute of Technology http://www.rose-hulman.edu/~holden Joshua Holden (RHIT) Blackwork embroidery and algorithms 1 / 28

Upload: joshua-holden

Post on 21-Jun-2015

1.674 views

Category:

Technology


5 download

DESCRIPTION

Blackwork embroidery is a needlework technique often associated with Elizabethan England. The patterns used in blackwork generally are traversed in a way that can be described by classical algorithms in graph theory, such as those used in “The Labyrinth Problem”. We investigate which of these maze-traversing algorithms can also be used to traverse blackwork patterns.

TRANSCRIPT

Page 1: Blackwork embroidery and algorithms for maze traversals

Blackwork embroidery and algorithms for mazetraversals

Joshua HoldenJoint work with Lana Holden

Rose-Hulman Institute of Technologyhttp://www.rose-hulman.edu/~holden

Joshua Holden (RHIT) Blackwork embroidery and algorithms 1 / 28

Page 2: Blackwork embroidery and algorithms for maze traversals

“Spanish Stitch”

Figure: Portrait of Catherine of Aragon, by Lucas Horenbout

Joshua Holden (RHIT) Blackwork embroidery and algorithms 2 / 28

Page 3: Blackwork embroidery and algorithms for maze traversals

“Holbein Stitch”

Figure: Jane Seymour, Queen of England, by Hans Holbein the Younger

Joshua Holden (RHIT) Blackwork embroidery and algorithms 3 / 28

Page 4: Blackwork embroidery and algorithms for maze traversals

The Rules

Figure: A typical piece of fabric used in blackwork

Joshua Holden (RHIT) Blackwork embroidery and algorithms 4 / 28

Page 5: Blackwork embroidery and algorithms for maze traversals

“Double Running Stitch”

9

1 42 6 8

1415

3 5 7

12 1013 11

Figure: Double running stitch

Joshua Holden (RHIT) Blackwork embroidery and algorithms 5 / 28

Page 6: Blackwork embroidery and algorithms for maze traversals

Reversible Patterns: Historical

Figure: A boy’s shirt from the 1540’s

Joshua Holden (RHIT) Blackwork embroidery and algorithms 6 / 28

Page 7: Blackwork embroidery and algorithms for maze traversals

Reversible Patterns: Modern

Figure: "Betsy", by Catherine Strickler, published by Indigo Rose

Joshua Holden (RHIT) Blackwork embroidery and algorithms 7 / 28

Page 8: Blackwork embroidery and algorithms for maze traversals

Graphs and Digraphs

Definition

A (loop-free) graph is a set of vertices, V , and a set of edges, E , whereeach edge is an unordered pair of distinct vertices.

Definition

A (loop-free) digraph is a set of vertices, V , and a set of edges, E ,where each edge is an ordered pair of distinct vertices.(The order is thought of as indicating a “direction”.)

Joshua Holden (RHIT) Blackwork embroidery and algorithms 8 / 28

Page 9: Blackwork embroidery and algorithms for maze traversals

Associating Graphs and Digraphs

Fact

An graph may be associated to a digraph by forgetting about theordering of the pairs.

FactA digraph may be associated to a graph by including both possibleorders (or directions) of each edge.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 9 / 28

Page 10: Blackwork embroidery and algorithms for maze traversals

Walks

Definition

A walk on a graph is a finite alternating sequence of vertices andedges x0, e1, x1, . . . , en, xn where each ei = {xi−1, xi}.

Definition

A graph is connected if there is a walk between any two vertices.

Definition

A directed walk on a digraph is a finite alternating sequence of verticesand edges x0, e1, x1, . . . , en, xn where eachei = (xi−1, xi).

Joshua Holden (RHIT) Blackwork embroidery and algorithms 10 / 28

Page 11: Blackwork embroidery and algorithms for maze traversals

Connected and Strongly Connected

Definition

A digraph is strongly connected if there is a directed walk between anytwo vertices.

Lemma

If a digraph is strongly connected then the associated graph isconnected.

Lemma

If a graph is connected then the associated digraph is stronglyconnected.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 11 / 28

Page 12: Blackwork embroidery and algorithms for maze traversals

Trails and Circuits

Definition

A directed trail is a directed walk where no edge is repeated. (Althoughvertices may be.)

DefinitionA directed circuit is a directed trail where x0 = xn.

Definition

An Eulerian circuit of a digraph is a directed circuit which includes all ofthe edges of the digraph.

Definition

A digraph is Eulerian if it has an Eulerian circuit.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 12 / 28

Page 13: Blackwork embroidery and algorithms for maze traversals

Degrees

Definition

For each vertex v of a digraph, the out degree of v is the number ofedges with v as the starting point.

Definition

For each vertex v of a digraph, the in degree of v is the number ofedges with v as the ending point.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 13 / 28

Page 14: Blackwork embroidery and algorithms for maze traversals

Eulerian Graphs

Theorem

A directed graph is Eulerian if and only if it is strongly connected andthe in degree of each vertex is equal to the out degree.

Lemma

The digraph associated to a graph has the in degree of each vertexequal to the out degree.

Corollary

The digraph associated to a graph is Eulerian if and only if the originalgraph is connected.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 14 / 28

Page 15: Blackwork embroidery and algorithms for maze traversals

Holbeinian Graphs

Definition

A digraph is symmetric if it is the digraph associated to some graph.

Definition

If x0, e1, x1, . . . , en, xn is a directed trail on a digraph, we say that theparity of each edge ei is the parity of i .

Definition

An Holbeinian circuit of a symmetric digraph is an Eulerian circuitwhere all edges (x , y) and (y , x) have opposite parities.

Definition

A symmetric digraph is Holbeinian if it has an Holbeinian circuit.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 15 / 28

Page 16: Blackwork embroidery and algorithms for maze traversals

Characterizations of Holbeinian Graphs

Theorem (Theorem 1)

A symmetric digraph is Holbeinian if and only if it is strongly connected.

Corollary

A symmetric digraph is Holbeinian if and only if the associated graph isconnected.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 16 / 28

Page 17: Blackwork embroidery and algorithms for maze traversals

Trémaux’s Algorithm

Suppose we have a strongly connected symmetric digraph.

1. Start at an arbitrary vertex x0.

2. Proceed along any edge.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 17 / 28

Page 18: Blackwork embroidery and algorithms for maze traversals

Trémaux’s Algorithm, continued

3. At each later step, suppose we have just traversed an edge (x , y)and arrived at a vertex y .

a. If we have not visited y before:i. If there is an edge leaving y other than (y , x), proceed along any

such edge.ii. If there are no such edges, turn back along (y , x).

b. If we have visited y before:i. If we have not traversed (y , x), turn back along (y , x).ii. If we have traversed (y , x):A. If there is an edge (y , z) for which neither (y , z) nor (z, y) has been

traversed, proceed along any such edge.B. If every edge (z, y) has been traversed but there is an edge (y , z)

which has not been traversed, proceed along any such edge.C. If every edge (y , z) has been traversed, terminate the algorithm.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 18 / 28

Page 19: Blackwork embroidery and algorithms for maze traversals

Example of Trémaux’s Algorithm

Example

4

18

8

15

7

1617

3

1 2

19 56

9

1011

12

13 14

Joshua Holden (RHIT) Blackwork embroidery and algorithms 19 / 28

Page 20: Blackwork embroidery and algorithms for maze traversals

Facts About Trémaux’s Algorithm

Lemma

Trémaux’s algorithm terminates at the initial vertex.

Theorem

Trémaux’s algorithm traverses every directed edge exactly once.

Theorem (Theorem 2)

Trémaux’s algorithm traverses (x , y) and (y , x) with opposite parity.

Corollary

Trémaux’s algorithm produces a Holbeinian circuit of the digraph.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 20 / 28

Page 21: Blackwork embroidery and algorithms for maze traversals

Tarry’s Algorithm (with parity)

Suppose we have a strongly connected symmetric digraph.

1. Start at an arbitrary vertex x0.

2. Proceed along any edge.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 21 / 28

Page 22: Blackwork embroidery and algorithms for maze traversals

Tarry’s Algorithm, continued

3. At each later step, suppose we have arrived at a vertex y . If y isnot x0, let (x1, y) be the edge that first reached y (“entry edge”).

a. If there is an edge (y , z) other than (y , x1) which has not beentraversed (and such that (z, y) either has not been traversed or wastraversed with parity opposite the current parity) proceed along anysuch edge.

b. If every edge (y , z) other than (y , x1) has been traversed (or (z, y)was traversed with the current parity), leave along (y , x1) (“reverseof entry edge”) (if (x1, y) was traversed with parity opposite thecurrent parity).

c. If there are no allowed moves as above, terminate the algorithm.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 22 / 28

Page 23: Blackwork embroidery and algorithms for maze traversals

Facts About Tarry’s Algorithm

Lemma

Tarry’s algorithm (with parity) terminates at the initial vertex.

Lemma

Tarry’s algorithm (with parity) visits every vertex, and leaves it alongthe reverse of its entry edge.

Theorem (Theorem 3)

Tarry’s algorithm (with parity) traverses every directed edge exactlyonce, and traverses (x , y) and (y , x) with opposite parity.

Corollary

Tarry’s algorithm (with parity) produces a Holbeinian circuit of thedigraph.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 23 / 28

Page 24: Blackwork embroidery and algorithms for maze traversals

A False Conjecture

Conjecture

Every Holbeinian circuit can be produced from Trémaux’s algorithm.

Counterexample

13 14

15 16

1718

5

9

1

4

11

12

8

10

62 3

19

7

Joshua Holden (RHIT) Blackwork embroidery and algorithms 24 / 28

Page 25: Blackwork embroidery and algorithms for maze traversals

Tarry Is More General

Theorem (Theorem 4)

Every circuit which can be produced from Trémaux’s algorithm can beproduced from Tarry’s algorithm (with parity).

Joshua Holden (RHIT) Blackwork embroidery and algorithms 25 / 28

Page 26: Blackwork embroidery and algorithms for maze traversals

Another False Conjecture

Conjecture

Every Holbeinian circuit can be produced from Tarry’s algorithm.

Counterexample

5

4

15 16

1718

14

13

12

11

10

9

7

3

1

8

62

19

Joshua Holden (RHIT) Blackwork embroidery and algorithms 26 / 28

Page 27: Blackwork embroidery and algorithms for maze traversals

An Open Conjecture

Fact

It is not possible for a “local” algorithm to distinguish between a graphwith an Eulerian circuit and one without.

Conjecture

There is a “local” algorithm with an “Eulerian oracle” which producesevery Holbeinian circuit.

Joshua Holden (RHIT) Blackwork embroidery and algorithms 27 / 28

Page 28: Blackwork embroidery and algorithms for maze traversals

Thanks, and happy stitching!

[1] Joshua Holden, The Graph Theory of Blackwork Embroidery, Making Mathematicswith Needlework (sara-marie belcastro and Carolyn Yackel, eds.), A K Peters,2007, pp. 136–153.

Figure: A modern blackwork pattern, by the author

Joshua Holden (RHIT) Blackwork embroidery and algorithms 28 / 28