Re:Trailer for Bravo's Start-Ups: Silicon Valley
by jhuckestein on Monday October 08, 2012 @08:58PM
(#4629429)
To Dwight's (I've met him a few times, too. He actually seems like a clever guy) credit, it sounds like he said Dijkstra ;) Just goes to show how little the producers of the show care about the "techy stuff".
[ Parent
| on HN ]
Re:Trailer for Bravo's Start-Ups: Silicon Valley
by rosser on Monday October 08, 2012 @09:12PM
(#4629467)
Yes, he said Dijkstra. He's a FoaF, the mutual friend is a coworker of mine, and this was the topic du jour in one of our IRC channels this afternoon. The context for the discussion was trying to determine whether he was too drunk to math, or needed another drink.
Re:Trailer for Bravo's Start-Ups: Silicon Valley
by GuiA on Monday October 08, 2012 @09:06PM
(#4629452)
Well if you're going to have negatively weighted vertices, Dijkstra's algorithm is out of the picture from the start :)
Re:Trailer for Bravo's Start-Ups: Silicon Valley
by jhuckestein on Monday October 08, 2012 @09:13PM
(#4629475)
Depending on your use-case, you can often just add the value of the largest negative edge weight (pair of vertices, not a vertex) to all weights and use a simple algorithm like Dijkstra
Re:Trailer for Bravo's Start-Ups: Silicon Valley
by GuiA on Tuesday October 09, 2012 @12:39AM
(#4629982)
Interesting- thanks! In what cases can't we do that? (ie. why did Ford and Bellman bother at all?)
Re:Trailer for Bravo's Start-Ups: Silicon Valley
by Evbn on Tuesday October 09, 2012 @12:50AM
(#4630010)
In a use case where you don't actually need a shortest path?
Or if you know the path will be a constant numbers of edges, I guess, otherwise adding weights would bias the algorithm toward fewer hops.