About 17,000,000 results
Open links in new tab
  1. 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. …

  2. 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" …

  3. Why does Dijkstra's algorithm work? - Stack Overflow

    Aug 15, 2015 · I understand what Dijkstra's algorithm is, but I don't understand why it works. When selecting the next vertex to examine, why does Dijkstra's algorithm select the one with …

  4. algorithm - Bellman-Ford vs Dijkstra: Under what circumstances is ...

    76 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 …

  5. Dijkstra's algorithm in python - Stack Overflow

    Apr 7, 2014 · 0 Here is my implementation of Dijkstra algorithm using min-priority-queue. Hope it will you. from collections import defaultdict from math import floor class MinPQ: """ each heap …

  6. Dijkstra's Algorithm and Cycles - Stack Overflow

    May 7, 2017 · It's stated in a book that "Dijkstra's algorithm only works with Directed Acyclic Graphs". It appears the algorithm works for graphs with cycles too as long as there are no …

  7. Performance improvement for Dijkstra algorithm using heaps in …

    Mar 29, 2022 · Below is my implementation for Dijkstra's algorithm using heaps (for undirected graphs). This works just fine for reasonably sized graphs however I am not satisfied by my …

  8. Does dijkstras algorithm relax the edges of the shortest path in …

    Oct 4, 2015 · He claims that Dijkstra's algorithm relaxes the edges of every shortest path in the graph in the order in which they appear on the path, and therefore the path-relaxation property …

  9. c - How to optimize Dijkstra algorithm for a single shortest path ...

    Apr 17, 2010 · I was trying to understand this implementation in C of the Dijkstra algorithm and at the same time modify it so that only the shortest path between 2 specific nodes (source and …

  10. Finding the shortest route using Dijkstra algorithm

    May 20, 2012 · Djikstra's Algorithm uses the parent array to track the shortest path from start to end. You'd start at parent [end] and follow the entries of the array until you got back to start. …