The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Elevator puzzle

 
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Submitted Puzzles
View previous topic :: View next topic  
Author Message
Soothsayer
*Sets Up Hotdog Stand*



PostPosted: Thu Mar 14, 2002 4:43 pm    Post subject: 1 Reply with quote

See if you can figure out this lift (elevator to you yanks) puzzle.

There are 5 elevators. The elevator doors only open when all the elevators are between the 21st and 25th floors.
There are two buttons [+8] and [-13], that will be activitated only when 2 elevators are selected. The building has 49 floors.

Starting positions:

code:

Floor 17 --- Floor 26 --- Floor 20 --- Floor 19 --- Floor 31



What is the correct sequence to get all 5 elevators to open.

For java version of puzzle go to Lift Puzzle
Back to top
View user's profile Send private message Send e-mail
Suspence
Daedalian Member



PostPosted: Fri Mar 15, 2002 3:53 am    Post subject: 2 Reply with quote

This is a tough one. Given that the doors to these elevators will only open if all the elevators are between the 21st and 25th floors, I haven't yet figured out another way to get into the elevators to press these odd buttons, perhaps the elevator shaft...Aha, the Java version of this puzzles reveals that these are external buttons that control the elevators. You must select 2 of the elevators, and then you must choose to move both elevators either up 8 floors or down 13. Now it makes more sense...

------------------
I hate people who try to write interesting things in their signature
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
MBA
Daedalian Member



PostPosted: Fri Mar 15, 2002 3:57 am    Post subject: 3 Reply with quote

Hint please, how many steps should this take? Since there are obviously multiple solutions, how many steps are in the answer you have in mind?
Back to top
View user's profile Send private message
Suspence
Daedalian Member



PostPosted: Fri Mar 15, 2002 4:12 am    Post subject: 4 Reply with quote

This is my solution:

Move elevator 1 and 2 up 8
Move 2 and 3 up 8
Move 2 and 5 down 13
Move 2 and 3 up 8
Move 4 and 5 up 8
Move 4 and 5 up 8
Move 2 and 3 down 13
Move 4 and 5 down 13


Elevator 1 started on 17 +8 = 25
Elevator 2 started on 26 +8 +8 +8 -13 -13 = 24
Elevator 3 started on 20 +8 +8 -13 = 23
Elevator 4 started on 19 +8 +8 -13 = 22
Elevator 5 started on 31 +8 +8 -13 -13 = 21

Leaving your elevators in order on floors 25, 24, 23, 22, and 21 respectively, in only 8 moves!!!

------------------
I hate people who try to write interesting things in their signature

[This message has been edited by Suspence13 (edited 03-14-2002 11:21 PM).]
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Soothsayer
*Sets Up Hotdog Stand*



PostPosted: Fri Mar 15, 2002 9:47 am    Post subject: 5 Reply with quote

So far I have completed in (feels embarrassed) 30 moves but I believe it can be done in 16
Back to top
View user's profile Send private message Send e-mail
ctrlaltdel
Member of the Daedalians



PostPosted: Fri Mar 15, 2002 10:35 am    Post subject: 6 Reply with quote

i dont understand the puzzle statement

can i get any two lifts to go either 8 floors up or 13 down?
Back to top
View user's profile Send private message Visit poster's website
Soothsayer
*Sets Up Hotdog Stand*



PostPosted: Fri Mar 15, 2002 11:37 am    Post subject: 7 Reply with quote

To clarify.

You must always select two lifts. Those lifts can either go up 8 or down 13 floors..

The doors only open when all the lifts are between 21st and 25th floors
Back to top
View user's profile Send private message Send e-mail
eixdeuce
Daedalian Member



PostPosted: Fri Mar 15, 2002 1:17 pm    Post subject: 8 Reply with quote

Suspence13's solution is a good one and completes the task in 8 moves. The optimal solution to problems like this can be found using linear programming though you don't need to in this case. In fact, one can easily show that 8 moves is the minimum number of moves required to satisfy the conditions of the problem simply by determining what needs to be done to each elevator and then using the fact that all moves need to be done in pairs.

For example,

In this case, we can move in increments of (+8), (-13), and (-5) = [(+8)+(-13)] or any other linear combination so,
Elevator 1 originally at 17 needs to be shifted at least once (+8) to reach 25.
Elevator 2 at 26 (-5) = 21.
Elevator 3 at 20 (+8)+(-5) = 23.
Elevator 4 at 19 (+8)+(-5) = 22.
Elevator 5 at 31 (-5)+(-5) = 21.

This gives a total of
3*(+8) + 5*(-5) = 3*(+8) + 5*[(+8)+(-13)] = 8*(+8) + 5*(-13)
8 moves up, and 5 moves down
Since each move is in pairs, we require that the coefficients of the moves up and moves down be even so we have to add an odd number (1,3,5,...) of down(-13) moves and any even number of (2,4,6...) up(+8) moves. So, we try the minimum of each, 1 down(-13) move and 2 up(+8) moves. Clearly, if we shift an elevator by just one up(+8) or down(-13)move, it will no longer be in the desired range, so we have to perform all three moves on a single elevator. This gives us a net shift of
2*(+8) + 1*(-13) = (+3)
The elevators which can be shifted (+3) and still remain in the range of 21-25 are
2 (on floor 21)
4 (on floor 22)
5 (on floor 21)
And you are free to choose any of them you like. Finally, the minimun number of moves is
(10 up + 6 down)/2 = 8

You divide by two because once again, the moves are paired.


Hope that was clear.



[This message has been edited by eixdeuce (edited 03-15-2002 09:49 AM).]
Back to top
View user's profile Send private message Send e-mail
Suspence
Daedalian Member



PostPosted: Fri Mar 15, 2002 4:18 pm    Post subject: 9 Reply with quote

That's exactly how I did it. I came up with an odd number of moves, and just monkeyed with it til i got it right. Also, I had to move 1 step because I sent elevator 2 through the roof in my original "solution". I had to move down 13 before moving up 8 the last time.

------------------
I hate people who try to write interesting things in their signature
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Submitted Puzzles All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3