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_{1}, B_{2}\) that will move along their designed path \( P_{1}, P_{2}\). Both balls will start at \( P_{1}[1]\) and \( P_{2}[1]\), 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.
Assume we have an graph \ ( G \ ) with \ ( n \ )

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!