ScootALot is a scooter rental service. At the end of each day, they hire contractors to pick up scooters and distribute them optimally around the city. The distribution algorithm considers all the possible locations for the scooters, compares that to the density of customers, and comes up with the optimal location for each scooter. As the company becomes more popular, they realize their algorithm is taking an unreasonable amount of time to come up with optimal scooter locations. What is the best way to improve the run time of the algorithm

Respuesta :

Answer: Use a heuristic-based algorithm that suggests good locations for the scooters.

Explanation:

The best way to improve the run time of the algorithm is to use a heuristic-based algorithm as this will help in suggesting good locations for the scooters.

By using the heuristic based approach, there'll be a ranking based on available information which will then be used to suggest the locations that are good for the scooters. Its main objective is to give a solution which is vital in solving a particular problem based on the timeframe.