Smart priority queue algorithms for self-optimizing event storage

Abstract Low run-time overhead, self-adapting storage policies for priority queues called smart priority queue (SPQ) techniques are developed and evaluated. The proposed SPQ policies employ a low-complexity linear queue for near-head activities and a rapid-indexing variable bin-width calendar queue for distant events. The SPQ configuration is determined by monitoring queue access behavior using cost-scoring factors and then applying heuristics to adjust the organization of the underlying data structures. To illustrate and evaluate the method, an SPQ-based scheduler for discrete event simulation has been implemented and was used to assess the resulting efficiency, components of access time, and queue usage distributions of the existing and proposed algorithms. Results indicate that optimizing storage to the spatial distribution of queue access can decrease HOLD operation cost between 25% and 250% over existing algorithms such as calendar queues.

[1]  James R. Emshoff,et al.  Design and use of computer simulation models , 1970 .

[2]  JongSuk Ahn,et al.  Dynamic calendar queue , 1999, Proceedings 32nd Annual Simulation Symposium.

[3]  Robert Rönngren,et al.  A comparative study of parallel and sequential priority queue algorithms , 1997, TOMC.

[4]  Jean G. Vaucher,et al.  A comparison of simulation event list algorithms , 1975, Commun. ACM.

[5]  Gaston H. Gonnet,et al.  Heaps applied to event driven mechanisms , 1976, CACM.

[6]  G. R. Larocque,et al.  Application of discrete event simulation to network protocol modeling , 1996, Proceedings of ICUPC - 5th International Conference on Universal Personal Communications.

[7]  H.A. Bahr Combined event & process simulation model of a distributed data collection system , 1994, Conference Record Southcon.

[8]  Randy Brown,et al.  Calendar queues: a fast 0(1) priority queue implementation for the simulation event set problem , 1988, CACM.

[9]  Kurt Maly,et al.  An efficient data structure for the simulation event set , 1977, CACM.

[10]  George W Evans,et al.  SIMULATION USING DIGITAL COMPUTERS. , 1967 .

[11]  Richard E. Ladner,et al.  Optimizing static calendar queues , 1994, Proceedings 35th Annual Symposium on Foundations of Computer Science.

[12]  Ian Li-Jin Thng,et al.  SNOOPy Calendar Queue , 2000, 2000 Winter Simulation Conference Proceedings (Cat. No.00CH37165).

[13]  Douglas W. Jones,et al.  An empirical comparison of priority-queue and event-set implementations , 1986, CACM.

[14]  Hubert Arthur Bahr Distribution adaptive priority queue algorithm for discrete event simulation , 1994 .