a tree-decomposed transfer matrix for computing exact...

39
Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application A tree-decomposed transfer matrix for computing exact partition functions for arbitrary graphs Andrea Bedini 1 Jesper L. Jacobsen 2 1 MASCOS, The University of Melbourne, Melbourne 2 LPTENS, École Normale Supérieure, Paris Monash University 23 March, 2011 Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 1 / 32

Upload: others

Post on 22-Apr-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

A tree-decomposed transfer matrix for computingexact partition functions for arbitrary graphs

Andrea Bedini1 Jesper L. Jacobsen2

1MASCOS, The University of Melbourne, Melbourne

2LPTENS, École Normale Supérieure, Paris

Monash University23 March, 2011

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 1 / 32

Page 2: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 2 / 32

Page 3: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 3 / 32

Page 4: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Counting problems and Statistical Mechanics

SM studies the properties emerging in very large systemsThe possible emerging behaviour are often due to the competingeffects of energy and entropy

energy is a physical problem(what interaction is this energy due to?)

entropy is a combinatorial problem(how many possible configurations are there?)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 4 / 32

Page 5: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Counting problems and Statistical Mechanics

SM studies the properties emerging in very large systemsThe possible emerging behaviour are often due to the competingeffects of energy and entropy

energy is a physical problem(what interaction is this energy due to?)

entropy is a combinatorial problem(how many possible configurations are there?)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 4 / 32

Page 6: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Fundamental concepts

In SM one has a “model” defined on some graph (regular or not).

A model is made out of two elements:A configuration space CA function associating to each configuration a discrete energy E .

The statistical weight of a configuration is e−E (Gibbs weight)

Some configurations can be very rare but still dominat if theirenergy is small

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 5 / 32

Page 7: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

All the properties of a system are deduced from the partition function:

Z =∑C

e−E

which can be thought as an energy generating function

Computing the partition function is usually out of reach bothanalytically and numerically (only small systems are tractable)A better algorithm can reach larger sizes and consequently shedmore light on the phenomena relevant at infinite sizeThe transfer-matrix is a simple but efficient method to computeexactly partition functions for finite systems

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 6 / 32

Page 8: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 7 / 32

Page 9: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

The Potts model as a spin model

Given a graph G = (V ,E), we consider the set of colorings:

σ : V −→ [1,Q] Q ∈ N (colors)

each of them are assigned an energy

H(σ) = −K∑(ij)∈E

δ(σi , σj) K ∈ R (coupling)

so the partition function is given by

ZG(Q,K ) =∑σ

e−H(σ) =∑σ

∏(ij)∈E

eK δ(σi ,σj )

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 8 / 32

Page 10: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

The Potts model as a cluster model

We defined the model in terms of spins, but the same model can beview as a geometrical model

Fortuin-Kasteleyin representation

Rewriting eK δ(σi ,σj ) = 1 + v δ(σi , σj), we have

ZG(Q, v) =∑A⊆E

v |A|Qk(A)

“Objects” carrying enery are no longer localised but extended

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 9 / 32

Page 11: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Tutte polynomial

ZG(Q, v) is equivalent to the Tutte polynomial

TG(x , y) =∑A⊆E

(x − 1)r(E)−r(A)(y − 1)|A|−r(A)

∝ ZG((x − 1)(y − 1), y − 1)

where r(A) = |V | − k(A) is the rank of subgraph A.

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 10 / 32

Page 12: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Counting proper colorings

In the limit K →∞ (or v = −1) non proper colorings get weight zeroand proper Q-colourings contribute with weight one.

Chromatic polynomial

χG(Q) = ZG(Q, v = −1) =∑A⊆E

(−1)|A|Qk(A)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 11 / 32

Page 13: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Complexity classes for counting problems

#P is the class of enumeration problems in which structures beingcounter are recognisable in polynomial time.

A ∈ #P-complete if ∀B ∈ #P then B ≤P A

A ∈ #P-hard if ∃B ∈ #P-complete s.t. B ≤P A

Jaeger et al, 1990

