Efficient data structures for Time Warp simulation queues

被引:1
|
作者
Schof, S [1 ]
机构
[1] Oldenburger Forsch & Entwicklugsinst Informat Wer, D-26121 Oldenburg, Germany
关键词
distributed simulation; Time Warp; event queue; input queue;
D O I
10.1016/S1383-7621(97)00060-X
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Optimistic simulation is besides the conservative methods the most promising approach to distributed discrete-event simulation (DDEVS). In the optimistic Time Warp strategy, every sub-simulator has to handle in addition to its main event queue (input queue) two other queues, holding information about sent messages and past states, respectively. We present efficient data structures and algorithms for the three queue types in Time Warp simulation. It shows that for two queue types the simple doubly linked list (DLL) approach suffices, for the input queue however, significant speed-up can be achieved by enhancing a data structure originally developed for sequential simulation. We show an improvement from an O(n) to an O(1) average case behavior for some operations by moving from the DLL to the new data structure without increasing the average case and worst case order of the other operations, Empirical results show that the new data structure yields substantial faster operation for enqueuing items into the list, which - regardless of the overhead introduced by the new data structure to the other queue operations - results in queue access acceleration for typical Time Warp simulations even for medium input queue sizes of about 100, For large queue sizes of about 10000 the new data structure yields more than 15 times faster overall queue operation performance.
引用
收藏
页码:497 / 517
页数:21
相关论文
共 50 条