• DocumentCode
    2357077
  • Title

    Optimizing static calendar queues

  • Author

    Erickson, K. Bruce ; Ladner, Richard E. ; LaMarca, Anthony

  • Author_Institution
    Washington Univ., Seattle, WA, USA
  • fYear
    1994
  • fDate
    20-22 Nov 1994
  • Firstpage
    732
  • Lastpage
    743
  • Abstract
    The calendar queue is an important implementation of a priority queue which is particularly useful in discrete event simulators. In this paper we present an analysis of the static calendar queue which maintains N active events. A step of the discrete event simulator removes and processes the event with the smallest associated time and inserts a new event whose associated time is the time of the removed event plus a random increment with mean μ. We demonstrate that for the infinite bucket calendar queue the optimal bucket width is approximately δopt=√(2b/c)μ/N where b is the time to process an empty bucket and c the incremental time to process a list element. With bucket width chosen to be δopt, the expected time to process an event is approximately minimized at the constant c+√(2bc)+d, where d is the fixed time to process an event. We show that choosing the number of buckets to be O(N) yields a calendar queue with performance equal to or almost equal to the performance of the infinite bucket calendar queue
  • Keywords
    data structures; discrete event simulation; optimisation; programming theory; queueing theory; calendar queue; discrete event simulators; infinite bucket calendar queue; optimal bucket; priority queue; static calendar queues; Calendars; Computational modeling; Computer science; Concurrent computing; Data structures; Discrete event simulation; Mathematics; Queueing analysis; Random variables;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Foundations of Computer Science, 1994 Proceedings., 35th Annual Symposium on
  • Conference_Location
    Santa Fe, NM
  • Print_ISBN
    0-8186-6580-7
  • Type

    conf

  • DOI
    10.1109/SFCS.1994.365719
  • Filename
    365719