DOI QR코드

DOI QR Code

The Sub-Peres Functions for Random Number Generation

무작위수생성을 위한 부 페레즈 함수

  • Pae, Sung-Il (Dept. of Computer Engineering, Hongik University)
  • Received : 2013.01.29
  • Accepted : 2013.02.23
  • Published : 2013.02.28

Abstract

We study sub-Peres functions that are defined recursively as Peres function for random number generation. Instead of using two parameter functions as in Peres function, the sub-Peres functions uses only one parameter function. Naturally, these functions produce less random bits, hence are not asymptotically optimal. However, the sub-Peres functions runs in linear time, i.e., in O(n) time rather than O(n logn) as in Peres's case. Moreover, the implementation is even simpler than Peres function not only because they use only one parameter function but because they are tail recursive, hence run in a simple iterative manner rather than by a recursion, eliminating the usage of stack and thus further reducing the memory requirement of Peres's method. And yet, the output rate of the sub-Peres function is more than twice as much as that of von Neumann's method which is widely known linear-time method. So, these methods can be used, instead of von Neumann's method, in an environment with limited computational resources like mobile devices. We report the analyses of the sub-Peres functions regarding their running time and the exact output rates in comparison with Peres function and other known methods for random number generation. Also, we discuss how these sub-Peres function can be implemented.

이 논문은 무작위수 생성을 위한 페레즈 함수와 같이 재귀적으로 정의된 부 페레즈 함수에 대하여 논한다. 페레즈 함수와 같이 두 개의 인자함수를 쓰는 대신, 부 페레즈 함수들은 한 개의 인자함수만을 이용하여 정의된다. 따라서 당연히 그 출력효율은 페레즈 함수에 비하여 낮고, 점근적으로 최적효율을 내지도 않는다. 그러나, O(n logn)의 시간복잡도를 갖는 페레즈 함수에 비하여, 부 페레즈 함수들은 선형시간, 즉 O(n)의 시간에 실행된다. 더구나, 이 함수들은 하나의 인자함수를 쓰기 때문만이 아니라 꼬리재귀함수로서 간단한 반복수행에 의해 구현되어 페레즈 함수보다 더 적은 메모리로 구현될 수 있다. 그럼에도, 이 함수들은 널리 알려진 선형시간 알고리즘인 폰 노이만 방법보다 출력효율이 최대 두 배 이상 높다. 따라서, 이 방법들은 모바일 기기와 같은 제한된 계산 자원을 가진 환경에서 폰 노이만 방법 대신 이용될 수 있다. 이 논문에서는 이러한 부 페레즈 함수들의 실행시간과 정확한 출력효율을 분석하여, 페레즈 함수를 비롯한 다른 무작위수 생성을 위한 방법들과 비교한다. 그리고, 부 페레즈 함수들의 구현에 대하여 논한다.

Keywords

References

  1. P. Diaconis. The search for randomness. at American Association for the Advancement of Science annual meeting. Feb. 14, 2004. Seattle.P. Diaconis, S. Holmes, and R. Montgomery.
  2. P. Diaconis, S. Holmes, and R. Montgomery, Dynamical bias in the coin toss. SIAM Review, Vol. 49, No. 2, p.211, 2007. https://doi.org/10.1137/S0036144504446436
  3. John von Neumann. Various techniques for use in connection with random digits. Notes by G. E. Forsythe. In Monte Carlo Method, Applied Mathematics Series, volume 12, pages 36-38. U.S. National Bureau of Standards, Washington D.C., 1951. Reprinted in von Neumann's Collected Works 5 (Pergammon Press, 1963), 768-770.
  4. B. Jun and P. Kocher. The Intel random number generator. White paper prepared for Intel Corporation, 1999. Cryptography Research, Inc.
  5. C. E. Shannon and W. Weaver. The Mathematical Theory of Communication. The University of Illinois Press, Urbana, 1964.
  6. T. M. Cover and J. A. Thomas. Elements of Information Theory. Wiley Series in Telecommunications. John Wiley & Sons, New York, NY, USA, 1991.
  7. Peter Elias. The efficient construction of an unbiased random sequence. The Annals of Mathematical Statistics, Vol. 43, No.3, pp. 865-870, 1972. https://doi.org/10.1214/aoms/1177692552
  8. Yuval Peres. Iterating von Neumann's procedure for extracting random bits. Annals of Statistics, Vol. 20, No. 1, pp. 590-597, 1992. https://doi.org/10.1214/aos/1176348543
  9. Sung-il Pae and Michael C. Loui. Optimal random number generation from a biased coin. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1079-1088, January 2005.
  10. Sung-il Pae and Michael C. Loui. Randomizing functions: Simulation of discrete probability distribution using a source of unknown distribution. IEEE Transactions on Information Theory, Vol. 52, No. 11, pp. 4965-4976, November 2006. https://doi.org/10.1109/TIT.2006.883555
  11. Sung-il Pae and Min-su Kim, A Hybrid Randomizing Function Based on Elias and Peres Method, Journal of The Korea Society of Computer and Information, Vol. 17, No. 12, pp. 149-158, Dec. 2012. https://doi.org/10.9708/jksci/2012.17.12.149
  12. Sung-il Pae. Exact Computation of Output Rate of Peres's Algorithm for Random Number Generation, Information Processing Letters, 2013, to appear. https://doi.org/10.1016/j.ipl.2012.12.012
  13. Min-su Kim, A Hybrid Randomizing Function Using Peres-Elias Method for Efficient Generation of Random Bits, Master's thesis, Hongik University, 2012.