Computing ZG(Q, v) is #P-hard except few exceptional points in the(Q, v) plane.

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 12 / 32

Page 14: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

In practice ...

The previously best known algorithm is due to Haggard, Pearceand Royle (2008)It uses an optimized deletion/contraction recursion

ZG(Q, v) = ZG \e(Q, v) + v ZG/e(Q, v)

where G \e is the graph obtained by deleting the edge eand G/e is the graph obtained by contracting e.

It runs in exponential time and takes ∼ 10s to deal with a planargraph of 40 vertices

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 13 / 32

Page 15: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 14 / 32

Page 16: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Basic ideas

ZG(Q, v) =∑A⊆E

v |A|Qk(A)

The sum is constructed iteratively by the action of linear operators.These operators act on “states”, properly weightedsuper-imposition of partially built configurations.When all possible configurations of a part of G have beenelaborated, we forget their state and re-sum all the informationinto the weights.

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 15 / 32

Page 17: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Definitions for the Potts model

ZG(Q, v) =∑A⊆E

v |A|Qk(A)

To keep track of k the state will be linear combinations of vertexpartitions (non-crossing if G is planar)

α∣∣

1 2 3 4

⟩+ β

∣∣1 2 3 4

⟩+ γ

∣∣1 2 3 4

⟩The number of partitions is the Catalan number CN =

1N + 1

(2NN

)∼ 4N

N3/2πif planar and the Bell number BN otherwise.

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 16 / 32

Page 18: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

We will act on these states with the operators:

Jij∣∣

i j

⟩=∣∣

i j

⟩Di∣∣

i· · ·⟩= Q

∣∣ · · · ⟩Jij∣∣

i j

⟩=∣∣

i j

⟩Di∣∣

i j· · ·⟩=∣∣

j· · ·⟩

If G has a layer structure then∣∣s′⟩ = T∣∣s⟩ where

1 2 3 4

1′ 2′ 3′ 4′

∣∣s⟩∣∣s′⟩

T =∏

i

Di(1 + v Ji,i ′)(1 + v Ji,i+1)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 17 / 32

Page 19: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

The same procedure can be implemented for general graphs.

We fix the order in which process verticesTo process a vertex i we first process all its incident edges andthen we delete it with Di .To process an edge (ij) we act with (1 + v Jij)

New vertices are inserted into partitions as needed

Di∏j∼i

(1 + v Jij)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 18 / 32

Page 20: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 19 / 32

Page 21: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 22: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 23: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 24: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 25: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 26: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 27: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Example

1

2

3

45

67

89

∣∣s′⟩ = D1 (1 + vJ12) (1 + vJ13)∣∣

1 2 3

⟩= (Q + 2v)

∣∣2 3

⟩+ v2∣∣

2 3

⟩∣∣s′′⟩ = D2 (1 + vJ24)

∣∣s′4

⟩= (. . . )

∣∣3 4

⟩+ (. . . )

∣∣3 4

⟩∣∣s′′′⟩ = . . .

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 20 / 32

Page 28: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 21 / 32

Page 29: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Time decomposition

1

2

3

45

67

89

The ordering defines a “time decomposition” inslices we call bagsTime and memory requirements scaleexponentially with the maximum bag size k .It happens to be a particular case of a moregeneral construction

1 2 3

2 3 4

3 4 5 6

4 5 6 8

5 6 7 8 9

6 7 8 9

7 8 9

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 22 / 32

Page 30: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Time decomposition

1

2

3

45

67

89

The ordering defines a “time decomposition” inslices we call bagsTime and memory requirements scaleexponentially with the maximum bag size k .It happens to be a particular case of a moregeneral construction

1 2 3

2 3 4

3 4 5 6

4 5 6 8

5 6 7 8 9

6 7 8 9

7 8 9

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 22 / 32

Page 31: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Tree decomposition

1

2

3

45

67

89

5 8 9

4 5 8

3 4 5

2 3 4

1 2 3

3 5 6

5 6 7

