(Not logged on) | Register | Log On

You can subscribe to this discussion group using an RSS feed reader. techInterview Discussion

Answers to technical interview questions. A part of TechInterview.org

A part of techInterview.org: answers to technical interview questions.

Your host: Michael Pryor

Graph Cost

In a graph with positive and negetive edges ,how would you find the shortest path,the graph does not have any loop.O(V+E) expected.Hint: Try to modify the BFS
Dijkstra Send private email
Sunday, July 04, 2010
 
 
Summer algorithms class kicking your ass, eh?
d Send private email
Sunday, July 04, 2010
 
 
The idea is to traverse BFS and check for each nodes whether all the edges coming to it are covered or not...this is called critital path method

Monday, July 05, 2010
 
 
Ford's algo -
Rahul.b Send private email
Friday, July 09, 2010
 
 
That's merely O(|V| |E|). In general, when professors give hints, they mean it.
d Send private email
Friday, July 09, 2010
 
 
Bellman Ford
SG
Saturday, July 10, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz