Pattern avoidance in trees Introduction Brief history Contiguous - - PowerPoint PPT Presentation

pattern avoidance in trees
SMART_READER_LITE
LIVE PREVIEW

Pattern avoidance in trees Introduction Brief history Contiguous - - PowerPoint PPT Presentation

Pattern avoidance in trees Lara Pudwell Pattern avoidance in trees Introduction Brief history Contiguous tree patterns Lara Pudwell (Valparaiso University) Definition & examples faculty.valpo.edu/lpudwell Enumeration Non-


slide-1
SLIDE 1

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Pattern avoidance in trees

Lara Pudwell (Valparaiso University) faculty.valpo.edu/lpudwell Notre Dame Discrete Math Seminar November 27, 2012

Partially supported by NSF grant DMS-0851721

slide-2
SLIDE 2

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-3
SLIDE 3

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-4
SLIDE 4

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

History of Tree Patterns: Labelled Trees 1983: Flajolet and Steyaert

focus on asymptotic probability of avoiding a given pattern

1990: Flajolet, Sipala, and Steyaert

every leaf of pattern must be matched by a leaf of the tree motivated by compactly storing expressions in computer memory e.g. d dx

  • sin(x cos2(ex+1))
  • =
slide-5
SLIDE 5

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

History of Tree Patterns: Labelled Trees 1983: Flajolet and Steyaert

focus on asymptotic probability of avoiding a given pattern

1990: Flajolet, Sipala, and Steyaert

every leaf of pattern must be matched by a leaf of the tree motivated by compactly storing expressions in computer memory

2012: Dotsenko

pattern may occur anywhere in tree motivated by operad theory

slide-6
SLIDE 6

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

History of Tree Patterns: Unlabelled Trees 2009: Rowland

contiguous pattern avoidance in binary trees patterns can be anywhere, not just at leaves

2010: Gabriel, Peske, P., Tay

extended Rowland’s results to m-ary trees

2011: Dairyko, P., Tyner, Wynn

non-contiguous pattern avoidance in binary trees

2012: P., Serrato, Scholten, Schrock

non-contiguous pattern containment in binary/m-ary trees

slide-7
SLIDE 7

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Key Question Today, our trees will be: rooted (root vertex at top)

  • rdered (left child and right

child are distinct) full binary (each vertex has exactly 0 or 2 children)

slide-8
SLIDE 8

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Key Question Today, our trees will be: rooted (root vertex at top)

  • rdered (left child and right

child are distinct) full binary (each vertex has exactly 0 or 2 children) Question: How many trees with n leaves avoid a given tree pattern?

slide-9
SLIDE 9

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-10
SLIDE 10

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Tree patterns Contiguous tree pattern Tree T contains tree t if and only if T contains t as a contiguous rooted ordered subtree. Example: contains and but avoids .

slide-11
SLIDE 11

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

What is the number a(n) of n-leaf binary trees avoiding t? t = a(n) = 0 t = a(n) = 1 n = 1 n > 1 t =

  • r t =

a(n) = 1

slide-12
SLIDE 12

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

What is the number a(n) of n-leaf binary trees avoiding t? t = “Typical” tree avoiding t: a(n) = 1 n = 1 2n−2 n > 1

slide-13
SLIDE 13

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

What is the number a(n) of n-leaf binary trees avoiding t? t = “Typical” tree avoiding t: a(n) = 1 n = 1 2n−2 n > 1

slide-14
SLIDE 14

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

What is the number a(n) of n-leaf binary trees avoiding t? t = “Typical” trees avoiding t: Donaghey and Shapiro showed that a(n) = Mn−1 (Motzkin numbers).

slide-15
SLIDE 15

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Contiguous pattern enumeration data t a(n)

  • 1

n = 1 n > 1 1 2n−2 Mn−1 (Motzkin numbers)

slide-16
SLIDE 16

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Contiguous tree pattern enumeration Rowland Devised algorithm to find functional equation for avoidance generating function for any set of tree patterns.

Generating functions are always algebraic.

Enumerated trees containing specified number of copies of a given tree pattern. Completely determined equivalence classes for tree patterns with at most 8 leaves.

For n = 1, 2, 3, . . . , there are 1, 1, 1, 2, 3, 7, 15, 44, . . . equivalence classes of n-leaf binary trees.

