Question: Assume we have an graph ( G ) with ( n ) vertices and m edges. We have two balls
Assume we have an graph G with n vertices and m edges. We have two balls B B that will move along their designed path P P Both balls will start at P and P and can move only forward along their designed paths. To be more precise, we define a valid move for a ball is either stay in it's current node, or move to the next node on its path. Each ball makes exactly one legal move in each round. A sequence, specifying in each round a valid move for each robot, is a plan.
The score of a plan is the maximum distance of the two balls from each other at any moment during the execution of the plan.
Describe an algorithm that computes the minimum score plan for the two balls. Your algorithm should be as fast as possible.
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
