distribution algo question

J

Jake B.

Hoping to get some thoughts on a dispatch algorithm.

Here is the problem:
There is a finite set of reservation counters, for e.g (R1, R2, R3,
R4)
People who've lined up in a queue as P1,P2,P3,p4,P1,P2...Pn need to be
dispatched to one of these counters.
Rule is once they've been dispatched to a reservation counter, they
will have to go the same counter going fwd.
So in a queue based order, if following is the (infinite)sequence -
P1,P4,P5,P1,P3,P2,P1,P1,P8
(note multiple occurances of p1) Supposing P1 is dispatched to counter
R1, for every occurance
of P1 in the sequence needs to be dispatched always to R1.

Thoughts anybody?


TIA, Jake
 
B

Ben Bacarisse

Jake B. said:
Hoping to get some thoughts on a dispatch algorithm.

Here is the problem:
There is a finite set of reservation counters, for e.g (R1, R2, R3,
R4)
People who've lined up in a queue as P1,P2,P3,p4,P1,P2...Pn need to be
dispatched to one of these counters.
Rule is once they've been dispatched to a reservation counter, they
will have to go the same counter going fwd.
So in a queue based order, if following is the (infinite)sequence -
P1,P4,P5,P1,P3,P2,P1,P1,P8
(note multiple occurances of p1) Supposing P1 is dispatched to counter
R1, for every occurance
of P1 in the sequence needs to be dispatched always to R1.

Thoughts anybody?

comp.programming is a good place for what is an algorithm question.
I've set followups-to there. It is certainly not a C question.

As for thoughts, you need to specify it some more. The obvious solution
is to direct all people to R1 but this is probably not what you want.
The second thing that needs more specification is how the Pn are
represented. If they are numbered as you suggest you could dispatch Pn
to R(n mod 4) but I doubt that is the solution you want either.
 
G

Geoff

Hoping to get some thoughts on a dispatch algorithm.

Here is the problem:
There is a finite set of reservation counters, for e.g (R1, R2, R3,
R4)
People who've lined up in a queue as P1,P2,P3,p4,P1,P2...Pn need to be
dispatched to one of these counters.
Rule is once they've been dispatched to a reservation counter, they
will have to go the same counter going fwd.
So in a queue based order, if following is the (infinite)sequence -
P1,P4,P5,P1,P3,P2,P1,P1,P8
(note multiple occurances of p1) Supposing P1 is dispatched to counter
R1, for every occurance
of P1 in the sequence needs to be dispatched always to R1.

Your question is in the domain of queuing theory. Restricting users to
a predetermined queue once they have been assigned to a queue randomly
may be sub-optimal if they come at a time when their assigned queue is
full and another queue is empty.

Follow-ups set to comp.programming (with two m's).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top