3 ms·
I don't know whether an elevator algorithm is as simple as what is mentioned in the article. The algorithm needs to take into consideration the type of lift (
by nmridul 15y ago
I don't know whether an elevator algorithm is as simple as what is mentioned in the article.
The algorithm needs to take into consideration the type of lift (lifts in an housing complex vs commercial building) and time of the day. During morning hours, the lifts in an housing complex might more frequently travel towards the ground floor while the one in a business complex would be travelling up.
Also, there could be buildings where the top floors might have more tenants than bottom ones or the reverse.
There is a scope for self learning algorithm that can adjust its idle position depending on past behaviours.
But elevator algo becomes more complicated when two persons press the switch at same time for the lift. One is at 2nd floor and wants to go up, the other at 4th and wants to go down and lift is at 3rd floor :-)