skip to main content
article

Ladder queue: An O(1) priority queue structure for large-scale discrete event simulation

Published: 01 July 2005 Publication History

Abstract

This article describes a new priority queue implementation for managing the pending event set in discrete event simulation. Extensive empirical results demonstrate that it consistently outperforms other current popular candidates. This new implementation, called Ladder Queue, is also theoretically justified to have O(1) amortized access time complexity, as long as the mean jump parameter of the priority increment distribution is finite and greater than zero, regardless of its variance. Many practical priority increment distributions satisfy this condition including unbounded variance distributions like the Pareto distribution. This renders the LadderQ the ideal discrete event queue structure for stable O(1) performance even under practical queue distributions with infinite variance. Numerical simulations ranging from 100 to 10 million events affirm the O(1) property of LadderQ and that it is a superior structure for large-scale discrete event simulation.

References

[1]
Brown, R. 1988. Calendar queues: A fast O(1) priority queue implementation for the simulation event set problem. Commun. ACM 31, 10 (Oct.), 1220--1227.
[2]
Das, S., Fujimoto, R., Panesar, K., Allison, D., and Hybinette, M. 1994. GTW: A Time, warp system for shared memory multiprocessors. In Proceedings of the 26th Conference on Winter Simulation (Orlando, FL, Dec. 11--14). ACM, New York, pp. 1332--1339.
[3]
Erickson, K. B., Ladner, R. E., and LaMarca, A. 2000. Optimizing static calendar queues. ACM Trans. Model. Comput. Simul. 10, 3 (July) 179--214.
[4]
Fall, K. and Varadhan, K. 2002. The NS Manual. UCB/LBNL/VINT Network simulator v2. http://www.isi.edu/nsnam/ns/.
[5]
Jones, D. W. 1986. An empirical comparison of priority-queue and event-set implementations. Commun. ACM 29, 4 (Apr.), 300--311.
[6]
Marin, M. 1997. An empirical comparison of priority queue algorithms. Tech. Rep., Oxford University.
[7]
Park, S. K. and Miller, K. W. 1988. Random number generators: Good ones are hard to find. Commun. ACM 31, 10 (Oct.), 1192--1201.
[8]
R�nngren, R. and Ayani, R. 1997. A comparative study of parallel and sequential priority queue algorithms. ACM Trans. Model. Comput. Simul. 7, 2 (Apr.) 157--209.
[9]
R�nngren, R., Riboe, J., and Ayani, R. 1993. Lazy queue: New approach to implementing the pending event set. Int. J. Comput. Simul. 3, 303--332.
[10]
Schwetman, H. 1996. CSIM18 User's Guide. Mesquite Software, Inc., Austin, TX.
[11]
Sleator, D. D. and Tarjan, R. E. 1985. Self-adjusting binary search trees. J. ACM 32, 3 (July), 652--686.
[12]
Tarjan, R. E. 1985. Amortized computational complexity. SIAM J. Alg. Disc. Meth. 6, 2 (Apr.), 306--318.

Cited By

View all
  • (2024)A Conflict-Resilient Lock-Free Linearizable Calendar QueueACM Transactions on Parallel Computing10.1145/363516311:1(1-32)Online publication date: 11-Mar-2024
  • (2024)Full-Stack Revision of Memory and Data Management in PDES on Multi-Core MachinesProceedings of the 33rd International Symposium on High-Performance Parallel and Distributed Computing10.1145/3625549.3658831(417-420)Online publication date: 3-Jun-2024
  • (2023)Effective Access to the Committed Global State in Speculative Parallel Discrete Event Simulation on Multi-core MachinesProceedings of the 2023 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation10.1145/3573900.3591117(107-117)Online publication date: 21-Jun-2023
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Modeling and Computer Simulation
ACM Transactions on Modeling and Computer Simulation  Volume 15, Issue 3
July 2005
105 pages
ISSN:1049-3301
EISSN:1558-1195
DOI:10.1145/1103323
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: 01 July 2005
Published in TOMACS Volume 15, Issue 3

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Pending event set implementations
  2. calendar queue
  3. priority queue

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)22
  • Downloads (Last 6 weeks)3
Reflects downloads up to 22 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2024)A Conflict-Resilient Lock-Free Linearizable Calendar QueueACM Transactions on Parallel Computing10.1145/363516311:1(1-32)Online publication date: 11-Mar-2024
  • (2024)Full-Stack Revision of Memory and Data Management in PDES on Multi-Core MachinesProceedings of the 33rd International Symposium on High-Performance Parallel and Distributed Computing10.1145/3625549.3658831(417-420)Online publication date: 3-Jun-2024
  • (2023)Effective Access to the Committed Global State in Speculative Parallel Discrete Event Simulation on Multi-core MachinesProceedings of the 2023 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation10.1145/3573900.3591117(107-117)Online publication date: 21-Jun-2023
  • (2023)A Fast Alpha-Tree Algorithm for Extreme Dynamic Range Pixel DissimilaritiesIEEE Transactions on Pattern Analysis and Machine Intelligence10.1109/TPAMI.2023.334172146:5(3199-3212)Online publication date: 12-Dec-2023
  • (2022)Comparing Different Event Set Management Strategies in Speculative PDESProceedings of the 2022 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation10.1145/3518997.3534993(55-56)Online publication date: 8-Jun-2022
  • (2022)Spatial/Temporal Locality-based Load-sharing in Speculative Discrete Event Simulation on Multi-core MachinesProceedings of the 2022 ACM SIGSIM Conference on Principles of Advanced Discrete Simulation10.1145/3518997.3531026(81-92)Online publication date: 8-Jun-2022
  • (2022)A Scalable Quantum Key Distribution Network Testbed Using Parallel Discrete-Event SimulationACM Transactions on Modeling and Computer Simulation10.1145/349002932:2(1-22)Online publication date: 4-Mar-2022
  • (2021)Complexity analysis on flattened PDEVS simulationsProceedings of the Winter Simulation Conference10.5555/3522802.3522974(1-12)Online publication date: 13-Dec-2021
  • (2021)Complexity Analysis on Flattened PDEVS Simulations2021 Winter Simulation Conference (WSC)10.1109/WSC52266.2021.9715291(1-12)Online publication date: 12-Dec-2021
  • (2020)NUMA-aware non-blocking calendar queueProceedings of the IEEE/ACM 24th International Symposium on Distributed Simulation and Real Time Applications10.5555/3451906.3451915(59-67)Online publication date: 14-Sep-2020
  • Show More Cited By

View Options

Get Access

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media