Skip to main content

Exact and Efficient Generation of Geometric Random Variates and Random Graphs

  • Conference paper
Automata, Languages, and Programming (ICALP 2013)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7965))

Included in the following conference series:

Abstract

The standard algorithm for fast generation of Erdős-Rényi random graphs only works in the Real RAM model. The critical point is the generation of geometric random variates Geo(p), for which there is no algorithm that is both exact and efficient in any bounded precision machine model. For a RAM model with word size w = Ω(loglog(1/p)), we show that this is possible and present an exact algorithm for sampling Geo(p) in optimal expected time \(\mathcal{O}(1 + \log(1/p) / w)\). We also give an exact algorithm for sampling min{n, Geo(p)} in optimal expected time \(\mathcal{O}(1 + \log(\operatorname{min}\{1/p,n\})/w)\). This yields a new exact algorithm for sampling Erdős-Rényi and Chung-Lu random graphs of n vertices and m (expected) edges in optimal expected runtime \(\mathcal{O}(n + m)\) on a RAM with word size w = Θ(logn).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Batagelj, V., Brandes, U.: Efficient generation of large random networks. Phys. Rev. E 71, 036113 (2005)

    Google Scholar 

  2. Blanca, A., Mihail, M.: Efficient generation ε-close to G(n,p) and generalizations (2012), arxiv.org/abs/1204.5834

  3. Blitzstein, J.K., Diaconis, P.: A sequential importance sampling algorithm for generating random graphs with prescribed degrees. Internet Mathematics 6, 489–522 (2011)

    Article  MathSciNet  Google Scholar 

  4. Brent, R., Zimmermann, P.: Modern Computer Arithmetic. Cambridge University Press (2010)

    Google Scholar 

  5. Chung, F., Lu, L.: Connected components in random graphs with given expected degree sequences. Annals of Combinatorics 6, 125–145 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  6. Cook, S.A., Reckhow, R.A.: Time bounded random access machines. J. Comput. Syst. Sci. 7, 354–375 (1973)

    Article  MathSciNet  MATH  Google Scholar 

  7. De, A., Kurur, P.P., Saha, C., Saptharishi, R.: Fast integer multiplication using modular arithmetic. In: 40th Symp. Theory of Computing (STOC), pp. 499–506 (2008)

    Google Scholar 

  8. Devroye, L.: Non-uniform random variate generation. Springer (1986)

    Google Scholar 

  9. Erdős, P., Rényi, A.: On random graphs. Publ. Math. Debrecen 6, 290–297 (1959)

    MathSciNet  Google Scholar 

  10. Flajolet, P., Saheb, N.: The complexity of generating an exponentially distributed variate. J. Algorithms 7, 463–488 (1986)

    Article  MathSciNet  MATH  Google Scholar 

  11. Flajolet, P., Pelletier, M., Soria, M.: On Buffon machines and numbers. In: 22nd Symp. Discrete Algorithms (SODA), pp. 172–183 (2011)

    Google Scholar 

  12. Fürer, M.: Faster integer multiplication. SIAM J. Comput. 39, 979–1005 (2009)

    Article  MathSciNet  MATH  Google Scholar 

  13. Ghosh, A., Roughgarden, T., Sundararajan, M.: Universally utility-maximizing privacy mechanisms. In: 41st Symp. Theory of Computing (STOC), pp. 351–360 (2009)

    Google Scholar 

  14. Hagberg, A.A., Schult, D.A., Swart, P.J.: Exploring network structure, dynamics, and function using NetworkX. In: 7th Conf. Python in Science, pp. 11–15 (2008)

    Google Scholar 

  15. Karney, C.: Random number library, version 1.5 (2012), http://sourceforge.net/projects/randomlib

  16. Keeling, M.J., Eames, K.T.: Networks and epidemic models. Journal of The Royal Society Interface 2, 295–307 (2005)

    Article  Google Scholar 

  17. Kim, J.H., Vu, V.H.: Generating random regular graphs. In: 35th Symp. Theory of Computing (STOC), pp. 213–222. ACM (2003)

    Google Scholar 

  18. Knuth, D.E., Yao, A.C.-C.: The complexity of nonuniform random number generation. In: Traub, J.F. (ed.) Symposium on Algorithms and Complexity: New Directions and Recent Results, pp. 357–428 (1976)

    Google Scholar 

  19. Mehlhorn, K., Näher, S.: LEDA: A Platform for Combinatorial and Geometric Computing. Cambridge University Press (1999)

    Google Scholar 

  20. Miller, J.C., Hagberg, A.: Efficient generation of networks with given expected degrees. In: Frieze, A., Horn, P., Prałat, P. (eds.) WAW 2011. LNCS, vol. 6732, pp. 115–126. Springer, Heidelberg (2011)

    Chapter  Google Scholar 

  21. Milo, R., Shen-Orr, S., Itzkovitz, S., Kashtan, N., Chklovskii, D., Alon, U.: Network motifs: Simple building blocks of complex networks. Science 298, 824–827 (2002)

    Article  Google Scholar 

  22. Norros, I., Reittu, H.: On a conditionally Poissonian graph process. Advances in Applied Probability 38, 59–75 (2006)

    Article  MathSciNet  MATH  Google Scholar 

  23. Ray, J., Pinar, A., Seshadhri, C.: Are we there yet? When to stop a markov chain while generating random graphs. In: Bonato, A., Janssen, J. (eds.) WAW 2012. LNCS, vol. 7323, pp. 153–164. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  24. Solovay, R., Strassen, V.: A fast Monte-Carlo test for primality. SIAM J. Comput. 6, 84–85 (1977)

    Article  MathSciNet  MATH  Google Scholar 

  25. van der Hofstad, R.: Random graphs and complex networks (2009), http://www.win.tue.nl/~rhofstad/NotesRGCN.pdf

  26. von Neumann, J.: Various techniques used in connection with random digits. In: Householder, A.S., et al. (eds.) The Monte Carlo Method. National Bureau of Standards, Applied Mathematics Series, vol. 12, pp. 36–38 (1951)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bringmann, K., Friedrich, T. (2013). Exact and Efficient Generation of Geometric Random Variates and Random Graphs. In: Fomin, F.V., Freivalds, R., Kwiatkowska, M., Peleg, D. (eds) Automata, Languages, and Programming. ICALP 2013. Lecture Notes in Computer Science, vol 7965. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-39206-1_23

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-39206-1_23

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-39205-4

  • Online ISBN: 978-3-642-39206-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics