Parking in trees Marie-Louise Bruner Ongoing work with Alois - - PowerPoint PPT Presentation

parking in trees marie louise bruner
SMART_READER_LITE
LIVE PREVIEW

Parking in trees Marie-Louise Bruner Ongoing work with Alois - - PowerPoint PPT Presentation

Parking in trees Marie-Louise Bruner Ongoing work with Alois Panholzer CanaDAM 2013, June 10th Marie-Louise Bruner Parking in trees June 10th, 2013 1 Table of Contents Parking functions 1 Generalization to trees 2 Enumeration 3


slide-1
SLIDE 1

Parking in trees Marie-Louise Bruner

Ongoing work with Alois Panholzer CanaDAM 2013, June 10th

Marie-Louise Bruner Parking in trees June 10th, 2013 1

slide-2
SLIDE 2

Table of Contents

1

Parking functions

2

Generalization to trees

3

Enumeration

4

Further generalizations

5

Outlook

Marie-Louise Bruner Parking in trees June 10th, 2013 2

slide-3
SLIDE 3

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-4
SLIDE 4

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-5
SLIDE 5

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-6
SLIDE 6

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-7
SLIDE 7

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-8
SLIDE 8

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-9
SLIDE 9

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-10
SLIDE 10

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-11
SLIDE 11

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-12
SLIDE 12

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-13
SLIDE 13

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-14
SLIDE 14

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-15
SLIDE 15

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-16
SLIDE 16

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-17
SLIDE 17

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-18
SLIDE 18

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-19
SLIDE 19

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-20
SLIDE 20

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-21
SLIDE 21

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-22
SLIDE 22

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-23
SLIDE 23

Parking functions

What are parking functions?

Marie-Louise Bruner Parking in trees June 10th, 2013 3

slide-24
SLIDE 24

Parking functions

What are parking functions?

3, 1, 1, 5, 2 is a parking function 3, 1, 1, 5, 5 is not

Marie-Louise Bruner Parking in trees June 10th, 2013 4

slide-25
SLIDE 25

Parking functions

What are parking functions?

3, 1, 1, 5, 2 is a parking function 3, 1, 1, 5, 5 is not Alternative characterization A sequence p = p1, p2, . . . , pn ∈ {1, 2, . . . , n}n is a parking function if and

  • nly if it is a major function, i.e.:

If q = q1, q2, . . . , qn is the increasing rearrangement of p then it holds that: qi ≤ i for all i ∈ {1, 2, . . . , n} .

Marie-Louise Bruner Parking in trees June 10th, 2013 4

slide-26
SLIDE 26

Parking functions

Why parking functions?

Konheim and Weiss, 1966: An Occupancy Discipline and Applications Linear probing hashing: First non-trivial algorithm to be analysed by Knuth in 1962.

Marie-Louise Bruner Parking in trees June 10th, 2013 5

slide-27
SLIDE 27

Parking functions

How many parking functions are there?

Marie-Louise Bruner Parking in trees June 10th, 2013 6

slide-28
SLIDE 28

Parking functions

How many parking functions are there?

n cars and (n + 1) spaces:

  • ne space remains empty.

Marie-Louise Bruner Parking in trees June 10th, 2013 6

slide-29
SLIDE 29

Parking functions

How many parking functions are there?

n cars and (n + 1) spaces:

  • ne space remains empty.

Pn = (n + 1)n ·

1 n+1

= (n + 1)n−1 (Proof by Pollak, 1974)

Marie-Louise Bruner Parking in trees June 10th, 2013 6

slide-30
SLIDE 30

Parking functions

What if there are more spaces than cars?

Marie-Louise Bruner Parking in trees June 10th, 2013 7

slide-31
SLIDE 31

Parking functions

What if there are more spaces than cars?

m < n cars and (n + 1) spaces: (n + 1 − m) spaces remain empty.

Marie-Louise Bruner Parking in trees June 10th, 2013 7

slide-32
SLIDE 32

Parking functions

What if there are more spaces than cars?

m < n cars and (n + 1) spaces: (n + 1 − m) spaces remain empty. Pn,m = (n + 1)m · n+1−m

n+1

= (n + 1)m−1 · (n + 1 − m)

Marie-Louise Bruner Parking in trees June 10th, 2013 7

slide-33
SLIDE 33

Generalization to trees

From one way streets to trees

Marie-Louise Bruner Parking in trees June 10th, 2013 8

slide-34
SLIDE 34

Generalization to trees

From one way streets to trees

Marie-Louise Bruner Parking in trees June 10th, 2013 8

slide-35
SLIDE 35

Generalization to trees

What kind of trees?

rooted trees Edges are directed towards the root. Trees of size n are labelled with the integers 1, 2, . . . , n. The order of the children of a given node is of no relevance.

Marie-Louise Bruner Parking in trees June 10th, 2013 9

slide-36
SLIDE 36

Generalization to trees

What kind of trees?

