当你脑力极小时如何洗牌:排列的低内存生成
Shuffling Cards When You Are of Very Little Brain: Low Memory Generation of Permutations
AI总结:
本文研究低内存发牌者生成难预测排列的问题,提出每轮常数时间的白盒 $m$ 比特方案,并证明猜测成功次数的紧界 $\Theta(n/m+\log m)$,同时给出密码学条件与 $O(n)$ 比特完美随机方案。
摘要:
我们如何生成数字 $1$ 到 $n$ 的一个排列,使得在给定迄今为止的历史时很难猜出下一个元素?关键转折在于,排列的生成者(“发牌者”)内存有限,而“猜测者”拥有无限内存。在内存不受限制的情况下(实际上 $n$ 个比特就足够),发牌者可以生成真正随机的排列,此时正确猜测次数的期望为 $\ln n$。我们的主要结果建立了猜测概率与生成排列所需内存 $m$ 之间关系的紧界。我们提出一种适用于 $m$ 比特发牌者的方法,每一轮以常数时间运行,并且任何猜测者平均只能正确挑出 $O(n/m+\log m)$ 张牌。该方法完全透明,不需要发牌者拥有任何隐藏信息(即它是“开卷”或“白盒”的)。我们证明这一界是最优的,即使拥有秘密内存也是如此。具体而言,对于任意 $m$ 比特发牌者,都存在一个(计算能力强大的)猜测者,能够在期望意义下达到 $Ω(n/m+\log m)$ 次正确猜测。我们指出,猜测者计算能力强大这一假设是必要的:在密码学假设下,存在一种低内存发牌者,可以欺骗任何计算受限的猜测者。我们还给出一个使用 $O(n)$ 比特内存的发牌者,它能生成完全随机的排列,并且每一轮以常数时间运行。
英文摘要:
How can we generate a permutation of the numbers $1$ through $n$ so that it is hard to guess the next element given the history so far? The twist is that the generator of the permutation (the ``Dealer") has limited memory, while the ``Guesser" has unlimited memory. With unbounded memory (actually $n$ bits suffice), the Dealer can generate a truly random permutation where $\ln n$ is the expected number of correct guesses. Our main results establish tight bounds for the relationship between the guessing probability and the memory $m$ required to generate the permutation. We suggest a method for an $m$-bit Dealer that operates in constant time per turn, and any Guesser can pick correctly only $O(n/m+\log m)$ cards in expectation. The method is fully transparent, requiring no hidden information from the Dealer (i.e., it is "open book" or "whitebox"). We show that this bound is the best possible, even with secret memory. Specifically, for any $m$-bit Dealer, there is a (computationally powerful) guesser that achieves $Ω(n/m+\log m)$ correct guesses in expectation. We point out that the assumption that the Guesser is computationally powerful is necessary: under cryptographic assumptions, there exists a low-memory Dealer that can fool any computationally bounded guesser. We also give an $O(n)$ bit memory Dealer that generates perfectly random permutations and operates in constant time per turn.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。