Choice of data structure for large event queues?
From: Chris McDonald (chris_at_csse.uwa.edu.au)
Date: 12/23/04
- Next message: bolshoyhuy_at_hotmail.com: "Re: loop test"
- Previous message: code_wrong: "Re: long long type"
- Next in thread: Thad Smith: "Re: Choice of data structure for large event queues?"
- Reply: Thad Smith: "Re: Choice of data structure for large event queues?"
- Reply: seg7ment: "Re: Choice of data structure for large event queues?"
- Reply: seg7ment: "Re: Choice of data structure for large event queues?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Dec 2004 11:02:27 -0600
Hello, I have been implementing and measuring calendar-queues to manage
time-ordered event queues in a simulation.
The basic functions of enqueuing and dequeuing work very well (very fast)
for simulations involving thousands, even hundreds of thousands,
of pending events.
However, my simulation also needs to occassionally, maybe 2% of the time,
remove a "random" event from the queue - keeping the the queue
balanced/ordered correctly for the more frequent enqueuing and dequeuing.
Of course, with calendar-queues, this degenerates to linear behaviour -
which is woeful.
Does anyone have suggestions for other data structures that I should
examine? Thanks in advance,
______________________________________________________________________________
Dr Chris McDonald E: chris@csse.uwa.edu.au
Computer Science & Software Engineering W: http://www.csse.uwa.edu.au/~chris
The University of Western Australia, M002 T: +618 6488 2533
Crawley, Western Australia, 6009 F: +618 6488 1089
- Next message: bolshoyhuy_at_hotmail.com: "Re: loop test"
- Previous message: code_wrong: "Re: long long type"
- Next in thread: Thad Smith: "Re: Choice of data structure for large event queues?"
- Reply: Thad Smith: "Re: Choice of data structure for large event queues?"
- Reply: seg7ment: "Re: Choice of data structure for large event queues?"
- Reply: seg7ment: "Re: Choice of data structure for large event queues?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|