05-23-2007 04:54 AM
05-23-2007 05:24 AM - edited 05-23-2007 05:24 AM

Message Edited by daveTW on 05-23-2007 12:24 PM
05-23-2007 06:40 AM
i had same solution in mind, however it doesnt fit for several reasons:
1) computation time - for repeated operations it is very expensive
2)one creates some 'default' array elements due to the resising.
i was more hoping for an "interleave array" that would be fitting the exact purpose (keeping the blanks out). it seem to me like a usefull function.
05-23-2007 07:09 AM
05-23-2007 07:29 AM
05-23-2007 09:33 AM
05-23-2007 10:09 AM
@Gabi1 wrote:
Solution i tought best: interleave the array, in such a way that if i have 5 events coming from place A (abcde), and 3 events from place B (123), then the output array would be simply: a,1,b,2,c,3,d,4.
Sorry, I don't understand your desired algoritm at all. 😮
Looking at the output...
05-24-2007 08:04 AM
Sorry about that Christian,
that is what happens when there is only 24 hours per day, and one works in all of them... 🙂
i was meaning a, 1, b, 2, c, 3, d, e,
05-24-2007 08:08 AM
05-24-2007 08:34 AM
Before I spend time working up an Action Engine to do this...
Have you concidered using a Queue or multiples?
The producers would feed the que and the single consumer would pull them out in order.
With multiple queues the consumer could check each que in turn and effectively do the mixing on the fly.
The queues will operate in-place.
Ben