Dijkstra’s algorithm: Difference between revisions
Mr. MacKenty (talk | contribs) (Created page with "<center> <blockquote style="padding: 5px; background-color: #FFF8DC; border: solid thin gray;"> File:Exclamation.png This is student work which has not yet been approve...") |
18barlow d (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
== Introduction == | == Introduction == | ||
The algorithm was conceived by Edsger Dijkstra in 1956. It is a path finding algorithm that is used to find the shortest path between points on a grid. It is often used in GPSs to help drivers find their way. | |||
<ref> | <ref> https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm </ref> | ||
== How does it work or a deeper look == | == How does it work or a deeper look == | ||
“For a given source node in the graph, the algorithm finds the shortest path between that node and every other.It can also be used for finding the shortest paths from a single node to a single destination node by stopping the algorithm once the shortest path to the destination node has been determined. For example, if the nodes of the graph represent cities and edge path costs represent driving distances between pairs of cities connected by a direct road, Dijkstra's algorithm can be used to find the shortest route between one city and all other cities.” | |||
== Examples == | == Examples == | ||
When you are meeting friends at a restaurant downtown and you use a gps app, the app uses Dijkstra’s Algorithm to test all available routes. Then it chooses the one that would be the quickest and easiest for you to take. | |||
== Pictures, diagrams == | == Pictures, diagrams == |
Latest revision as of 19:30, 18 September 2017
This is student work which has not yet been approved as correct by the instructor
Introduction[edit]
The algorithm was conceived by Edsger Dijkstra in 1956. It is a path finding algorithm that is used to find the shortest path between points on a grid. It is often used in GPSs to help drivers find their way.
[2]
How does it work or a deeper look[edit]
“For a given source node in the graph, the algorithm finds the shortest path between that node and every other.It can also be used for finding the shortest paths from a single node to a single destination node by stopping the algorithm once the shortest path to the destination node has been determined. For example, if the nodes of the graph represent cities and edge path costs represent driving distances between pairs of cities connected by a direct road, Dijkstra's algorithm can be used to find the shortest route between one city and all other cities.”
Examples[edit]
When you are meeting friends at a restaurant downtown and you use a gps app, the app uses Dijkstra’s Algorithm to test all available routes. Then it chooses the one that would be the quickest and easiest for you to take.
Pictures, diagrams[edit]
Pictures and diagrams go a LONG way to helping someone understand a topic. Especially if your topic is a little abstract or complex. Using a picture or diagram is a two part process:
External links[edit]
- It would be helpful
- to include many links
- to other internet resources
- to help fellow students
- Please make sure the content is good
- and don't link to a google search results, please