Algorithm for N elevators serving M floors

  • Level: Graduate 
  • Thread starter Thread starter Loren Booda
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
4 replies · 4K views
Loren Booda
Messages
3,115
Reaction score
4
What kind of algorithm aptly describes the solution to this problem?
 
Physics news on Phys.org
Would you want to take into account that the bottom floor will be used most often therefore at least one elevator should idle there when not in use?
 
A good constraint for a variable minimum N vs a variable maximum M.
 
Oh right, I don't think I will be able to help with this question but I think that you will need another variable for how many people use the elevators.
 
Assume that the floors above ground are called at random.