bellman-ford Questions

5

Solved

From what I can understand, counting-to-infinity occurs when one router feeds another old information, which continues to propagate through the network toward infinity. From what I read, this can d...
Lackey asked 23/11, 2012 at 6:5

8

Solved

After a lot of Googling, I've found that most sources say that the Dijkstra algorithm is "more efficient" than the Bellman-Ford algorithm. But under what circumstances is the Bellman-Ford algorithm...
Sauceda asked 20/10, 2013 at 20:13

3

Solved

I know that Bellman-Ford Algorithm works for directed graphs. Will it will work for an undirected graph? It seems that with an undirected graph, it will not be able to detect cycles because paralle...

4

Solved

I was thinking about the algorithm of finding a negative weight cycle in a directed graph. The Problem is: we have a graph G(V,E), we need to find an efficient algorithm to find a cycle with negati...
Exerciser asked 4/4, 2011 at 4:21

2

Solved

I use a matrix d to present a graph. d.(i).(j) means the distance between i and j; v denotes the number of nodes in the graph. It is possible that there is negative cycle in this graph. I would l...

2

Solved

Image: 4 iterations, with (a) is the original graph. (b), (c), (d), (e) correspond to result after each iteration. Example from "Introduction to Algorithm 3rd" Hi, I do not understand few aspec...
Debouchment asked 13/3, 2018 at 18:10

2

Solved

In Dijkstra's shortest path algorithm and others, to examine an edge to see if it offers a better path to a node is referred to as relaxing the edge. Why is it called relaxing?
Whitefaced asked 24/5, 2012 at 23:38

1

Solved

I'm using Bellman-Ford to find the shortest path through a graph with some negative weights. The graph has no possibility of loops and no bi-directional connections. I'd like to find the K shortest...
Centaury asked 22/10, 2015 at 18:20

2

Solved

Algorithms like the Bellman-Ford algorithm and Dijkstra's algorithm exist to find the shortest path from a single starting vertex on a graph to every other vertex. However, in the program I'm writi...
Constitutive asked 27/2, 2015 at 19:30

2

Solved

So I came to this beautiful problem that asks you to write a program that finds whether a negative infinity shortest path exists in a directed graph. (Also can be thought of as finding whether a "n...
Plenary asked 21/11, 2013 at 14:5

1

Solved

I stumbled with famous Yen's optimization of Bellman-Ford algorithm that I got initially from Wikipedia, then I found the same improvement in several textbooks in Exercise section (for example, thi...
Betz asked 23/10, 2013 at 17:24

1

I'm trying to code a program for a class that simulates a router and so far I have the basics set up ("router" can send and receive packets through an emulated server to other "routers" connected t...
Erose asked 22/11, 2012 at 9:21

2

Solved

I've been studying the three and I'm stating my inferences from them below. Could someone tell me if I have understood them accurately enough or not? Thank you. Dijkstra's algorithm is used only ...

1

Solved

I've successfully implemented Bellman-Ford to find the distance of the shortest path when edges have negative weights/distances. I've not been able to get it to return all shortest paths (when ther...
Flagon asked 6/7, 2012 at 21:24

9

Solved

Find the shortest path from source to destination in a directed graph with positive and negative edges, such that at no point in the path the sum of edges coming before it is negative. If no such...
Acute asked 1/3, 2012 at 2:2
1

© 2022 - 2024 — McMap. All rights reserved.