|
|
back to boardTell Me Solution Tell Me Solution Re: Tell Me Solution Posted by AterLux 11 May 2011 13:10 Use queue. Store top-time in each queue element Before each operation check died elements and remove it from queue. Put processed element into end of queue To speed up searching of free element, you can store in some variable index of least element that can be empty. When you allocating next element, you increase it. When one elemenet if "dying" with index less than that stored value, you assign to that index of died element. And so on and so on... |
|
|