1 / 11

Shortest Path Algorithms

Shortest Path Algorithms. By: Nick Bielik Aaron Staranowicz Mike Knadle. Content. Objective Node Expansion A* Uniform Cost Dijkstra’s Bi-directional Dijkstra’s Demo. Objective. Uniform Cost Search (UCS) vs Dijkstra’s A* vs Dijkstra’s vs Bi-directional Dijkstra’s

leal
Télécharger la présentation

Shortest Path Algorithms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Shortest Path Algorithms By: Nick Bielik Aaron Staranowicz Mike Knadle

  2. Content • Objective • Node Expansion • A* • Uniform Cost • Dijkstra’s • Bi-directional Dijkstra’s • Demo

  3. Objective • Uniform Cost Search (UCS) vs Dijkstra’s • A* vs Dijkstra’s vs Bi-directional Dijkstra’s • Differences between each • Node expansion

  4. Node Expansion Diagram A* Most Efficient Bi-directional Dijkstra’s UCS Dijkstra’s Least Efficient

  5. Node Expansions • Start Node: Luebeck • Goal Node: Munich • Node Expansions: • A* - 21 • Dijkstra’s – 244 • Bidirectional Dijkstra’s – 16 • UCS - 19

  6. A* • Finds the shortest path from 1 start node to 1 goal node • Uses a distance-plus-cost heuristic function • The heuristic function includes 2 parts: • the path-cost function, which is the cost from the starting node to the current node • and an admissible "heuristic estimate" of the distance to the goal

  7. A* • Admissible "heuristic estimate“ • considers fewer nodes • Estimate must less than or equal to total cost in all cases

  8. Uniform Cost Search • Begins at a root node and will continually expand nodes, taking the node with the smallest total cost from the root until it reaches the goal state. • Special Case of A* if the heuristic is a constant function • Similar to Dijkstra’s

  9. Dijkstra’s • Same as Uniform Cost Search but instead of stopping at the goal node, it continues until all nodes are covered

  10. Bi-directional Dijkstra’s • Same as Dijkstra’s but with the search algorithm starting from both sides • Idea: • If Dijkstra’s is given 1 start node and 1 goal node, then another Dijkstra’s is given the inverse then the 2 should reach the middle node at the same time

  11. Questions?

More Related