wu :: forums
« wu :: forums - LocalBrdige in Graph »

Welcome, Guest. Please Login or Register.
Oct 3rd, 2024, 9:29pm

RIDDLES SITE WRITE MATH! Home Home Help Help Search Search Members Members Login Login Register Register
   wu :: forums
   riddles
   cs
(Moderators: towr, Eigenray, ThudnBlunder, william wu, SMQ, Grimbal, Icarus)
   LocalBrdige in Graph
« Previous topic | Next topic »
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print
   Author  Topic: LocalBrdige in Graph  (Read 5698 times)
Erik
Newbie
*





   


Posts: 27
LocalBrdige in Graph  
« on: Feb 27th, 2013, 12:11pm »
Quote Quote Modify Modify

What would be the best algorithm to find localbridge(k) in Graph? A local bridge of degree k is an edge whose removal would enlarge the shortest distance between its two end-points to at least k.
 
Wikipedia: http://en.wikipedia.org/wiki/Bridge_(interpersonal)#Local_bridge
IP Logged
israa2010
Newbie
*





   


Gender: female
Posts: 1
Re: LocalBrdige in Graph  
« Reply #1 on: Aug 7th, 2014, 5:58pm »
Quote Quote Modify Modify

Run an all-shortest-path-costs algorithm, like the Floyd-Warshall algorithm, but where you use tuples (d1,d2) for distances, instead of the typical real numbers d:
 
    d1 is the length of the shortest path
    d2 is the length of the second shortest path
 
This modification to the Floyd-Warshall algorithm should be straightforward.
 
When you are done running the all-shortest-path-costs algorithm, the localbridge(k) edges are those edges e = {u, v} such that the distance (1,d2) between u and v satisfies d2 >= k
 
 
// removed spam --towr
« Last Edit: Aug 7th, 2014, 11:08pm by towr » IP Logged
Pages: 1  Reply Reply Notify of replies Notify of replies Send Topic Send Topic Print Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board