It is a collections of bags organised in a tree.∀i ∈ V , there exists a bag containing i∀(ij) ∈ E , there exists a bag containing both i and j∀i ∈ V , the set of bags containing i is connected in the treeThe treewidth k is the maximum bag size.

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 23 / 32

Page 32: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Tree decomposition

1

2

3

45

67

89

5 8 9

4 5 8

3 4 5

2 3 4

1 2 3

3 5 6

5 6 7

Tree decomposition can have smaller bagstherefore an exponentially smaller state space (Ck )Finding an optimal tree decompositions is NP-hardHeuristic algorithms give reasonably good decompositions inlinear time

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 23 / 32

Page 33: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

The fusion procedure

When a bag has several children, we need to “fuse” different timelines.Given two partitions

∣∣P1⟩

and∣∣P2⟩, we define∣∣P1

⟩⊗∣∣P2⟩=∣∣P1 ∨ P2

⟩Exemple:

∣∣1 2 3 4

⟩⊗∣∣

1 2 3 4

⟩=∣∣

1 2 3 4

⟩. . . 2 3 4

∑i ai∣∣Pi⟩

. . . 3 5 6∑

j bj∣∣Qj⟩

∑ij aibj

∣∣Pi⟩⊗∣∣Qj⟩

3 4 5 . . .

This is a quadratic operation requiring time ∼ O(C2k )

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 24 / 32

Page 34: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Complexity

The planar separator theorem gives an upper bound on treewidthk of a planar graph:

k < α√

N (α < 3.182)

The algorithm requires time O(C2k ) ' 16k

This implies a sub-exponential upper bound for the running time

t < 163.182√

N = e8.222√

N

It’s the natural generalization of the traditional TM whoserequirements scale as CL, where the side L '

√N

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 25 / 32

Page 35: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Performances

4 5 6 7 8 9 10√N

10-3

10-2

10-1

100

101

102avera

ge r

unnin

g t

ime (

seco

nds)

t̄tuttepoly'e0.245N

t̄tree ' e1.842√N

t̄tree+pruning ' e1.516√N

on an uniform sample of planar graphs

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 26 / 32

Page 36: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outline

1 Introduction

2 Potts model and vertex colourings

3 The transfer matrix

4 Example

5 Tree-decomposition

6 Application to the distribution of chromatic roots

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 27 / 32

Page 37: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Chromatic roots – regular lattice

Regular lattices have chromatic roots close to the Berahanumbers Bk = 4 cos2(π/k) up to a lattice specific limit

0 1 2 3 4Re(Q)

-2

-1

0

1

2Im

(Q)

10 x 1012 x 1214 x 1416 x 1618 x 18

We also know that chromatic roots are dense in CLittle is known about the roots of the typical planar graph

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 28 / 32

Page 38: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Chromatic roots – random planar

We sampled 2500 planar graphs with N = 100 and for each ofthem we computed the chromatic polynomial and its roots

0 1 2 3 4Re(Q)

-2

-1

0

1

2

Im(Q

)

10 x 1012 x 1214 x 1416 x 1618 x 18

0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5x

3

2

1

0

1

2

3

y

1e-03

1e-02

1e-01

1

10

p(x,y

)

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 29 / 32

Page 39: A tree-decomposed transfer matrix for computing exact ...users.Monash.edu/~gfarr/research/slides/Bedini-Monash.pdfA tree-decomposed transfer matrix for computing exact partition functions

Introduction Potts model and vertex colourings The transfer matrix Example Tree-decomposition Application

Outlook

In progress:Adapt the same algorithm to different graph models(hamiltonian walks, longest-path, vertex covering,maximum-biconnected subgraph, etc)Better understanding of the scaling of the treewidth and itsheuristic approximations (hint: 〈k〉 scales as N0.3 < N1/2)Look at other families of planar graphs (2-, 3-connected)

Further reading:AB, J.L. Jacobsen, J. Phys. A: Math. Theor. 43, 385001, 2010

Bedini, Jacobsen (MASCOS and LPTENS) A tree-decomposed transfer matrix Monash 23/3/2011 30 / 32