pengvado comments on Open Thread, July 1-15, 2013 - Less Wrong

4 Post author: Vaniver 01 July 2013 05:10PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (342)

You are viewing a single comment's thread. Show more comments above.

Comment author: pengvado 14 July 2013 12:32:47AM 0 points [-]

If instead the simulator can read the real probability on an infinite tape... obviously it can't read the whole tape before producing an output. So it has to read, then output, then read, then output. It seems intuitive that with this strategy, it can place an absolute limit on the advantage that any attacker can achieve, but I don't have a proof of that yet.

In this model, a simulator can exactly match the desired probability in O(1) expected time per sample. (The distribution of possible running times extends to arbitrarily large values, but the L1-norm of the distribution is finite. If this were a decision problem rather than a sampling problem, I'd call it ZPP.)

Algorithm:
1. Start with an empty string S.
2. Flip a coin and append it to S.
3. If S is exactly equal to the corresponding-length prefix of your probability tape P, then goto 2.
4. Compare (S < P)

Comment author: ciphergoth 14 July 2013 08:23:09AM 0 points [-]

D'oh! Of course - thanks!