Elevator Riddle- Sunflower828

  1. When the DOWN Button is pressed on the 59th floor of a 60 floor building but the UP button is pressed on the first floor, pick up the person on the 59th floor first and take them down to their desired floor of 5, then continue down pick up the person pressing the UP button who wants to go to floor 8.
  2. Once the person on the first floor is taken to their desired floor, the lights of UP appear on the 48th floor and the 34th floor. Pick up the person who is pressing UP on the 34th floor and take them to the requested destination of floor 50, but on the way pick up the person on floor 48 and take them to their desired floor of floor 60.
  3. After dropping off the person at floor 60, the light comes on and there is a request on floor 9 to go DOWN to floor 1. Go down to floor 9, then drop the person off on floor 1.
  4. While dropping the person off on floor 1, you got a request on floor 8 to go UP to floor 55. Take the person UP to go to floor 55, then STOP and WAIT on floor 55 for the next request to come on either the UP or DOWN button.
This entry was posted in Riddle. Bookmark the permalink.

4 Responses to Elevator Riddle- Sunflower828

  1. davidbdale's avatar davidbdale says:

    Wonderful work, Sunflower828. Yours is the first post that actually reads like a list of Instructions to the Elevator.

    (I understand that one peril of the blog approach is that students learn from one another how NOT to do something just as often as how TO do something. I think that’s what happened with the first few posts on this assignment.)

    NOW . . . if you’re willing to provide EVEN MORE of a template for how to write instructions, can you GENERALIZE a bit instead of providing EXAMPLES for the elevator? It’s just a stupid elevator. It might “think” that it has to follow your Rule 3 ONLY IF it has a passenger to drop at floor 60.

    I know. I’m asking a lot. Maybe somebody else will take up that challenge.

  2. davidbdale's avatar davidbdale says:

    I like so much of what is going on here, Sunflower. Your use of examples is compelling and helps a HUMAN reader understand how the elevator operates. But the post is supposed to provide INSTRUCTIONS to the ELEVATOR (who is your reader here. Yes, the elevator reads your instructions and follows them.)

    The elevator will not extrapolate from examples to create rules for itself. You need to spell out the rules as GENERAL INSTRUCTIONS and identify the EXCEPTIONS to the rules also in general terms.

    That assignment reads very differently, right? Some examples in no particular order:

    In response to any CALL button, PROCEED to that floor and OPEN the doors.

    You have three modes: AT REST, GOING UP, GOING DOWN.

    When you are GOING DOWN, IGNORE any GOING UP requests.

    See what I mean?

    Provisionally graded out of gratitude for your contribution to the project and your effort. You may still earn a Regrade by transforming your descriptions of elevator operations into INSTRUCTIONS written for the elevator (as if the Elevator were your reader and needed to be told how to operate).

Leave a reply to sunflower828 Cancel reply