PPZ rounds in a lazily sampled order #
A round of PPZ or PPSZ (Cslib.Complexity.PPZ.roundWith) processes the variables in a uniformly
random order, sampled eagerly as a permutation. An implementation samples the order lazily, as in
the Fisher–Yates shuffle: it keeps the unprocessed variables in an array, and at each step it swaps
a uniformly chosen one to the front and processes it.
Cslib.Complexity.PPZ.roundOn O g τ processes the variables g 0, …, g (m - 1) in a uniformly
random order, starting from the partial assignment τ. Choosing the first of them uniformly and
recursing on the others is the same random process
(Cslib.Complexity.PPZ.roundOn_succ): after p is processed, the array g with g 0 and g p
swapped lists the remaining variables from position 1 on. This is the decomposition
Equiv.Perm.decomposeFin of a uniform permutation into its value at 0 and a uniform permutation
of the rest. A round is the case of all variables from the empty assignment
(Cslib.Complexity.PPZ.roundWith_eq_roundOn).
Main definitions #
Cslib.Complexity.PPZ.runList: process a list of variables in order.Cslib.Complexity.PPZ.roundOn: process given variables in a uniformly random order.
Main results #
Cslib.Complexity.PPZ.runWith_eq_runList: a run in a fixed order processes the list of its values.Cslib.Complexity.PPZ.roundOn_succ: the lazy, Fisher–Yates form of a uniformly random order.Cslib.Complexity.PPZ.roundWith_eq_roundOn: a round isroundOnon all variables.
The lazy form of a uniformly random order. Processing g 0, …, g m in a uniformly random
order is the same as choosing p uniformly, processing g p, and then processing the others in a
uniformly random order. The others are listed by g after swapping positions 0 and p, from
position 1 on.