Question: 1 ) ( 4 ) Name which algorithm design technique is illustrated by the following algorithm and give a one sentence justification. Choose from among
Name which algorithm design technique is illustrated by the following algorithm and give a one sentence justification. Choose from among Greedy, Divide and Conquer, and Dynamic Programming, and Backtracking. A given algorithm can be the answer for more than one criteria or not at all. A choice without justification is worth
A salesperson is scheduled to visit cities in the US The salesperson is using the following the algorithms to find the route that saves the most money in travel.
a Divide the cities in half. Find the best route around all the cities in each half. Then find the cheapest travel between the halves and travels around one half, flies the other half and then returns to the start.
b Systematically build up a route by starting at city, and then considering all other unvisited cities. A lower bound is computed on the cost of visiting the rest of the cities. The algorithm considers the cheapest bound and again considers all the remaining unvisited cities. This is continued until the best route is found. The algorithm may explore other possible routes if the actual cost of a route is more than the potential lower bound.
c Choose any city to start. Find the cheapest unvisited city for the nd city. Continue in this fashion without ever changing a city once it is chosen until all cities are visited.
d A solution is built from the bottom up All city circuits are used to compute the best circuit for cities. Which are used to find all city circuits and so on until the best city circuit if found.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
