Hacker News new | ask | show | jobs
by im2w1l 3782 days ago
Has anyone analyzed the MCMC version?

    while not sorted:
        swap(a[rand(n)], a[rand(n)])
2 comments

IIUC that's covered in the paper, as bozo-sort (or bozo-sort+ if the two random numbers are different).
I think it may helpful to decompose the permutation into circles, and create an equation system of time left from different states.