SlideShare a Scribd company logo
1 of 15
DIJKSTRA’s ALGORITHM Dijkstra_Algorithm AmanArora Geographical Analyst Lepton Software Mail  Id: aman.arora@leptonmaps.com aman.july07@gmail.com
Introduction Dijkstra's Algorithm derived by a Dutch computer scientist ‘EdsgerDijkstra’ 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.
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.
Numerical Algorithm Formulae    O(|V|²+|E|) = O(|V|²)  Where, E= Edges, V= Vertices  |E| = Function of Edges |V| = Function of Vertices and   O = Constant
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.
Graph Algorithm	 So, for the calculation give infinite value to all Vertex.  And start with ‘A’ using this table:
Graph Algorithm
Graph Algorithm
Graph Algorithm
Graph Algorithm
Graph Algorithm
Graph Algorithm
Graph 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.
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.

More Related Content

What's hot

What's hot (20)

Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Spanning trees
Spanning treesSpanning trees
Spanning trees
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithm
 
Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
 
Bellman Ford's Algorithm
Bellman Ford's AlgorithmBellman Ford's Algorithm
Bellman Ford's Algorithm
 
Dijkstra
DijkstraDijkstra
Dijkstra
 
Single source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstraSingle source stortest path bellman ford and dijkstra
Single source stortest path bellman ford and dijkstra
 
Shortest path algorithms
Shortest path algorithmsShortest path algorithms
Shortest path algorithms
 
sum of subset problem using Backtracking
sum of subset problem using Backtrackingsum of subset problem using Backtracking
sum of subset problem using Backtracking
 
dijkstra algo.ppt
dijkstra algo.pptdijkstra algo.ppt
dijkstra algo.ppt
 
Knapsack Problem
Knapsack ProblemKnapsack Problem
Knapsack Problem
 
Backtracking
BacktrackingBacktracking
Backtracking
 
Dijkstra's Algorithm
Dijkstra's AlgorithmDijkstra's Algorithm
Dijkstra's Algorithm
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
 
All pairs shortest path algorithm
All pairs shortest path algorithmAll pairs shortest path algorithm
All pairs shortest path algorithm
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
 
Graph traversals in Data Structures
Graph traversals in Data StructuresGraph traversals in Data Structures
Graph traversals in Data Structures
 
SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS SINGLE-SOURCE SHORTEST PATHS
SINGLE-SOURCE SHORTEST PATHS
 

Similar to Dijkstra’S Algorithm

Algo labpresentation a_group
Algo labpresentation a_groupAlgo labpresentation a_group
Algo labpresentation a_groupUmme habiba
 
Unit26 shortest pathalgorithm
Unit26 shortest pathalgorithmUnit26 shortest pathalgorithm
Unit26 shortest pathalgorithmmeisamstar
 
Discrete Mathematics Presentation
Discrete Mathematics PresentationDiscrete Mathematics Presentation
Discrete Mathematics PresentationSalman Elahi
 
Spanning Tree in data structure and .pptx
Spanning Tree in data structure and .pptxSpanning Tree in data structure and .pptx
Spanning Tree in data structure and .pptxasimshahzad8611
 
Flight-schedule using Dijkstra's algorithm with comparison of routes findings
Flight-schedule using Dijkstra's algorithm with comparison of  routes findingsFlight-schedule using Dijkstra's algorithm with comparison of  routes findings
Flight-schedule using Dijkstra's algorithm with comparison of routes findingsIJECEIAES
 
Dijkstra algorithm
Dijkstra algorithmDijkstra algorithm
Dijkstra algorithmare you
 
Shortest path by using suitable algorithm.pdf
Shortest path by using suitable algorithm.pdfShortest path by using suitable algorithm.pdf
Shortest path by using suitable algorithm.pdfzefergaming
 
Robotics for Path Planning
Robotics for Path PlanningRobotics for Path Planning
Robotics for Path PlanningHitesh Mohapatra
 