slide-17
SLIDE 17

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-18
SLIDE 18

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Tree patterns Non-contiguous tree pattern Tree T contains tree t if and only if there exists a sequence of edge contractions of T that produce T ∗ which contains t as a contiguous rooted ordered subtree. Example: contains , , and .

slide-19
SLIDE 19

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Non-contiguous pattern enumeration data Pattern t Number of n-leaf trees avoiding t

  • 1

n = 1 n > 1 1 2n−2 2n−2 2n−2

slide-20
SLIDE 20

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

The Main Theorem Notation Let avt(n) be the number of n-leaf trees that avoid t non-contiguously. Let gt(x) = ∞

n=1 avt(n)xn.

slide-21
SLIDE 21

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

The Main Theorem Notation Let avt(n) be the number of n-leaf trees that avoid t non-contiguously. Let gt(x) = ∞

n=1 avt(n)xn.

Theorem Fix k ∈ Z+. Let t and s be two k-leaf binary tree patterns. Then gt(x) = gs(x).

slide-22
SLIDE 22

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Notation and Computation (More) Notation Given tree t,

let tℓ be the subtree whose root is the left child of t’s root. let tr be the subtree whose root is the right child of t’s root.

tℓ tr

slide-23
SLIDE 23

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Notation and Computation (More) Notation Given tree t,

let tℓ be the subtree whose root is the left child of t’s root. let tr be the subtree whose root is the right child of t’s root.

Notice gt(x) = x + gtℓ(x) · gt(x) + gt(x) · gtr (x) − gtℓ(x) · gtr (x)

slide-24
SLIDE 24

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Notation and Computation (More) Notation Given tree t,

let tℓ be the subtree whose root is the left child of t’s root. let tr be the subtree whose root is the right child of t’s root.

Notice gt(x) = x + gtℓ(x) · gt(x) + gt(x) · gtr (x) − gtℓ(x) · gtr (x) Solving... gt(x) = x − gtℓ(x) · gtr (x) 1 − gtℓ(x) − gtr (x).

slide-25
SLIDE 25

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Proposition gt(x) = x − gtℓ(x) · gtr (x) 1 − gtℓ(x) − gtr (x). Proposition For any tree pattern t, gt(x) is a rational function of x.

slide-26
SLIDE 26

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

A special case... Let ck be the k-leaf left comb (the unique k-leaf binary tree where every right child is a leaf). c1 = , c2 = , c3 = , c4 = , c5 = ,etc.

slide-27
SLIDE 27

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

A special case... Let ck be the k-leaf left comb (the unique k-leaf binary tree where every right child is a leaf). c1 = , c2 = , c3 = , c4 = , c5 = ,etc. If t = ck, then tℓ = ck−1 and tr = . For k ≥ 2, we have gck(x) = x − gck−1(x) · g (x) 1 − gck−1(x) − g (x) = x 1 − gck−1(x).

slide-28
SLIDE 28

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Back to the main result Theorem Fix k ∈ Z+. Let t and s be two k-leaf binary tree patterns. Then gt(x) = gs(x). Proof sketch Inductive step: Assume the theorem holds for tree patterns with ℓ leaves where ℓ < k. Then any ℓ-leaf tree has avoidance generating function gcℓ(x). Consider tree t with ℓ leaves to the left of its root and tree s with ℓ − 1 leaves to the left of its root. Do algebra with previous work to show that gt(x) = gs(x).

slide-29
SLIDE 29

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Generating functions k gck(x) OEIS number 1 trivial 2 x trivial 3

x 1−x

trivial 4

x−x2 1−2x

A000079 5

x−2x2 1−3x+x2

A001519 6

x−3x2+x3 1−4x+3x2

A007051 7

x−4x2+3x3 1−5x+6x2−x3

A080937 8

x−5x2+6x3−x4 1−6x+10x2−4x3

A024175 9

x−6x2+10x3−4x4 1−7x+15x2−10x3+x4

A080938

slide-30
SLIDE 30

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Coefficient sightings... 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1

slide-31
SLIDE 31

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Coefficient sightings... 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1

x 1 x 1−x x−x2 1−2x x−2x2 1−3x+x2 x−3x2+x3 1−4x+3x2 x−4x2+3x3 1−5x+6x2−x3 x−5x2+6x3−x4 1−6x+10x2−4x3 x−6x2+10x3−4x4 1−7x+15x2−10x3+x4

