Question: Task 4 . [ 7 0 Points ] SSSP sells MSTs at a TSP during BFS SSSP ^ ( 5 ) is a place where

Task 4.[70 Points] SSSP sells MSTs at a TSP during BFS
SSSP^(5) is a place where people go to buy apple ^(6). During the BFS^(7) this year, they will sell an MST^(8) at a TSP ^(9).
SSSP has set such an APSP ^(10) for the MSTs that no one can refuse to buy them.
SSSP has many locations in New York, and all locations will offer the deal. Suppose that there are n
households h_(1),h_(2),dots,h_(n) that want to buy the MSTs, and there are m SSSP locations s_(1),s_(2),dots,s_(m) in New
York. For 1=i=n and 1=j=m,it takes t_(i,j) minutes for the people from h_(i) to reach s_(j) if they start at 6 am on
the day after Thanksgiving. Once they reach their intended s_(j) they will join the queue waiting outside the
store. No one will be allowed to join the queue after the store opens. One household will be served every
minute immediately after the opening of the store. So, if people from k households end up waiting in the
queue, it will take exactly k minutes for all of them to get their MSTs.
The CS ^(11) department at SSSP has collected all t_(i,j) values from all n households ahead of time. They have
hired you to design an algorithm that given all t_(i,j)h_(i)(s_(j)) and at what time the stores must open so that the last household to be served can be
served as early as possible (measuring time from 6 am on the day after Thanksgiving). They require that all
store must open at exactly the same time and every household must be served at some (and exactly one)
location. The stores will remain open until all n households are served.
Explain your algorithm and analyze its running time. Your algorithm must run in O(m^(3)n^(3)(m+n)logn) time
to deserve any credit.
Hint: You may need to use network flow to solve this problem.
^(5) SSSP = Super Store for Superior Products
^(6) apple = astonishingly precious products at low expense
^(7) BFS = Black Friday Sales
^(8) MST = Mind-bloggingly Superior Thing
^(9)TSP= Tantalizingly Slahsed Price
^(10) APSP = Amazingly Puny Sale Price
^(11) CS = Customer Service
Please use "the Edmonds-karp algorithm" to solve this question:
Task 4 . [ 7 0 Points ] SSSP sells MSTs at a TSP

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 Programming Questions!