rooted trees Edges are directed towards the root. Trees of size n are labelled with the integers 1, 2, . . . , n. The order of the children of a given node is of no relevance. − → Cayley trees

Marie-Louise Bruner Parking in trees June 10th, 2013 9

slide-37
SLIDE 37

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-38
SLIDE 38

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-39
SLIDE 39

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-40
SLIDE 40

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-41
SLIDE 41

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-42
SLIDE 42

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-43
SLIDE 43

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-44
SLIDE 44

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-45
SLIDE 45

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-46
SLIDE 46

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-47
SLIDE 47

Generalization to trees Marie-Louise Bruner Parking in trees June 10th, 2013 10

slide-48
SLIDE 48

Enumeration

How many parking functions on trees are there?

How many pairs (T, F) are there? T ... Cayley tree of size n F ... sequence of integers from {1, . . . , n} that is a parking function for T Fn ... number of pairs (T, F)

Marie-Louise Bruner Parking in trees June 10th, 2013 11

slide-49
SLIDE 49

Enumeration

Decomposition idea

We decompose a tree accompanied by a parking function by the last node that is filled. We have to consider two different cases: The last node to be filled is the root node. The last node to be filled is not the root node.

Marie-Louise Bruner Parking in trees June 10th, 2013 12

slide-50
SLIDE 50

Enumeration

Recurrence, first case

Marie-Louise Bruner Parking in trees June 10th, 2013 13

slide-51
SLIDE 51

Enumeration

Recurrence, first case

  • r≥1

1 r!

  • r

i=1 ki=n−1

ki≥1

Fk1 · Fk2 · . . . · Fkr

  • n

k1, k2, . . . , kr, 1

  • n − 1

k1, k2, . . . , kr

  • n

Marie-Louise Bruner Parking in trees June 10th, 2013 13

slide-52
SLIDE 52

Enumeration

Recurrence, second case

Marie-Louise Bruner Parking in trees June 10th, 2013 14

slide-53
SLIDE 53

Enumeration

Recurrence, second case

  • r≥0

1 r!

  • r

i=1 ki=n−k−1

k,ki≥1

Fk ·Fk1 ·. . .·Fkr ·

  • n

k, k1, . . . , kr, 1

  • n − 1

k, k1, . . . , kr

  • k(n−k)

Marie-Louise Bruner Parking in trees June 10th, 2013 14

slide-54
SLIDE 54

Enumeration

Technicalities: From recurrences to functional equations

With ˜ Fn := Fn/(n!)2 this decomposition leads to: n˜ Fn =

  • r≥1

1 r!

  • r

i=1 ki =n−1 ki ≥1

˜ Fk1 · . . . · ˜ Fkr · n +

  • r≥0

1 r!

  • r

i=1 ki =n−k−1 k,ki ≥1

˜ Fk · ˜ Fk1 · . . . · ˜ Fkr · k(n − k), for n ≥ 2,˜ F1 = 1.

Marie-Louise Bruner Parking in trees June 10th, 2013 15

slide-55
SLIDE 55

Enumeration

Technicalities: From recurrences to functional equations

With ˜ Fn := Fn/(n!)2 this decomposition leads to: n˜ Fn =

  • r≥1

1 r!

  • r

i=1 ki =n−1 ki ≥1

˜ Fk1 · . . . · ˜ Fkr · n +

  • r≥0

1 r!

  • r

i=1 ki =n−k−1 k,ki ≥1

˜ Fk · ˜ Fk1 · . . . · ˜ Fkr · k(n − k), for n ≥ 2,˜ F1 = 1. The generating function ˜ F(z) :=

n≥1 ˜

Fnzn fulfils the following differential equation: ˜ F ′(z) = exp(˜ F(z)) ·

  • 1 + z ˜

F ′(z) 2 , ˜ F(0) = 0,

Marie-Louise Bruner Parking in trees June 10th, 2013 15

slide-56
SLIDE 56

Enumeration

Technicalities: From recurrences to functional equations

With ˜ Fn := Fn/(n!)2 this decomposition leads to: n˜ Fn =

  • r≥1

1 r!

  • r

i=1 ki =n−1 ki ≥1

˜ Fk1 · . . . · ˜ Fkr · n +

  • r≥0

1 r!

  • r

i=1 ki =n−k−1 k,ki ≥1

˜ Fk · ˜ Fk1 · . . . · ˜ Fkr · k(n − k), for n ≥ 2,˜ F1 = 1. The generating function ˜ F(z) :=

n≥1 ˜

Fnzn fulfils the following differential equation: ˜ F ′(z) = exp(˜ F(z)) ·

  • 1 + z ˜

F ′(z) 2 , ˜ F(0) = 0, which has the following solution: ˜ F(z) = T(2z) + ln

  • 1 − T(2z)

2

  • ,

where T(z) is the Cayley tree function fulfilling T(z) = z exp(T(z)).

Marie-Louise Bruner Parking in trees June 10th, 2013 15

slide-57
SLIDE 57

Enumeration

Enumeration result

