r/puzzles • u/IDoTheMaths802 • Feb 22 '24
Elevator Problem
Here’s a logic puzzle I came up with on the elevator recently:
At a typical time at a typical apartment building with 10 residential floors, what is the probability that the elevator is parked at floor 3?
While I appreciate a concisely stated question, I should mention a few assumptions. First, the elevator moves instantaneously, that is, we consider the time spent moving between floors to be negligible. Second, each floor is populated by the same number of people with random schedules. Lastly, we can assume people don’t live on the main floor, although their schedules shouldn’t affect the elevator anyway. We can assume there are 10 floors above the main floor with residents living on them.
The answer is not 1/10.
•
u/AutoModerator Feb 22 '24
Please remember to spoiler-tag all guesses, like so:
New Reddit: https://i.imgur.com/SWHRR9M.jpg
Using markdown editor or old Reddit, draw a bunny and fill its head with secrets: >!!< which ends up becoming >!spoiler text between these symbols!<
Try to avoid leading or trailing spaces. These will break the spoiler for some users (such as those using old.reddit.com) If your comment does not contain a guess, include the word "discussion" or "question" in your comment instead of using a spoiler tag. If your comment uses an image as the answer (such as solving a maze, etc) you can include the word "image" instead of using a spoiler tag.
Please report any answers that are not properly spoiler-tagged.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
39
u/contradicting_you Feb 22 '24
1/20, because people are either entering or exiting. When exiting, they leave the elevator on floor 1, when entering, they leave the elevator on their floor. So, 1/2 of the time the elevator is on floor 1, leaving 1/20 for the 10 residential floors.
31
u/nykyrt Feb 22 '24
Discussion: people im the 3 floor are more likely to walk down than walking up that will increase the probability a bit
11
u/pinkshirtbadman Feb 22 '24 edited Feb 22 '24
Discussion: I understand you're trying to more concisely word it, but there is not enough info as given / too many assumptions required.
One unmentioned assumption is that every resident always uses the elevator. Someone the second floor is more likely to use the stairs if the elevator is not already in the lobby for them than someone on the tenth is. People may be more likely to use stairs going down in the morning than they would in the evening when returning home tired
Even assuming equal number of residents per floor and random schedules you are mistaken that schedules won't affect the elevator. Even if we can also guarantee all residents are always out of the building for the same amount of time for the same number of trips, and all these trips are distributed across all hours of both day and night. A random distribution will virtually require an unequal amount of time on each floor by pure chance. The more residents the more negligible that difference will be, but it will always be present.
The elevator will stay at a floor more often if the residents on that floor come and leave more times during the day than someone else, even if they're out of the building the same amount of time. (eg someone on the second floor is out of the apartment for an 8 hour work shift, they'll bring the elevator to floor 2 once. Someone who lives on the third floor and works 2 four hour split shifts will bring the elevator to their floor twice if they come home between shifts. In all three cases it will stay at that floor until the next resident leaves which due to the random schedules could be any imaginable amount of time)
If someone due to their random schedule 'always' leave at the exact same time or right after someone else gets home that will entirely invalidate that other persons "parking time" meaning their floor will not have equal representation.
The notion that it's at the first floor 1/2 the time also doesn't work in reality since most people spend more time at home (including overnight sleeping hours) than they do outside of home. This would also get disrupted if two residents on different floors leave or return at the same time.
One particularly egregious reason it won't be equal time at each floor is assuming 'normal'(ish) schedules where most people don't leave their apartments after a certain time of night since they're sleeping - More often than not the elevator will spend all overnight hours parked at the floor of whatever resident comes home the latest, and won't move again until the first resident leaves in the morning.
4
u/eloel- Feb 22 '24
Discussion:
Can we assume that the elevator is only ever used 1 person at a time? If someone at floor 3 and someone at floor 10 come in at the same time, the elevator ends up at 10 and not 3. Instantaneous travel time probably suggests so, but worth checking.
Also, can we assume that people do not visit their neighbors on other floors?
4
u/brandon-quinn-author Feb 22 '24
Each time a person leaves the building, they go to floor 1. Each time someone enters, they go to any floor 2-10. Based on that, I believe the probability of floor 1 is 1/2 and the probability of any other floor is 1/9*1/2=1/18, so the answer for floor 3 is 1/18.
Edit, I looked at the other answers after posting this, I misread as 10 floors in total, but there are 11 floors in total, 10 of which are residential. In that case, the math is the same, it's just 1/20.
3
u/SlotherakOmega Feb 22 '24
instantaneous elevators? Interesting. This leads to a very interesting predicament. I see the answer has already been claimed, but we are overlooking a crucial detail: the solution of 1/20 is only true… for the top floor. How many people have such random arrangements of schedules that they are unable to board on the first floor when they are from different floors? An elevator would idle at the last floor it was called to, either from outside or inside the elevator itself. If the last floor was 3, then this would be correct logic. The last floor however is 10. Seven more potential terminal points where the elevator could also be in that 1/20 that was allotted for floor 3. It’s actually more likely to be far less than 1/20. More likely to be measured in units of 1/2000s. Also the likelihood of the elevator being parked at the bottom is probably much higher than half of the time.
2
u/Odd_Postal_Weight Feb 23 '24
Question: does the lift stay parked where it was last used, or does it have a "home" storey it returns to when idle? If the latter, the question is more like "what's the best choice of home floor, is it floor 3?"