SlideShare a Scribd company logo
WELCOME TO
OPEN DAY
ORGANIZED BY SAMBHARAM INSTITUTE OF
TECHNOLOGY
What we’re going to discuss?
01
02
03
Shortest Path Algorithms
What is Shortest Path Algorithm? .
Types of Shortest Path Algorithm
How many types of Shortest Path algorithm is there?
Applications and usage
Where it is used and what are some real life examples?
Features
What are the features of Shortest Path Algorithm.
04
What is
Shortest
Path
Algorithm
1. The shortest path Algorithm
is about finding a path
between two vertices in a
graph such that the total
sum of the edges weights is
minimum.
2. Shortest path Algorithm is
used to find a path between
two vertices(or nodes) in a
graph such that the sum of
weights of its constituent
edge is minimized.
Shortest Path Algorithms
Shortest path (A, C, E, D, F) bet
ween vertices A and F in the wei
ghted directed graph
Types of Shortest path Algorithm
Below are the types
Bellman Ford’s Algorithm is used to find the shortest paths from the source vertex to all other vertices in
a weighted graph.
Bellman Ford’s Algorithm
Dijkstra’s algorithm has many variants but the most common one is to find the shortest path from source
vertex to all other vertices in the graph.
Dijkstra’s Algorithm
Floyd-Warshall’s Algorithm is used to find the shortest paths between all pairs of vertices in a graph. Where
each edge In the graph has a weight either negative or positive. The biggest advantage of using this
algorithm is that all the shortest distance between in any vertices can be calculated.
Floyd-Warshall’s Algorithm
01
02
03
Bellman-
Ford
Algorithm
Algorithm Steps:
1. The outer loop traverses from 0 : n−1.
2. Loop over all edges, check if the next node distance > current node
distance + edge weight, in this case update the next node distance to "current
node distance + edge weight".
Bellman Ford Algorithms
Dijkstra’s
Algorithm
Algorithm Steps:
1. Set all vertices distances = infinity except for the source vertex, set the source distance
= 0.
2. Push the source vertex in a min-priority queue in the form (distance , vertex), as the co
mparison in the min-priority queue will be according to vertices distances.
3. Pop the vertex with the minimum distance from the priority queue (at first the popped ve
rtex = source).
4. Update the distances of the connected vertices to the popped vertex in case of "current
vertex distance + edge weight < next vertex distance", then push the vertex
with the new distance to the priority queue.
5. If the popped vertex is visited before, just continue without using it.
6. Apply the same algorithm again until the priority queue is empty.
Dijkstra’s Algorithms
Floyd-
warshall’s
AlgorithmAlgorithm Steps:
1. Initialize the shortest paths between any 2 vertices with Infinity.
2. Find all pair shortest paths that use 0 intermediate vertices, then find the shortest path
s that use 1intermediate vertex and so on.. until using all N vertices as intermediate no
des.
3. Minimize the shortest paths between any 2 pairs in the previous operation.
4. For any 2 vertices (i,j) , one should actually minimize the distances between this pair u
sing the first Knodes, so the shortest path will be: min(dist[i][k]+dist[k][j],dist[i][j]).
Floyd Warshall’s Ford Algorithms
Application and usage
Of Shortest Path Algorithm
Networking protocols
Social Media
Dynamic Programming's
Google Maps
IP Routing
Telephone networks
For routing purpose and efficient delivery of packet
Finding shortest path between two persons.
To implement the routing.
Google map uses these to find shortest routes
Many routers used algorithm to deliver packet
For routing connections in communication.
Features
Of shortest path algorithms
Simple to understand and work on it.
Easy to use
It is very easy to implement using many high level
programing languages.
Can be Implemented easily
Companies like google uses it for Maps
Used by my big companies
01
02
03
It is simple yet best algorithms to finding shortest
path.
Best for finding shortest path
04
Thank you

More Related Content

PPTX
Shortest path algorithm
PPTX
Dijkstra algorithm a dynammic programming approach
PPT
Bellman Ford's Algorithm
PDF
Shortest path algorithms
PPTX
Bellman ford Algorithm
PDF
Cs6702 graph theory and applications 2 marks questions and answers
PPTX
Bellman ford algorithm
PPTX
Dijkstra s algorithm
Shortest path algorithm
Dijkstra algorithm a dynammic programming approach
Bellman Ford's Algorithm
Shortest path algorithms
Bellman ford Algorithm
Cs6702 graph theory and applications 2 marks questions and answers
Bellman ford algorithm
Dijkstra s algorithm

What's hot (20)

