Question: Please be sure to answer the question thoroughly and completely. n customers arrived at a bank before opening time. There is only one cashier in

Please be sure to answer the question thoroughly and completely. n customersPlease be sure to answer the question thoroughly and completely.

n customers arrived at a bank before opening time. There is only one cashier in the bank. An ith customer 1 lessthanorequalto i lessthanorequalto n needs a service time t_i. The task is to order the customers in line to the cashier such that the average waiting time is minimized. The waiting time of a customer is from the opening time of the bank till (s) he leaves the bank. Design a greedy algorithm to compute the optimal order

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!