About 18,700,000 results
Open links in new tab
  1. Negative weights using Dijkstra's Algorithm - Stack Overflow

    Variants of Dijkstra's Algorithm The key is there are 3 kinds of implementation of Dijkstra's algorithm, but all the answers under this question ignore the differences among these variants. Using a nested for …

  2. Is Dijkstra's algorithm for directed or undirected graphs?

    Dijkstra's algorithm runs on positive weighed graphs, otherwise the priority queue would be useless. In your example, Dijkstra's algorithm would work because the graph is both weighed (positively) and …

  3. Why is the time complexity of Dijkstra O ( (V + E) logV)

    I was reading about worst case time complexity for the Dijkstra algorithm using binary heap (the graph being represented as adjacency list). According to Wikipedia and various stackoverflow questions, …

  4. The best shortest path algorithm - Stack Overflow

    25 Dijkstra 's algorithm finds the shortest path between a node and every other node in the graph. You'd run it once for every node. Weights must be non-negative, so if necessary you have to normalise the …

  5. Find the shortest path in a graph which visits certain nodes

    In other words, first find the shortest distance between each pair of vertices (you can use Dijkstra's algorithm or others, but with those small numbers (100 nodes), even the simplest-to-code Floyd …

  6. Difference and advantages between dijkstra & A star

    Oct 23, 2012 · It says A* is faster than using dijkstra and uses best-first-search to speed things up. A* is basically an informed variation of Dijkstra. A* is considered a "best first search" because it greedily …

  7. Dijkstra's algorithm to find all the shortest paths possible

    May 12, 2010 · I'm working on Dijkstra's algorithm, and I really need to find all the possible shortest paths, not just one. I'm using an adjacency matrix and I applied Dijkstra's algorithm, and I can find …

  8. Difference between Prim's and Dijkstra's algorithms?

    Jan 4, 2013 · What is the exact difference between Dijkstra's and Prim's algorithms? I know Prim's will give a MST but the tree generated by Dijkstra will also be a MST. Then what is the exact difference?

  9. Use Dijkstra's to find a Minimum Spanning Tree? - Stack Overflow

    Mar 14, 2017 · A: Dijkstra's Algorithm at every step greedily selects the next edge that is closest to some source vertex s. It does this until s is connected to every other vertex in the graph. Clearly, the …

  10. algorithm - Finding kth-shortest paths? - Stack Overflow

    Finding the shortest path between two points in a graph is a classic algorithms question with many good answers (Dijkstra's algorithm, Bellman-Ford, etc.) My question is whether there is an effici...