PPTX
Dijkstra's algorithm presentation
PPTX
Dynamic Programming
PPTX
Dijkstra's Algorithm
PDF
AI 3 | Uninformed Search
PPTX
Bellman ford algorithm
PPTX
Dijkstra’S Algorithm
PPT
The Floyd–Warshall algorithm
PPTX
Presentation on Breadth First Search (BFS)
PPT
Graph algorithms
PPT
Maximum flow
PDF
Dijkstra's Algorithm
PPTX
Problem Formulation
PPTX
MATCHING GRAPH THEORY
PPT
A* Path Finding
PDF
Methods of Optimization in Machine Learning
PPT
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
PPTX
Daa unit 1
PPTX
Dijkstra’s algorithm
PPT
Bellman ford algorithm
PDF
Heuristic search-in-artificial-intelligence
Dijkstra's algorithm presentation
Dynamic Programming
Dijkstra's Algorithm
AI 3 | Uninformed Search
Bellman ford algorithm
Dijkstra’S Algorithm
The Floyd–Warshall algorithm
Presentation on Breadth First Search (BFS)
Graph algorithms
Maximum flow
Dijkstra's Algorithm
Problem Formulation
MATCHING GRAPH THEORY
A* Path Finding
Methods of Optimization in Machine Learning
ADA - Minimum Spanning Tree Prim Kruskal and Dijkstra
Daa unit 1
Dijkstra’s algorithm
Bellman ford algorithm
Heuristic search-in-artificial-intelligence
Ad

Similar to Shortest Path Algorithm (20)

PPTX
Dijkstra’s Algorithm and Prim’s Algorithm in Graph Theory and Combinatorics
PPTX
Dijkstra’s Algorithm and Prim’s Algorithm in Graph Theory and Combinatorics
PPTX
Deixtras Algorithm.pptxdjjdjdjdjddddddddddddddd
PPTX
Batch 5 DAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA.pptx
PDF
Djikstra’s Algorithm. Approach to shortest path algorithm with greedy method
PDF
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
PPTX
Algorithms Analysis: Bellman-Ford Algorithm
PDF
Three Element Beam forming Algorithm with Reduced Interference Effect in Sign...
PPTX
Spanning Tree in data structure and .pptx
PPTX
Floyd warshall algorithm and it's applications
PPTX
DAA_Presentation - Copy.pptx
PDF
Shortest path by using suitable algorithm.pdf
PDF
shortestpathalgorithm-180109112405 (1).pdf
PDF
A comparative study on multicast routing using dijkstra’s
PDF
A comparative study on multicast routing using dijkstra’s, prims and ant colo...
PPTX
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
PPT
(148065320) dijistra algo
PPTX
Prim's and Kruskal's Algorithm
PPTX
8. Dynamic Prog _Warshall_Floyd Algorithm.pptx
PPT
PoGIS 6_2_Spatial Dataanalysis.ppt
Dijkstra’s Algorithm and Prim’s Algorithm in Graph Theory and Combinatorics
Dijkstra’s Algorithm and Prim’s Algorithm in Graph Theory and Combinatorics
Deixtras Algorithm.pptxdjjdjdjdjddddddddddddddd
Batch 5 DAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA.pptx
Djikstra’s Algorithm. Approach to shortest path algorithm with greedy method
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
Algorithms Analysis: Bellman-Ford Algorithm
Three Element Beam forming Algorithm with Reduced Interference Effect in Sign...
Spanning Tree in data structure and .pptx
Floyd warshall algorithm and it's applications
DAA_Presentation - Copy.pptx
Shortest path by using suitable algorithm.pdf
shortestpathalgorithm-180109112405 (1).pdf
A comparative study on multicast routing using dijkstra’s
A comparative study on multicast routing using dijkstra’s, prims and ant colo...
APznzaZLM_MVouyxM4cxHPJR5BC-TAxTWqhQJ2EywQQuXStxJTDoGkHdsKEQGd4Vo7BS3Q1npCOMV...
(148065320) dijistra algo
Prim's and Kruskal's Algorithm
8. Dynamic Prog _Warshall_Floyd Algorithm.pptx
PoGIS 6_2_Spatial Dataanalysis.ppt
Ad

Recently uploaded (20)

