1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leokris [45]
2 years ago
8

ScootALot is a scooter rental service. At the end of each day, they hire contractors to pick up scooters and distribute them opt

imally 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
Computers and Technology
1 answer:
julsineya [31]2 years ago
8 0

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.

You might be interested in
Write a program that reads a book (a file in text format), breaks each line into words, strips whitespace and punctuation from t
diamong [38]

Answer:

Following are the code to this question:

file= open('book.txt') #open file

li= {} #define an empty list

for lines in file: # use for loop Split file data into words

   d= lines.lower().strip(' !?').split() #define variable d that Add it to map

   for val in d: #define loop to store data  

       if val not in li: #check value is not in list

           li[val] = 0 #define list and assign value in 0

       li[val] = li[val] + 1 #Sort the book data and add its value  

m = sorted(li.items(),key = lambda x : -x[1]) #sorted value into the m variable  

print(m[:10]) #print value

Output:

please find the attachment.

Explanation:

In the given python code first, we open the file "book.txt", in next line, an empty list is defined, that uses the for loop which can be described as follows:

  • In the for loop is used, that reads the file data, and defines a variable "d", that stores the values into the map.
  • In the next line another loop is used, that check file values, if values are the same type so, it adds values and writes it.  
  • In the last line, m variable is used, that sorts the values and use the slicing to print its value.

4 0
3 years ago
Which of the following sentences use the subjunctive mood correctly?Check all that apply. a. Dr. Franklin wishes he were the one
vredina [299]

Answer:

a. Dr. Franklin wishes he were the one who had invented the new web application.

b. If he were willing to submit the proposal, we might win the bid.

Explanation:

The subjunctive mood is when we're talking about wishes, doubts, and possibilities, in this case, we have two examples, where Dr. Franklin wishes to invent the new web application, and the other sentence is a possibility because he believes that they can win the bid. The last example is an affirmation.

4 0
2 years ago
Type the correct answer in the box. Spell all words correctly.
KonstantinChe [14]

Answer:

Aspiring illustrators can hone their talent and skills using Adobe Illustrator software.

Explanation:

  • By using this software we enroll graphics for out Television.Computer etc ..
5 0
2 years ago
What is the first step in setting up a good team at work?
Tatiana [17]

Answer:

set goals

Explanation:

6 0
3 years ago
A _____ is inserted so that a portion of a document that can have different formatting from the rest of the document. a. heading
Nookie1986 [14]
A page break is inserted so that a portion of a document that can have different formatting from the rest of the document. 
4 0
3 years ago
Other questions:
  • This is tech question related to mobile and PC.
    6·1 answer
  • Merge arrays A and B into array C using merge sort algorithm. Give final sorted numbers of C using colored numbers without showi
    13·1 answer
  • Does anyone know how to execute this assignment on Scratch?
    8·1 answer
  • The exercise instructions here are LONG -- please read them all carefully. If you see an internal scrollbar to the right of thes
    12·1 answer
  • #5 Multiple Select Which of the following describes a hardware error? Select 3 options.
    7·2 answers
  • Ten members of a wedding party are lining up in a row for a photograph.
    8·1 answer
  • Which of the following is a particularly useful feature of Microsoft PowerPoint and
    8·2 answers
  • I hate school...............
    13·2 answers
  • What kind of energy transformation occurs when you call someone on a cell phone?
    11·1 answer
  • When would instant messaging be the least effective means of communication
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!