Theorem The total number Fn of n-parking functions of Cayley-trees of size n is given as follows: Fn = n! · (n − 1)! ·

n−1

  • k=0

(n − k) · (2n)k n · k! .

Marie-Louise Bruner Parking in trees June 10th, 2013 16

slide-58
SLIDE 58

Enumeration

Enumeration result

Theorem The total number Fn of n-parking functions of Cayley-trees of size n is given as follows: Fn = n! · (n − 1)! ·

n−1

  • k=0

(n − k) · (2n)k n · k! . Theorem The numbers Fn are asymptotically given as follows: Fn ∼ √ 2√π2n+1n2n n

3 2 en

.

Marie-Louise Bruner Parking in trees June 10th, 2013 16

slide-59
SLIDE 59

Further generalizations

Further generalizations

Consider the case where there are more parking spaces than drivers: If there are m < n drivers ˜ m := n − m parking spaces remain empty. − → decomposition of the tree according to the empty node, which has the largest label amongst all ˜ m empty nodes − → exact enumeration formula for Tn,m

Marie-Louise Bruner Parking in trees June 10th, 2013 17

slide-60
SLIDE 60

Further generalizations

Further generalizations

Consider the case where there are more parking spaces than drivers: If there are m < n drivers ˜ m := n − m parking spaces remain empty. − → decomposition of the tree according to the empty node, which has the largest label amongst all ˜ m empty nodes − → exact enumeration formula for Tn,m Consider parking functions on n-mappings instead of trees.

Marie-Louise Bruner Parking in trees June 10th, 2013 17

slide-61
SLIDE 61

Further generalizations

Mappings and their graph representation

Definition An n-mapping M is a function from the set [n] := {1, 2, . . . , n} to itself.

Marie-Louise Bruner Parking in trees June 10th, 2013 18

slide-62
SLIDE 62

Further generalizations

Mappings and their graph representation

Definition An n-mapping M is a function from the set [n] := {1, 2, . . . , n} to itself. M can also be represented by its functional graph: VM = {1, 2, . . . , n} and EM = {(i, M(i)) : 1 ≤ i ≤ n} .

Marie-Louise Bruner Parking in trees June 10th, 2013 18

slide-63
SLIDE 63

Further generalizations

Mappings and their graph representation

Definition An n-mapping M is a function from the set [n] := {1, 2, . . . , n} to itself. M can also be represented by its functional graph: VM = {1, 2, . . . , n} and EM = {(i, M(i)) : 1 ≤ i ≤ n} .

1 2 3 8 10 4 5 6 7 9 11 12 13 14 15 16 19 18 17

Marie-Louise Bruner Parking in trees June 10th, 2013 18

slide-64
SLIDE 64

Further generalizations

Mappings and their graph representation

Definition An n-mapping M is a function from the set [n] := {1, 2, . . . , n} to itself. M can also be represented by its functional graph: VM = {1, 2, . . . , n} and EM = {(i, M(i)) : 1 ≤ i ≤ n} .

1 2 3 8 10 4 5 6 7 9 11 12 13 14 15 16 19 18 17

Marie-Louise Bruner Parking in trees June 10th, 2013 18

slide-65
SLIDE 65

Further generalizations

Decomposition idea for connected mappings

We consider three different cases. The last node to be filled can be: the root node of the

  • nly tree constituting

the cycle, the root node of a tree in a cycle of length ≥ 2

  • r

a non-cyclic node.

...

Marie-Louise Bruner Parking in trees June 10th, 2013 19

slide-66
SLIDE 66

Further generalizations

Enumeration result for parking functions in mappings

Theorem Mn = n · Fn

Marie-Louise Bruner Parking in trees June 10th, 2013 20

slide-67
SLIDE 67

Further generalizations

Enumeration result for parking functions in mappings

Theorem Mn = n · Fn and Mn,m = n · Fn,m for all n ∈ N and 1 ≤ m ≤ n.

Marie-Louise Bruner Parking in trees June 10th, 2013 20

slide-68
SLIDE 68

Further generalizations

From parking in mappings back to hashing

Linear probing hashing h(i) ... hash value attributed to entry i in case of collision: try h(i) + 1 mod n j-th collision: try h(i) + j mod n

Marie-Louise Bruner Parking in trees June 10th, 2013 21

slide-69
SLIDE 69

Further generalizations

From parking in mappings back to hashing

Linear probing hashing h(i) ... hash value attributed to entry i in case of collision: try h(i) + 1 mod n j-th collision: try h(i) + j mod n “Random mapping” hashing h(i) = Fi ... i-th entry in parking function F in case of collision: try M(h(i)) j-th collision: try Mj(h(i))

Marie-Louise Bruner Parking in trees June 10th, 2013 21

slide-70
SLIDE 70

Outlook

Outlook

Defective parking functions Total displacement: total driving distance of the drivers Other tree families? Ordered trees, binary trees...

Marie-Louise Bruner Parking in trees June 10th, 2013 22