You have a list of grocery items, and want to spend as little time as possible in the store picking them all up. Which of the following English descriptions is the best algorithm for doing this?
选项:
A:Visit each aisle in the store. If there is an item on the list in that aisle, then put it in the shopping cart.;
B:For each item on list, go to the aisle it is in and put the item in the shopping cart.;
C:Determine which aisle each item is in. Cluster the list by items in the same aisle. Go through the aisles in order and place items in the shopping cart.;
D:Go around and pick up items as will.
发布时间:2024-06-06 21:55:44