Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Fast algorithms for generating discrete random variates with changing distributions

Published: 02 January 1993 Publication History
  • Get Citation Alerts
  • Abstract

    One of the most fundamental operations when simulating a stochastic discrete-event dynamic system is the generation of a nonuniform discrete random variate. The simplest form of this operation can be stated as follows: Generate a random variable X that is distributed over the integers 1,2,…,n such that P(X=i) = ai/(a1 +…+an), where ai's are fixed nonnegative numbers. The well-known “alias algorithm” is available to accomplish this task in O(1) time. A more difficult problem is to generate variates for X when the ai's are changing with time. We present three rejection-based algorithms for this task, and for each algorithm we characterize the performance in terms of acceptance probability and the expected effort to generate a variate. We show that, under fairly unrestrictive conditions, the long-run expected effort is O(1). Applications to Markovian queuing networks are discussed. We also compare the three algorithms with competing schemes appearing in the literature.

    References

    [1]
    ANGLUIN, D., AND VALIANT, L. Fast probabilistic algorithms for Hamiltonian circuits and matchings. J. Comput. Syst. Sct. 18, 2 (Apr. 1979), 155-193.
    [2]
    BRATLEY, r., FOX, B. L., AND SCHRAGE, L.E. A Gutde to Simulation. 2nd ed. Springer-Verlag, New York, 1987.
    [3]
    CHERNOFF, H. A measure of asymptotic efficiency for tests of a hypothesis based on the sum of observations. Ann. Math. Star. 23 (1952), 493 507.
    [4]
    DEVROYE, L. Non-Uniform Random Variate Generation. Springer-Verlag, New York, 1986, 89-90.
    [5]
    FISHMAN, G. S. Exploiting special structure to improve future event set management in simulation. Tech. Rep. UNC/OR/TR-90/8, Univ. of North Carolina, Chapel Hill, May 1990.
    [6]
    FISHMAN, G. S., AND YARBERRY, L.S. Generating a sample from a k-cell table with changing probabilities in O(log2 k) time. Tech. Rep. UNC/OR/TR-90/10, May 1990.
    [7]
    Fox, B.L. Generating Markov-chain transitions quickly: I. Oper. Res. Soc. Am. J. Comput. 2, 2 (Spring 1990), 126-135.
    [8]
    fox, B.L. Shortening future event lists. ORSA J. Comput., To be published.
    [9]
    FOX, B. L., AND YOUNG, A.R. Generating Markov-chain transitions quickly: II. Oper. Res. Soc. Am. J. Comput. 2, i (Winter 1991), 3 11.
    [10]
    HEIDELBERGER, P., AND LAVENBERG, S.S. Computer performance evaluation methodology. IEEE Trans. Comput. 33, 12 (Dec. 1984), 1195-1220.
    [11]
    KLEtNROCK, L. Queueing Systems, Volume 1: Theory. Wiley, New York, 1975.
    [12]
    MANBER, U. Introduction to Algorithms: A Creative Approach. Addison-Wesley, Reading, Mass., 1989.
    [13]
    PRINDIVILLE, M., RAJASEKARAN, S., AND ROSS, K.W. Efficient simulation of large-scale loss networks. Tech. Rep. MS-CIS-91-62, Dept. of Computer Science, Univ. of Pennsylvania, Philadelphia, Aug. 1991.
    [14]
    RMASEKARAN, S., AND REIF, J. H. Derivation of randomized sorting and selection algorithms. Tech. Rep. TR-16-84, Aiken Computing Lab., Harvard Univ., Cambridge, Mass., Mar. 1984.
    [15]
    WALRAND, J. An Introduction to Queueing Networks. Prentice-Hall, Englewood Cliffs, N.J., 1988.

    Cited By

    View all

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Modeling and Computer Simulation
    ACM Transactions on Modeling and Computer Simulation  Volume 3, Issue 1
    Jan. 1993
    79 pages
    ISSN:1049-3301
    EISSN:1558-1195
    DOI:10.1145/151527
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 02 January 1993
    Published in TOMACS Volume 3, Issue 1

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. queuing networks
    2. randomized algorithms

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)38
    • Downloads (Last 6 weeks)4
    Reflects downloads up to

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Discrete random variates with finite support using differential search treesSIMULATION10.1177/00375497241235199Online publication date: 15-Mar-2024
    • (2022)Dynamic sampling from a discrete probability distribution with a known distribution of ratesComputational Statistics10.1007/s00180-021-01159-337:3(1203-1228)Online publication date: 1-Jul-2022
    • (2017)Finite random variates using differential search treesProceedings of the Summer Simulation Multi-Conference10.5555/3140065.3140093(1-12)Online publication date: 9-Jul-2017
    • (2014)Practical Algorithms for Generating a Random Ordering of the Elements of a Weighted SetTheory of Computing Systems10.1007/s00224-013-9496-654:4(659-688)Online publication date: 1-May-2014
    • (2011)Exact on-lattice stochastic reaction-diffusion simulations using partial-propensity methodsThe Journal of Chemical Physics10.1063/1.3666988135:24Online publication date: 23-Dec-2011
    • (2008)Speeding up call center simulation and optimization by Markov chain uniformizationProceedings of the 40th Conference on Winter Simulation10.5555/1516744.1517034(1652-1660)Online publication date: 7-Dec-2008
    • (2008)Speeding up call center simulation and optimization by Markov chain uniformization2008 Winter Simulation Conference10.1109/WSC.2008.4736250(1652-1660)Online publication date: Dec-2008
    • (2008)A constant-time kinetic Monte Carlo algorithm for simulation of large biochemical reaction networksThe Journal of Chemical Physics10.1063/1.2919546128:20Online publication date: 23-May-2008
    • (2005)Simulating mesoscopic reaction-diffusion systems using the Gillespie algorithmPhysical Review E10.1103/PhysRevE.71.04110371:4Online publication date: 8-Apr-2005
    • (2003)Parallel cache management protocol and algorithm for cooperative Web serversIEEE International Conference on Communications, 2003. ICC '03.10.1109/ICC.2003.1204473(918-922)Online publication date: 2003
    • Show More Cited By

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Get Access

    Login options

    Full Access

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media