AbstractWe design an software to find optimal(shortest) path .docx
AbstractWe design an software to find optimal(shortest) path .docxAbstractWe design an software to find optimal(shortest) path .docx
AbstractWe design an software to find optimal(shortest) path .docxaryan532920
 
Shortest-Path Problems - Graph Theory in Computer Applications
Shortest-Path Problems - Graph Theory in Computer ApplicationsShortest-Path Problems - Graph Theory in Computer Applications
Shortest-Path Problems - Graph Theory in Computer ApplicationsDr. Abdul Ahad Abro
 
Crossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networksCrossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networksAjinkya Ghadge
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.pptCheeWeiTan10
 

Similar to Dijkstra’S Algorithm (20)

Algo labpresentation a_group
Algo labpresentation a_groupAlgo labpresentation a_group
Algo labpresentation a_group
 
Fakhre alam
Fakhre alamFakhre alam
Fakhre alam
 
Unit26 shortest pathalgorithm
Unit26 shortest pathalgorithmUnit26 shortest pathalgorithm
Unit26 shortest pathalgorithm
 
Discrete Mathematics Presentation
Discrete Mathematics PresentationDiscrete Mathematics Presentation
Discrete Mathematics Presentation
 
Spanning Tree in data structure and .pptx
Spanning Tree in data structure and .pptxSpanning Tree in data structure and .pptx
Spanning Tree in data structure and .pptx
 
artifical intelligence final paper
artifical intelligence final paperartifical intelligence final paper
artifical intelligence final paper
 
Flight-schedule using Dijkstra's algorithm with comparison of routes findings
Flight-schedule using Dijkstra's algorithm with comparison of  routes findingsFlight-schedule using Dijkstra's algorithm with comparison of  routes findings
Flight-schedule using Dijkstra's algorithm with comparison of routes findings
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
Dijkstra algorithm
Dijkstra algorithmDijkstra algorithm
Dijkstra algorithm
 
Shortest path by using suitable algorithm.pdf
Shortest path by using suitable algorithm.pdfShortest path by using suitable algorithm.pdf
Shortest path by using suitable algorithm.pdf
 
Graph in data structures
Graph in data structuresGraph in data structures
Graph in data structures
 
Robotics for Path Planning
Robotics for Path PlanningRobotics for Path Planning
Robotics for Path Planning
 
Ds presentation
Ds presentationDs presentation
Ds presentation
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 
AbstractWe design an software to find optimal(shortest) path .docx
AbstractWe design an software to find optimal(shortest) path .docxAbstractWe design an software to find optimal(shortest) path .docx
AbstractWe design an software to find optimal(shortest) path .docx
 
(148065320) dijistra algo
(148065320) dijistra algo(148065320) dijistra algo
(148065320) dijistra algo
 
Shortest-Path Problems - Graph Theory in Computer Applications
Shortest-Path Problems - Graph Theory in Computer ApplicationsShortest-Path Problems - Graph Theory in Computer Applications
Shortest-Path Problems - Graph Theory in Computer Applications
 
Crossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networksCrossing patterns in Nonplanar Road networks
Crossing patterns in Nonplanar Road networks
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.ppt
 

Dijkstra’S Algorithm

  • 1. DIJKSTRA’s ALGORITHM Dijkstra_Algorithm AmanArora Geographical Analyst Lepton Software Mail Id: aman.arora@leptonmaps.com aman.july07@gmail.com
  • 2. Introduction Dijkstra's Algorithm derived by a Dutch computer scientist ‘EdsgerDijkstra’ 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.
  • 3. 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.
  • 4. Numerical Algorithm Formulae O(|V|²+|E|) = O(|V|²) Where, E= Edges, V= Vertices |E| = Function of Edges |V| = Function of Vertices and O = Constant
  • 5. 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.
  • 6. Graph Algorithm So, for the calculation give infinite value to all Vertex. And start with ‘A’ using this table:
  • 14. 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.
  • 15. 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.