Adaptive Ladder Queue: achieving O(1) amortized access time in practice
|Title||Adaptive Ladder Queue: achieving O(1) amortized access time in practice|
|Publication Type||Conference Paper|
|Year of Publication||2018|
|Authors||Furfaro, A, Sacco, L|
|Conference Name||SIGSIM-PADS '18: SIGSIM Principles of Advanced Discrete Simulation|
|Conference Location||Rome, Italy|
The data structure that handles the pending event set of a discrete event simulator is a critical component in that its performances have a direct impact on those of the overall simulation engine. Many data structures have been proposed in the literature. Among them, the Ladder Queue (LadderQ) claims $O(1)$ amortized access time. However, empirical results show that the practical achievement of such performances is highly dependent on the distribution of event timestamps and that in many cases are similar or even worse than those of heap-based priority queues. This paper proposes an adaptive extension of the LadderQ which overcomes most of its weaknesses and allows to achieve $O(1)$ amortized access time in practice.