Question: Task 4 . [ 7 0 Points ] SSSP sells MSTs at a TSP during BFS SSSP ^ ( 5 ) is a place where
Task Points SSSP sells MSTs at a TSP during BFS
SSSP is a place where people go to buy apple During the BFS this year, they will sell an MST at a TSP
SSSP has set such an APSP 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 hhdots,hn that want to buy the MSTs and there are m SSSP locations ssdots,sm in New
York. For in and jmit takes tij minutes for the people from hi to reach sj if they start at am on
the day after Thanksgiving. Once they reach their intended sj 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 department at SSSP has collected all tij values from all n households ahead of time. They have
hired you to design an algorithm that given all tijhisj 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 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 Omnmnlogn time
to deserve any credit.
Hint: You may need to use network flow to solve this problem.
SSSP Super Store for Superior Products
apple astonishingly precious products at low expense
BFS Black Friday Sales
MST Mindbloggingly Superior Thing
TSP Tantalizingly Slahsed Price
APSP Amazingly Puny Sale Price
CS Customer Service
Please use "the Edmondskarp algorithm" to solve this question:
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
