15
DIJKSTRA’s ALGORITHM Dijkstra_Algorithm Aman Arora Geographical Analyst Lepton Software Mail Id: [email protected] [email protected]

Dijkstra’S Algorithm

  • Upload
    ami01

  • View
    7.462

  • Download
    1

Embed Size (px)

DESCRIPTION

Method used by ArcGIS Network Analysis

Citation preview

Page 1: Dijkstra’S Algorithm

DIJKSTRA’s ALGORITHM

Dijkstra_AlgorithmAman AroraGeographical Analyst

Lepton Software

Mail Id: [email protected]

[email protected]

Page 2: Dijkstra’S Algorithm

Introduction

• Dijkstra's Algorithm derived by a Dutch computer scientist ‘Edsger Dijkstra’ in 1956 and published in 1959.

• It’s a graph search algorithm that solves the single-source shortest path problem for a graph with nonnegative edge path costs, producing a shortest path tree.

• This algorithm is often used in routing and as a subroutine in other graph algorithms.

Page 3: Dijkstra’S Algorithm

How it works ?• This algorithm finds the path with lowest cost

(i.e. the shortest path) between that vertex and every other vertex. For example, if the vertices 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.

• According to this algorithm, to solve a given problem, we need to solve different parts of problems.

Page 4: Dijkstra’S Algorithm

Numerical Algorithm

• Formulae

O(|V|²+|E|) = O(|V|²)

Where,

E= Edges, V= Vertices

|E| = Function of Edges

|V| = Function of Vertices and

O = Constant

Page 5: Dijkstra’S Algorithm

Graph Algorithm• In this

interconnected ‘Vertex’ we’ll use ‘Dijkstra’s Algorithm’.

• To use this algorithm in this network we have to start from a decided vertex and then continue to others.

Page 6: Dijkstra’S Algorithm

Graph AlgorithmSo, for the calculation give infinite value to all Vertex.

And start with ‘A’ using this table:

Page 7: Dijkstra’S Algorithm

Graph Algorithm

Page 8: Dijkstra’S Algorithm

Graph Algorithm

Page 9: Dijkstra’S Algorithm

Graph Algorithm

Page 10: Dijkstra’S Algorithm

Graph Algorithm

Page 11: Dijkstra’S Algorithm

Graph Algorithm

Page 12: Dijkstra’S Algorithm

Graph Algorithm

Page 13: Dijkstra’S Algorithm

Graph Algorithm

Page 14: Dijkstra’S Algorithm

Graph Algorithm

• So with this ‘Graph Algorithm’ we found our best lowest cost route in this interconnected Vertex.

• And the best lowest cost path is given below:

A B F C D (H) G• So total cost from ‘A’ to ‘G’ vertex is ‘70’ which is

lowest cost from other Vertex.

Page 15: Dijkstra’S Algorithm

What is the analysis technique using this Algorithm in ArcGIS Network Analysis?

• From this demonstration now we know about method used by this algorithm to find out lowest cost route.

• Exactly this technique is adapted by ArcGIS NA and it uses to find out solution of any network problem.

• Where we use Vertex to reach our destination, in ArcGIS NA we use junctions as Vertex to find out lowest cost route, New Service area, closest facility etc.