News for hackers. Stuff that matters.
Re:A bad citizen in Javaland (2006) by frozenport on Thursday December 03, 2015 @10:59AM (#10670274)
The convergence of this method depends on the underlying distribution for your random process. It could be O(never).
Re:A bad citizen in Javaland (2006) by jerf on Thursday December 03, 2015 @01:26PM (#10671495)
As Scott Aaronson points out, the easy solution to this is that you add a slight quantum chance that the algorithm will yield "Reject". As long as that chance is non-zero, but greatly smaller than the probability of any particular successful permutation, you will survive in the universe that says "Reject".