USING CONTINUOUS STATE SPACES FOR PERMUTATIONS 113
14) t
←t, t ←2t
15) Until cflag is true
6.8 Using continuous state spaces for permutations
Sometimes discrete spaces can be used to make continuous spaces coalesce faster.
In the other direction, sometimes use of a continuous space can simplify perfect
simulation for a discrete chain.
As an example of this, consider the set of permutations on n objects. In Sec-
tions 1.6.2 and 4.5, examples of distributions on the set of permutations were given.
In particular, for the linear extensions of a partial o rder (Section 4.4), bounding
chains were used to do CFTP because the discrete chain does not admit a monotonic
update function.
However, by embedding the set of permutations in a continuous space, it is pos-
sible to create a Markov chain with a monotonic update function!
For the set S
n
of permutations on n, objects, let C
n
be those vectors in [0, 1]
n
whose coordinates take on unique values. That is, C
n
= {x ∈ [0, 1]
n
: (∀i = j)(x(i) =
x( j))}. Then each vector in C
n
encodes a permutation in S
n
.
Definition 6.6. Let f
perm
: C
n
→ S
n
be the function f
perm
(x)=
σ
,where
σ
is the
unique permutation such that
x(
σ
(1)) < x(
σ
(2)) < x(
σ
(3)) < ···< x(
σ
(n)). (6.14)
For instance, f
perm
((0.23,0.14,0.75,0.60)) = (2,1,4 , 3). In fact, f
perm
maps into
the permutatio n (2,1, 4, 3) if and only if x(2) < x(1) < x(4) < x(3 ). An easy way to
read off the permutation from the vector is that
σ
(i)= j means that there are exactly
j components of x that are at most x (i).
Note that if a point X is chosen uniformly from C
n
, then from a symmetry argu-
ment it follows that for a ll
σ
, P( f
perm
=
σ
)=1/n!.
When
σ
is a lin ear extension of a poset, then
σ
(i) ≺
σ
( j) implies that i < j.In
the continuous space, this is the same as saying that if a ≺ b,thenx(a) < x(a).
Therefore, let
C
LE
= C
n
∩{x : (a ≺ b → x (a) < x (b))}. (6.15)
For
σ
a linear extension of a poset , the same symmetry argument as before
gives that for a draw Y ∼ Unif(C
LE
), P( f
perm
(Y )=
σ
)=1/Z,whereZ is the number
of linear extensions of the poset.
Note that it is easy to construc t either a Gibbs or Metropolis-Hastings style Harris
chain whose stationary distribution is uniform over C
LE
. For convenience o f notation,
create the dummy components x(0)=0andx(n + 1)=1, and assume 0 ≺ i ≺ n + 1
for all i ∈{1,...,n + 1}.
Then, for instance, you can choose I uniformly from {1,2,...,n}, and update
x(I) by choosing uniformly from the set of values such that x(I) remains in C
LE
.To