There are k people living in a city, whose n suburbs and m roads can be represented by an unweighted directed graph. Eve

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

There are k people living in a city, whose n suburbs and m roads can be represented by an unweighted directed graph. Eve

Post by answerhappygod »

There are k people living in a city, whose n suburbsand m roads can be represented by anunweighted directed graph.Every person is either slow or fast. Every night,• Each slow person can stay in the same suburb, or move along aroad to an adjacent suburb.• Each fast person can stay in the same suburb, or move to anyother suburb in the entire city.Over the last d days, you know how many people were located in eachsuburb. That is, for eachday i and suburb j (where 1 ≤ i ≤ d and 1 ≤ j ≤n), you know pi,j, the number of peoplelocatedin suburb j on day i. You are guaranteed that = k for all i.
1) Using maximum flow algorithms such asFord-Fulkerson and Edmonds-Karp.
Design an algorithm which runs in O(d(n + m)) time anddetermines whether there could possibly be at least one slowperson.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply