encyclopegia.org

Calendar queue

A calendar queue (CQ) is a priority queue (queue in which every element has associated priority and the dequeue operation removes the highest priority element). It is analogous to desk calendar, which is used by humans for ordering future events by date. Discrete event simulations require a future event list (FEL) structure that sorts pending events according to their time. Such simulators require a good and efficient data structure as time spent on queue management can be significant. The calendar queue (with optimum bucket size) can approach O(1) average performance. Calendar queues are closely related to bucket queues but differ from them in how they are searched and in being dynamically resized.

A calendar queue (CQ) is a priority queue (queue in which every element has associated priority and the dequeue operation removes the highest priority element). It is analogous to desk calendar, which is used by humans for ordering future events by date. Discrete event simulations require a future event list (FEL) structure that sorts pending events according to their time. Such simulators require a good and efficient data structure as time spent on queue management can be significant. The calendar queue (with optimum bucket size) can approach O(1) average performance. Calendar queues are closely related to bucket queues but differ from them in how they are searched and in being dynamically resized. If the number of events in the queue is much smaller or much larger than the number of buckets, it will not function efficiently. The solution is to allow the number of buckets to correspondingly grow and shrink as the queue grows and shrinks. To simplify the resize operation, the Nb (number of buckets) in a CQ is often chosen to be the power of two, i.e., Nb=2^n ;↵ The number of buckets is doubled or halved each time the Ne (number of events) exceeds 2Nb or decreases below Nb/2 respectively. When Nb is resized, the new width w has to be calculated as well. The new w that is adopted will be estimated by sampling the average inter-event time gap from the first few hundred events starting at the current bucket position. Thereafter, a new Calendar queue is created and all the events in the old calendar will be recopied over.

References

  1. lib.ncsu.edu . retrieved 2026-11-19 source revision 1278349479 · retrieved 2026-11-18 · rev 1278349479
    Cite this reference

    MLA "lib.ncsu.edu . retrieved 2026-11-19 source revision 1278349479." lib. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479. Accessed 24 November 2026.

    Chicago "lib.ncsu.edu . retrieved 2026-11-19 source revision 1278349479." lib. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479.

    APA lib. (2026). lib.ncsu.edu . retrieved 2026-11-19 source revision 1278349479. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1278349479

  2. api.semanticscholar.org . retrieved 2026-11-19 source revision 1278349479 · retrieved 2026-11-18 · rev 1278349479
    Cite this reference

    MLA "api.semanticscholar.org . retrieved 2026-11-19 source revision 1278349479." api. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479. Accessed 24 November 2026.

    Chicago "api.semanticscholar.org . retrieved 2026-11-19 source revision 1278349479." api. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479.

    APA api. (2026). api.semanticscholar.org . retrieved 2026-11-19 source revision 1278349479. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1278349479

  3. doi.org . retrieved 2026-11-19 source revision 1278349479 · retrieved 2026-11-18 · rev 1278349479
    Cite this reference

    MLA "doi.org . retrieved 2026-11-19 source revision 1278349479." doi. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479. Accessed 24 November 2026.

    Chicago "doi.org . retrieved 2026-11-19 source revision 1278349479." doi. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1278349479.

    APA doi. (2026). doi.org . retrieved 2026-11-19 source revision 1278349479. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1278349479

Cite this article

MLA

"Calendar queue." encyclopegia.org, 2025, https://encyclopegia.org/wiki/calendar-queue. Accessed 24 November 2026.

Chicago

"Calendar queue." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/calendar-queue.

APA

encyclopegia.org. (2025). Calendar queue. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/calendar-queue

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Narinder Singh (cricketer)

enwiki · references available

Tendai Ndoro

enwiki · references available

Hewligan's Haircut

enwiki · references available

2016 Football League Trophy final

enwiki · references available

Avgeropoulos

enwiki · references available

D-Chowk (Islamabad)

enwiki · references available

Mónica Mesalles

enwiki · references available

Kylie Stone

enwiki · references available

Lil Kim Season

enwiki · references available

Ribbon shiner

enwiki · references available

Johann Kropfgans

enwiki · references available

Miho Takenaka

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1278349479 · 0.5 · snapshot enwiki-001278349479

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.