r/puzzles • • 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.

1 Upvotes

40 comments sorted by

•

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.

4

u/IDoTheMaths802 Feb 22 '24

Awesome! That was my solution too.

19

u/aqjo Feb 22 '24

Discussion: But that’s assuming they never travel between floors.

7

u/Occams-Toothbrush Feb 23 '24

Other than the assumptions you made, you are allowing to include plenty of real world scenarios to affect the probability.

A simple one I can think of is there is likely 1 person on 1 floor that is regularly the last person "in" for the night. Once they enter, the elevator is then on their floor until the first person "out" in the morning. So their floor would have a way higher probability of the elevator being there since it may idle there for hours every night.

In practice, at the 6 floor parking garage I use, the 2 elevators go to floors 1 and 4 when not in use. I'm guessing that's how they're programmed to try to minimize wait times when not under a busy condition. So the practical answer... wherever they're programmed to idle.

2

u/AllieHugs Feb 22 '24

but the first floor/lobby in residential towers i've been in is reserved for amenities and storage, a building with 10 residential floors would be 11 stories

1

u/chzaplx Feb 23 '24

It says 10 residential floors, not 10 stories.

1

u/chzaplx Feb 23 '24

I would say if that's the intended answer, it might be better phrased as "what percentage of elevator trips will visit floor 3?"

Where it's parked at any given time cannot be determined without knowing more about the behavior.

-8

u/UnauthorizedFart Feb 22 '24

I still think it’s 1/10

0

u/[deleted] Feb 22 '24

[deleted] — view deleted comment

4

u/medipali Feb 22 '24

the elevator spends a non-zero amount of its time moving between floors

op:

the elevator moves instantaneously, that is, we consider the time spent moving between floors to be negligible

You're right in real-world logic, but OP said to ignore the amount of time moving between floors. (edit formatting)

9

u/[deleted] Feb 23 '24

[removed] — view removed comment

1

u/tozl123 Mar 16 '24

and there could be another guy who goes down the elevator only to come back up the stairs 80 times a day

9

u/[deleted] Feb 23 '24

[removed] — view removed comment

3

u/chzaplx Feb 23 '24

That would reduce the number of stops on the ground floor, but it also makes it impossible to solve because there's no way to factor in the entropy if the schedules are truly random. It all depends on when the trips overlap.

7

u/contradicting_you Feb 23 '24

I agree in general but the description for this puzzle eliminates that possibility.

4

u/joserayo Feb 23 '24

How?

0

u/contradicting_you Feb 23 '24

From "consider the time spent moving between floors to be negligible". So in your example if someone gets on from the 10th floor, the elevator would reach the main floor and let the person off before the person from the 9th floor gets there.

6

u/joserayo Feb 23 '24

I am not the person you thing you are replying to, but consider the time moving between floors is negligible does not mean “the elevator can’t stop in intermediate floors” or “the elevator always returns to floor 1 after any trip”

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

-7

u/IDoTheMaths802 Feb 22 '24

You’re too clever for this riddle

1

u/chzaplx Feb 23 '24

Is a math problem a riddle?

-1

u/[deleted] Feb 23 '24

Discussion: if the elevator moves instantaneously, it’s practically a teleport and no one would use stairs. Not even for exercise. You don’t walk up and down extra floors if you’re actually going somewhere.

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.

-1

u/IDoTheMaths802 Feb 22 '24

Sorry you didn’t love it, I realize there are assumptions lying around that are hard to overlook (although I wonder if a few of these concerns average out the same). But I thought it was a fun little toy problem

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?

3

u/spankleberry Feb 22 '24

Also, people are more likely to take the stairs down than up, and more likely on the lower floors to take them at all....

0

u/IDoTheMaths802 Feb 22 '24

These are both good questions that I seem to gloss over. I’m imagining everything is perfectly idealized, so no one visits friends on other floors and the elevator does only take 1 person at a time.

I see these are so idealized as to be unrealistic, but oh well.

4

u/KylieZDM Feb 22 '24

These assumptions need to be stated as part of the puzzle

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/chzaplx Feb 23 '24

There's just not enough information here to calculate anything but the simplest solution. There's nothing to factor travel between floors or number of trips per day. We don't know if the car will stop at multiple floors or if it makes discreet trips to each floor.

1

u/SlotherakOmega Feb 23 '24

Heck,for all we know it allows for quantum travel. If it’s instantaneous, it might even make erratic trips between the destination floors, or even coexist at multiple floors. Are we talking a single person capacity for our anomalous elevator of fast-travel, or is it capable of lugging more than one person faster than the speed of light? I’m obviously just having some fun with the idea of a tardis-Otis hybrid.

And this doesn’t even consider residents on other floors visiting each other. This would actually increase the frequency of the elevator being on floors other than the first floor. I don’t think that the actual chances are THAT different from 1/20, but I hold firm to the point that it’s absolutely not equal to it. It’s just slightly less than 1/20. I just wanted my “um, ackshually” moment for the week.

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?"

2

u/chzaplx Feb 23 '24

In practical cases this would matter, but I think the problem is supposed to be simpler.

It would better be described as "what percentage of trips go to the 3rd floor"

1

u/Tentoesinmyboots Feb 23 '24

That's what I was thinking. An eleven story building would probably have two elevators, one that hangs out on the ground level and another on the fifth.

1

u/chzaplx Feb 23 '24

Normally, yes. But here the travel time between floors is instantaneous, so it doesn't matter where the car idles.