slide-32
SLIDE 32

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Coefficient sightings... 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 1 7 21 35 35 21 7 1 1 8 28 56 70 56 28 8 1

x 1 x 1−x x−x2 1−2x x−2x2 1−3x+x2 x−3x2+x3 1−4x+3x2 x−4x2+3x3 1−5x+6x2−x3 x−5x2+6x3−x4 1−6x+10x2−4x3 x−6x2+10x3−4x4 1−7x+15x2−10x3+x4

slide-33
SLIDE 33

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

An explicit formula Theorem Let k ∈ Z+ and let t be a binary tree pattern with k leaves. Then gt(x) =

⌊ k−2

2 ⌋

  • i=0

(−1)i · k−(i+2)

i

  • · xi+1

⌊ k−1

2 ⌋

  • i=0

(−1)i · k−(i+1)

i

  • · xi

.

slide-34
SLIDE 34

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Avoiding multiple tree patterns Methods extend naturally to trees avoiding multiple tree patterns simultaneously: Generating functions are still rational. No longer one equivalence class per size of tree pattern

slide-35
SLIDE 35

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Equivalence classes for avoiding a 4 leaf and a 5 leaf tree pattern Pattern representatives OEIS

  • ,
  • 0 for n ≥ 11
  • ,
  • A016777

(3k + 1)

  • ,
  • A152947

( (k−2)·(k−1)+1

2

)

  • ,
  • A000071

(Fibonacci numbers -1)

  • ,
  • A000073

(Tribonacci Numbers)

slide-36
SLIDE 36

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Avoiding multiple tree patterns Methods extend naturally to trees avoiding multiple tree patterns simultaneously: Generating functions are still rational. No longer one equivalence class per size of tree pattern (Open: Find a combinatorial characterization of when two sets of tree patterns are enumeratively equivalent.)

slide-37
SLIDE 37

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-38
SLIDE 38

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Contiguous patterns For binary patterns... A001006: Motzkin numbers A011782: Powers of 2 A036765: Number of Dyck n-paths that avoid UUUU A086581: Number of Dyck n-paths that avoid DDUU. A036766: Number of Dyck n-paths that avoid UUUUU A005773: Number of n-permutations avoiding 1-23-4 and 1-3-2

slide-39
SLIDE 39

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Contiguous patterns For binary patterns... A001006: Motzkin numbers A011782: Powers of 2 A036765: Number of Dyck n-paths that avoid UUUU A086581: Number of Dyck n-paths that avoid DDUU. A036766: Number of Dyck n-paths that avoid UUUUU A005773: Number of n-permutations avoiding 1-23-4 and 1-3-2 For ternary patterns... A000108: Catalan numbers A001003: Little Schroeder numbers A107264: Counts colored Motzkin paths, where H(1,0) and U(1,1) each have 3 colors and D(1,-1) one color. A006605: Number of modes of connections of 2n points.

(under Baxter’s generalization of the Temperley-Lieb operators)

slide-40
SLIDE 40

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

First things first... Notation Sn is the set of all permutations of length n written in one-line notation. Examples: S2 = {12, 21} S3 = {123, 132, 213, 231, 312, 321} Definition Let w ∈ [k]n. The reduction of w, red(w), is the string

  • btained by replacing the ith smallest letter(s) of w with i.

Examples: red(1534) = 1423 red(72884) = 31442 red(4231) = 4231

slide-41
SLIDE 41

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Permutation patterns Definition Let π ∈ Sn and ρ ∈ Sk. π contains ρ if there exist 1 ≤ i1 < · · · < ik ≤ n such that red(πi1 · · · πik) = ρ. If π does not contain ρ, then π avoids ρ Examples: 7245631 contains 132 (e.g. 243, 253, 263) contains 4321 (e.g. 7631, 7531, 7431) avoids 54321

slide-42
SLIDE 42

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Permutation patterns Notation sn(ρ) is the number of permutations of length n that avoid ρ. Preliminary results: sn(1) = 1 n = 0 n > 0 sn(12) = sn(21) = 1 sn(123) = sn(132) = sn(213) = sn(231) = sn(312) = sn(321) = 2n

n

  • (n + 1) = Cn (Catalan numbers)
slide-43
SLIDE 43

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

...and permutations We know that the Catalan numbers count: the number of binary trees the number of 231-avoiding permutations Can we say more?

slide-44
SLIDE 44

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

