Google Answers Logo
View Question
 
Q: Shortest Path ( No Answer,   1 Comment )
Question  
Subject: Shortest Path
Category: Computers > Algorithms
Asked by: nivis-ga
List Price: $2.50
Posted: 17 Nov 2003 18:10 PST
Expires: 20 Nov 2003 11:08 PST
Question ID: 276888
How we can prove that shortest path between two nodes is unique if all
the weights  are unique power of 2.

Clarification of Question by nivis-ga on 18 Nov 2003 18:06 PST
I need to Know that how the shortest path is unique if weights are
power of 2. NO retracing allowed. edge would be consider once.

Request for Question Clarification by mathtalk-ga on 19 Nov 2003 18:50 PST
You need more than simply the edge weights being a power of two.  They
need to be, as you specified originally in the problem, _unique_
powers of two.

That is, the weights on two different edges are distinct powers of two.

Maybe it helps to see the point of this if you look at a simple
example.  Draw a square, and set the weight of each vertex to be the
same power of two, e.g. 1 to keep things simple.

What is the "shortest" from one corner to the opposite corner?  You
have two edges to transverse, for a minimum "distance" of 2, but the
path could go around the square either clockwise or counterclockwise. 
Thus the shortest path is _not_ unique here.

Now change the four edge weights in this problem so they are all
different powers of two.  Since the powers are unequal, when you add
up a sequence of them, what is the relationship between the edges
travelled and the binary representation of the sum of weights?

regards, mathtalk-ga
Answer  
There is no answer at this time.

Comments  
Subject: Re: Shortest Path
From: mathtalk-ga on 18 Nov 2003 12:24 PST
 
Ummm... two different paths would have distinct sums?  The bits in a
weighted sum would uniquely identify the edges taken in a simple path
(no retracing of edges allowed).  You may need to say a few words
about why a shortest path will always be simple.

-- mathtalk-ga

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy