Dijkstra vs A* Algorithm.

Description

A Level CS
Harriet Leplar
Slide Set by Harriet Leplar, updated more than 1 year ago
Harriet Leplar
Created by Harriet Leplar about 4 years ago
0
0
1 2 3 4 5 (0)

Resource summary

Slide 1

    Dijkstra's Algorithm
    Used for static data sets: those that are unlikely to change.  Used to navigate through a graph to find the best possible route from one node to another.  Is ridiculously long for large data sets and the organisation of open and closed sets (the nodes available that haven't been explored) is key to the run time and efficiency of the algorithm.  Works on weighted graphs, which can be directed or undirected.  Each node you decide to visit comes with a cost. This is not necessarily to do with geographical distance.  HOW IT WORKS: Set all node costs (except start) to infinite cost. Then the lowest cost is selected.   
    Caption: : Weighted graph: this is before the start and end of the graph is decided.

Slide 2

    A* Algorithm:
    Uses weights (costs) as well as heuristics (values separate to cost which make a predetermined assumption about how far it is going to take us to get to the next node. This heuristic is an all approximation and is used to solve solutions to path finding much quicker than Dijkstra but its not always the optimal solution. 

Slide 3

    A* vs Dijkstra
    Dijkstra   
    A* Uses heuristics as well as 
Show full summary Hide full summary

0 comments

There are no comments, be the first and leave one below:

Similar

P1 - The Earth in the Universe
franimal
Unit 1 - Electricity
Callum McClintock
Cold War Timeline
jacksearle
AS Unit 2 Physics Flashcard Deck
Callum McClintock
GCSE AQA Chemistry Atomic Structure and Bonding
Joseph Tedds
Fractions
MsHeltonReads
med chem 2
lola_smily
Physics - Electricity
dana-howbridge
Physics P1
themomentisover
Chapter 18 - Marketing mix(Product & Price)
irene floriane