Optimizing static calendar queues

  • Authors:
  • K. Bruce Erickson;Richard E. Ladner;Anthony Lamarca

  • Affiliations:
  • Department of Mathematics, University of Washington, Box 354350, Seattle, WA;Department of Computer Science and Engineering, University of Washington, Box 352350, Seattle, WA;Yahoo! Inc., 3420 Central Express-way, Santa Clara, CA

  • Venue:
  • ACM Transactions on Modeling and Computer Simulation (TOMACS)
  • Year:
  • 2000

Quantified Score

Hi-index 0.00

Visualization

Abstract

The calendar queue is an important implementation of a priority queue that is particularly useful in discrete event simulators. We investigate the performance of the static calendar queue that maintains N active events. The main contribution of this article is to prove that, under reasonable assumptions and with the proper parameter settings, the calendar queue data structure will have constant (independent of N) expected time per event processed. A simple formula is derived to approximate the expected time per event. The formula can be used to set the parameters of the calendar queue to achieve optimal or near optimal performance. In addition, a technique is given to calibrate a specific calendar queue implementation so that the formula can be applied in a practical setting.