Title: Sampling Spanning Trees and Linear Extensions: Two Examples of Coupling
1Sampling Spanning Trees and Linear
ExtensionsTwo Examples of Coupling
Based on lectures notes by Alistair Sinclair and
Eric Vigoda
2Subjects
1. Sampling a spanning tree
2. Sampling linear extensions
3Spanning Tree
- connected
- no cycles
- ? (n-1) edges
4Sample Spanning Trees
Goal Given a connected undirected graph G(V,E),
sample a spanning tree of G. Means The Markov
Chain Monte-Carlo Method
5Convention
- rooted trees
- direct edges up associate edges with vertices
6Markov Chain
Broder Aldous
with prob. ½ DO NOTHING
- with prob. ½
- Choose a random neighbor v of the root in the
graph
2. Delete the unique edge oriented away from v
3. Make v the new root
7Exercise
8Algorithm
start with an arbitrary spanning tree for
O(VE/?) times do a step in the Markov
chain
9Algorithm
start with an arbitrary spanning tree for
O(VE/?) times do a step in the Markov
chain
prob. 1
prob. ½
prob. ¼
prob. ¼
10?
Describe the Markov chain
The chain is ergodic
Uniform is stationary
Coupling
11The chain ergodic
self loops
12The Chain is irreducible
Step 1 Make the two trees have the same root
13cont.
Step 2 Make an Euler Tour according to the
destination tree
14 The chain is symmetric??
?
15stationary distribution
To argue p is stationary we need for every state
v, Su?v M(u,v)p(u) p(v) To argue uniform is
stationary we need for every state v, Su?v
M(u,v) 1
?
16Predecessors of a Tree
r
r
?
s
- the same root (prob. ½)
- not the same root exists r?s (d options)
Su?v M(u,v) 1?½ d?1/2d 1
17?
Describe the Markov chain
The chain is ergodic
?
?
Uniform is stationary
Coupling
18Prob how to couple two trees with different
roots??
Sol. Propp Wilson states spanning trees
with specific root
spanning tree with a root
spanning tree with THE root
? we start with the same root !
19Propp Wilson
New Markov Chain
- Simulate old MC until getting to tree with
specific root
20The new chain ergodic
selp loop of old markov chain
- The new chain is aperiodic
- The new chain is irreducible
21The new chain is irreducible
Have the same root
return to THE root
22Stationary Distribution of New Markov Chain is
Uniform
Want ?v. Su?v M(u,v) 1
1. Initiate random walk at v on states of old MC
2. Move to each of vs predecessors in old MC w,
w.p. Mold(w,v)
3. Continue (move to random pred)
4. STOP when reached state of new MC
u1
v
u2
u3
23Stationary Distribution of New Markov Chain is
Uniform
Want ?v. Su?v M(u,v) 1
u1
v
u2
Note for all u s.t u?v, Prhitting uM(u,v)
Hence, Su?v M(u,v) 1
u3
24Coupling
The same in both copies
25Coupling Example
26Analysis
- Observation 1 if u becomes root, then both
copies agree on edge coming out of u ever since. - Note
- may not be such edge (whenever u is root)
- edge may change
27Observation 2 root simple random walk on G
? after walk on G visited all vertices and
returned to original root, copies coupled.
28Simple Random Walks
- Thm (Feige, 95) Let G(V,E) undirected graph.
When performing a simple random walk on G, - E ? O(VE)
steps until
random walk covered all vertices returned to
origin
29Concluding
- Thm (rapid mixing) For t ? ?(VE/?),
- dTV(Xt,Uniform) ? ?
- Proof
- dTV(Xt,Uniform) ? Pr By coupling
lemma - Pr not within t steps Observations
1 2 - ? E / t Markovs
inequality - O(VE/t) Feige,
95 - ? ?
copies didnt couple
steps until