The Elevator Problem (2/3)
the way the elevator logic works is this: when you press the elevator button, the one closest to you (= the one on floor number min(fk, k>0)) is told to go to 0. If there is a tie then, of those on the same lowest floor, the elevator with the smallest number is told to go to 0.
Goal: Suppose you want to use elevator e (e=1, 2, ..., n).
the way the elevator logic works is this: when you press the elevator button, the one closest to you (= the one on floor number min(fk, k>0)) is told to go to 0. If there is a tie then, of those on the same lowest floor, the elevator with the smallest number is told to go to 0.
Goal: Suppose you want to use elevator e (e=1, 2, ..., n).