I use 0<floor<16, 0<room<16.arash_cordi wrote:First question:
The problem text says that room numbers are less than 10, but nevertheless, in the example, a room number 10 appears... What IS the limit of the room numbers?
Yes, two queues. A pater noster has both an up-stream and a down-stream.arash_cordi wrote:Second question:
Should agents on the same floor form one elevator queue or two elevator queues - one for UP and one for DOWN?
If there already is an agent in the elevator, coming from another floor and not leaving, the agents in the queue will have to wait, even if they are higher in rank.arash_cordi wrote:Third question:
What happens if a high ranking agent needs to go to an elevator in which a lower ranking agent is already standing? Should the lower ranking agent step out of the elevator for 5 seconds, or should the older agent wait, or should he just enter?
Hope it helps someone.