Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Pesky Particles. You are assisting with the following physics experiment: after a chemical process occurs two sub-atomic particles (say Pi and p2) will appear

image text in transcribed

3. Pesky Particles. You are assisting with the following physics experiment: after a chemical process occurs two sub-atomic particles (say Pi and p2) will appear on a graph-structure G = (V, E) at nodes s and t. The goal of the experiment is to safely move pi and p2 to the terminal nodes of the graph s' and t'. Each step of the experiment moves both particles along some edge of the graph. That is: the first step moves p1 across an edge connected to s and simultaneously moves P2 across an edge connected to t. the second step again simultaneously moves both p and p2 along some edges. etc. The worry is if either particle gets to close to the other, then it is possible them to break away from the graph and collide with one another, ruining the experiment to say the least. The designers of the graph tell you that as long as the number of edges between the two particles is strictly greater than then there is no chance of the particles colliding. That is if d(u, v) denotes the number of edges in a shortest u-v path, then we must maintain that minu, d(u, v) > for all positions of pi and P2 as they move along their respective paths. We may assume that the starting and ending positions are safe, i.e., d(s, t) > and dis', t')> . [7] (a) Design and analyse an efficient algorithm that determines whether it is possible or not to route the particles safely in the given graph. What is the runtime of your algorithm as a function of n, the number of vertices in the graph? [5] (b) Now suppose rather than having only two particles, we had n/1000 particles. Consider generalizing your algorithm to handle these n/1000 particles. Provide a Big-O bound (as accurate as you can) for the running time of your algorithm. 3. Pesky Particles. You are assisting with the following physics experiment: after a chemical process occurs two sub-atomic particles (say Pi and p2) will appear on a graph-structure G = (V, E) at nodes s and t. The goal of the experiment is to safely move pi and p2 to the terminal nodes of the graph s' and t'. Each step of the experiment moves both particles along some edge of the graph. That is: the first step moves p1 across an edge connected to s and simultaneously moves P2 across an edge connected to t. the second step again simultaneously moves both p and p2 along some edges. etc. The worry is if either particle gets to close to the other, then it is possible them to break away from the graph and collide with one another, ruining the experiment to say the least. The designers of the graph tell you that as long as the number of edges between the two particles is strictly greater than then there is no chance of the particles colliding. That is if d(u, v) denotes the number of edges in a shortest u-v path, then we must maintain that minu, d(u, v) > for all positions of pi and P2 as they move along their respective paths. We may assume that the starting and ending positions are safe, i.e., d(s, t) > and dis', t')> . [7] (a) Design and analyse an efficient algorithm that determines whether it is possible or not to route the particles safely in the given graph. What is the runtime of your algorithm as a function of n, the number of vertices in the graph? [5] (b) Now suppose rather than having only two particles, we had n/1000 particles. Consider generalizing your algorithm to handle these n/1000 particles. Provide a Big-O bound (as accurate as you can) for the running time of your algorithm

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial Databases 2nd Symposium Ssd 91 Zurich Switzerland August 1991 Proceedings Lncs 525

Authors: Oliver Gunther ,Hans-Jorg Schek

1st Edition

3540544143, 978-3540544142

More Books

Students also viewed these Databases questions

Question

1. Outline the listening process and styles of listening

Answered: 1 week ago

Question

4. Explain key barriers to competent intercultural communication

Answered: 1 week ago