PDF
Lecture1 pattern recognition............
PDF
Optimise Shopper Experiences with a Strong Data Estate.pdf
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
PPTX
Managing Community Partner Relationships
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PDF
Introduction to Data Science and Data Analysis
PPTX
Modelling in Business Intelligence , information system
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PPTX
A Complete Guide to Streamlining Business Processes
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPT
ISS -ESG Data flows What is ESG and HowHow
PDF
annual-report-2024-2025 original latest.
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Lecture1 pattern recognition............
Optimise Shopper Experiences with a Strong Data Estate.pdf
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Oracle OFSAA_ The Complete Guide to Transforming Financial Risk Management an...
Managing Community Partner Relationships
Qualitative Qantitative and Mixed Methods.pptx
Introduction to Data Science and Data Analysis
Modelling in Business Intelligence , information system
STERILIZATION AND DISINFECTION-1.ppthhhbx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
A Complete Guide to Streamlining Business Processes
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
ISS -ESG Data flows What is ESG and HowHow
annual-report-2024-2025 original latest.
climate analysis of Dhaka ,Banglades.pptx
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
Capcut Pro Crack For PC Latest Version {Fully Unlocked 2025}
Acceptance and paychological effects of mandatory extra coach I classes.pptx

Shortest Path Algorithm

  • 1. WELCOME TO OPEN DAY ORGANIZED BY SAMBHARAM INSTITUTE OF TECHNOLOGY
  • 2. What we’re going to discuss? 01 02 03 Shortest Path Algorithms What is Shortest Path Algorithm? . Types of Shortest Path Algorithm How many types of Shortest Path algorithm is there? Applications and usage Where it is used and what are some real life examples? Features What are the features of Shortest Path Algorithm. 04
  • 3. What is Shortest Path Algorithm 1. The shortest path Algorithm is about finding a path between two vertices in a graph such that the total sum of the edges weights is minimum. 2. Shortest path Algorithm is used to find a path between two vertices(or nodes) in a graph such that the sum of weights of its constituent edge is minimized. Shortest Path Algorithms Shortest path (A, C, E, D, F) bet ween vertices A and F in the wei ghted directed graph
  • 4. Types of Shortest path Algorithm Below are the types Bellman Ford’s Algorithm is used to find the shortest paths from the source vertex to all other vertices in a weighted graph. Bellman Ford’s Algorithm Dijkstra’s algorithm has many variants but the most common one is to find the shortest path from source vertex to all other vertices in the graph. Dijkstra’s Algorithm Floyd-Warshall’s Algorithm is used to find the shortest paths between all pairs of vertices in a graph. Where each edge In the graph has a weight either negative or positive. The biggest advantage of using this algorithm is that all the shortest distance between in any vertices can be calculated. Floyd-Warshall’s Algorithm 01 02 03
  • 5. Bellman- Ford Algorithm Algorithm Steps: 1. The outer loop traverses from 0 : n−1. 2. Loop over all edges, check if the next node distance > current node distance + edge weight, in this case update the next node distance to "current node distance + edge weight". Bellman Ford Algorithms
  • 6. Dijkstra’s Algorithm Algorithm Steps: 1. Set all vertices distances = infinity except for the source vertex, set the source distance = 0. 2. Push the source vertex in a min-priority queue in the form (distance , vertex), as the co mparison in the min-priority queue will be according to vertices distances. 3. Pop the vertex with the minimum distance from the priority queue (at first the popped ve rtex = source). 4. Update the distances of the connected vertices to the popped vertex in case of "current vertex distance + edge weight < next vertex distance", then push the vertex with the new distance to the priority queue. 5. If the popped vertex is visited before, just continue without using it. 6. Apply the same algorithm again until the priority queue is empty. Dijkstra’s Algorithms
  • 7. Floyd- warshall’s AlgorithmAlgorithm Steps: 1. Initialize the shortest paths between any 2 vertices with Infinity. 2. Find all pair shortest paths that use 0 intermediate vertices, then find the shortest path s that use 1intermediate vertex and so on.. until using all N vertices as intermediate no des. 3. Minimize the shortest paths between any 2 pairs in the previous operation. 4. For any 2 vertices (i,j) , one should actually minimize the distances between this pair u sing the first Knodes, so the shortest path will be: min(dist[i][k]+dist[k][j],dist[i][j]). Floyd Warshall’s Ford Algorithms
  • 8. Application and usage Of Shortest Path Algorithm Networking protocols Social Media Dynamic Programming's Google Maps IP Routing Telephone networks For routing purpose and efficient delivery of packet Finding shortest path between two persons. To implement the routing. Google map uses these to find shortest routes Many routers used algorithm to deliver packet For routing connections in communication.
  • 9. Features Of shortest path algorithms Simple to understand and work on it. Easy to use It is very easy to implement using many high level programing languages. Can be Implemented easily Companies like google uses it for Maps Used by my big companies 01 02 03 It is simple yet best algorithms to finding shortest path. Best for finding shortest path 04