...and permutations We know that the Catalan numbers count: the number of binary trees the number of 231-avoiding permutations Can we say more? Theorem Let t be any non-contiguous binary tree pattern with k ≥ 2

  • leaves. Then

avt(n) = sn−1(231, (k − 1)(k − 2) · · · 21).

slide-45
SLIDE 45

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Example

slide-46
SLIDE 46

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Example 7 4 6 1 3 5 2

slide-47
SLIDE 47

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Example 7 4 6 1 3 5 2 1423756

slide-48
SLIDE 48

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Main theorem revisited.... Theorem Fix k ∈ Z+. Let t and s be two k-leaf binary tree patterns. Then gt(x) = gs(x). Under the tree ↔ 231-avoiding permutation bijection, this theorem translates into a set of enumeration-equivalances for permutations too!

slide-49
SLIDE 49

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

3-leaf tree equivalence class ↔ 12 ↔ 21 So sn(231, 12) = sn(231, 21) (or, really sn(12) = sn(21)).

slide-50
SLIDE 50

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

4-leaf tree equivalence class ↔ 213 ↔ 132 ↔ 312 ↔ 321 So sn(231, 213) = sn(231, 132) = sn(231, 312) = sn(231, 321)

slide-51
SLIDE 51

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

4-leaf tree equivalence class ↔ 213 ↔ 132 ↔ 312 ↔ 321 So sn(231, 213) = sn(231, 132) = sn(231, 312) = sn(231, 321) ↔ ?

slide-52
SLIDE 52

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

4-leaf tree equivalence class ↔ ↔ ↔ ↔ ↔ So sn(231, 213) = sn(231, 132) = sn(231, 312) = sn(231, 321) = sn

  • 231,
slide-53
SLIDE 53

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Outline

1

Introduction Brief history

2

Contiguous tree patterns Definition & examples Enumeration

3

Non-contiguous patterns Definition & examples Generating functions Sets of tree patterns

4

Connections to other objects OEIS hits Pattern-avoiding permutations

5

Summary

slide-54
SLIDE 54

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Summary Tree patterns have a rich history ranging from data storage considerations to non-associative algebra. Both contiguous and non-contiguous tree patterns yield nice enumeration sequences.

For contiguous tree patterns, gt(x) is algebraic. For non-contiguous tree patterns, gt(x) is rational and has a nice closed form. Open:

Equivalence classes for contiguous tree patterns with 9 or more leaves. Equivalence classes for trees avoiding sets of tree patterns.

slide-55
SLIDE 55

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Summary (continued) Trees avoiding a non-contiguous k-leaf tree pattern are in bijection with permutations avoiding 231 and (k − 1)(k − 2) · · · 1. For any n ∈ Z+, there are at least Catalan-many enumeration equivalent pattern sets of the form {231, π} where π is a mesh pattern of length n.

slide-56
SLIDE 56

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

Thank You!

slide-57
SLIDE 57

Pattern avoidance in trees Lara Pudwell Introduction

Brief history

Contiguous tree patterns

Definition & examples Enumeration

Non- contiguous patterns

Definition & examples Generating functions Sets of tree patterns

Connections to other

  • bjects

OEIS hits Pattern-avoiding permutations

Summary

References

  • M. Dairyko, L. Pudwell, S. Tyner, and C. Wynn, Non-contiguous

pattern avoidance in binary trees, Electronic Journal of Combinatorics 19 (3) (2012), P22.

  • V. Dotsenko, Pattern avoidance in labelled trees, S’em. Lothar.

Combin., B67b (2012), 27 pp.

  • P. Flajolet, P. Sipala, and J. M. Steyaert, Analytic variations on the

common subexpression problem, Automata, Languages, and Programming: Proc. of ICALP 1990, Lecture Notes in Computer Science, Vol. 443, Springer, 1990, pp. 220–234.

  • N. Gabriel, K. Peske, L. Pudwell, and S. Tay, Pattern avoidance in

ternary trees, J. Integer Seq. 15 (2012), 12.1.5.

  • D. Knuth, The Art of Computer Programming. 2nd ed. 1. Reading,

MA: Addison-Wesley, 1973.

  • E. S. Rowland, Pattern avoidance in binary trees, J. Combin. Theory,
  • Ser. A 117 (2010), 741–758.
  • J. M. Steyaert and P. Flajolet, Patterns and pattern-matching in

trees: an analysis, Info. Control 58 (1983), 19–58.