News for hackers. Stuff that matters.
Re:Where to wait for an elevator (2010) by kazinator on Wednesday July 06, 2022 @03:45PM (#32005856)
> So standing in front of the second elevator minimizes the expected distance to the next elevator, assuming all three elevators are equally likely to arrive next.

> What if you want to minimize the worst case instead of the average case? Stand half way between the first and third elevators.

What is the difference between "in front of second" and "halfway between first and third"?

Re:Where to wait for an elevator (2010) by sanderjd on Wednesday July 06, 2022 @04:00PM (#32006033)
The elevators are not evenly spaced. This point is in the article but could have been belabored a bit more. If they are evenly spaced, there is no difference.
Re:Where to wait for an elevator (2010) by troglonoid on Wednesday July 06, 2022 @04:12PM (#32006186)
In the first paragraph he says the elevators aren’t evenly spaced, and then again, it is mentioned in the James Hadley quote.

In this scenario, the second elevator isn’t centered between the first and the third elevators.

If I understand the description properly, the layout may be something like this:

[]__[]____[]

Re:Where to wait for an elevator (2010) by Jtsummers on Wednesday July 06, 2022 @04:05PM (#32006092)
From the problem statement (first two sentences of the post):

> Imagine a bank of three elevators along a wall. The elevators are in a straight line but they are not evenly spaced.

Re:Where to wait for an elevator (2010) by mikkergp on Wednesday July 06, 2022 @04:00PM (#32006039)
I assume this must mean that the elevators are not equidistant from eachother. As in 1 is 10 feet from 2 is 20 feet from three.
Re:Where to wait for an elevator (2010) by PebblesRox on Wednesday July 06, 2022 @04:01PM (#32006042)
They’re not necessarily evenly spaced. The middle elevator might be a lot closer to one side than the other.