Question
Design an algorithm to decide where to take the elevator next. Assumptions: There are 10 floors (1 through 10). Each floor has UP and DOWN
Design an algorithm to decide where to take the elevator next.
Assumptions:
There are 10 floors (1 through 10).
Each floor has UP and DOWN call buttons.
Inside the elevator there are buttons for the 10 floors.
Your system can keep track of anything including how many times a button has been pressed, what time of the day it is, how many people seem to be in the elevator, etc. (**)
Your algorithm should state clearly what information your program uses to decide where to go next.
Group member names:
Detailed Algorithm in English:
State the goal of your algorithm, such as less wait time for people outside the elevator, less wait time for people inside the elevator, less burden on the motor, etc.:
What information does it have access to (**)? List all.
How does it decide which floor to go to next?
State problems or disadvantages of your approach:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started