SlideShare a Scribd company logo
GROUP MEMBERS:
M. HAMZA KHAN(19B-113-SE)
WAJID KHAN(19B-109-SE)
SAQIB SARFARAZ(19B-098-SE)
M. ZOHAIB KHAN(19B-090-SE)
RESEARCH TOPIC
SHORTEST PATH PROBLEMS:
COMPARISION AND THEIR SIGNIFICANCE IN
COMPUTER SCIENCE:
FLOYD WARSHALLALGORITHM:
INTRODUCTION:
In computer science, the Floyd-Warshall Algorithm is used for
finding the shortest path problems in a weighted, directed
graph.
All Pair Shortest Path: It aims to calculate the shortest path
between each vertex and every other nodes.
It uses a Dynamic Programming Approach to solve the all pair
shortest path problem.
ALGORITHM:
COMPLICATION:
We have to apply this algorithm ‘n’ times, each time
choosing a different as the source.
The total computation time is:
n * 0(n^2) = 0(n^3)
This time complication are same for the best, average and
worst case.
EXAMPLE:
Dij = min(Dij-1, Dik-1 + Dkj-1)
Do = D1 =
D2 = D3 =
D4 =
APPLICATIONS:
 Computation of path finder networks become faster.
 Ideal routing.
 All pair shortest path.
 Negative weight-cycles in graph are detected.
DIJKSTRA’S ALGORITHM:
INTRODUCTION:
Dijkstra algorithm, named after its discovery, Dutch
computer scientist Edsgar Dijkstra.
Dijkstra Algorithm is basically single source shortest path
problem. In this algorithm one source is given to find out
the shortest path from all other vertices.
FOR EXAMPLE: If the vertices of the graph represent cities
and edge weights represent driving distances between
pairs of cities connected by a direct road, Dijkstra’s
algorithm can be used to find the shortest route between
the two cities.
WORKING PRINCIPLE:
STEPS:
 Assign every node a tentative distance.
 Set initial node as current and mark
all nodes as unvisited.
 For current node, consider all
unvisited nodes and calculate distance.
 Compare current and calculated
distance and assign the smaller value.
 When all neighbors are considered
mark them.
 If the destination node is marked ,
Stop
APPLICATIONS:
 It is used in satellite navigation and in Google maps.
 It is used to determine the earliest arrival time for the
destination.
 In telephone networks, the vertices represents switching
station, the edges represents the transmission line and the
weight of edges represent the BW.
COMPARISION BETWEEN FLOYD-WARSHALL
AND DIJSKTRA’S ALGORITHM:
Dijsktra’s Algorithm:
 It is a single source
shortest algorithm.
 It may or may not
work on both positive
and negative edge.
Floyd-Warshall Algorithm:
 It is an example of all
pair shortest path
algorithm.
 It works both on
negative and positive
edges.
CONCLUSION:
As in the above discussion conclude that both
Algorithm is used to find the shortest path /
distance but their working are different one
another Dijkstra’s algorithm is a shortest as
well as Warshall algorithm. However In
practical applications these two algorithms
can’t applied directly.

More Related Content

What's hot

Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithm
mansab MIRZA
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
sana younas
 
Djikstra's Algorithm
Djikstra's Algorithm Djikstra's Algorithm
Djikstra's Algorithm
Samar Kenkre
 
Path based Algorithms(Term Paper)
Path based Algorithms(Term Paper)Path based Algorithms(Term Paper)
Path based Algorithms(Term Paper)
pankaj kumar
 
Tmp
TmpTmp
Tmp
Rana T
 
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET) PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
Limon Prince
 
Maths final upload
Maths final uploadMaths final upload
Maths final upload
JAYA KAUSHIK
 
study Latent Doodle Space
study Latent Doodle Spacestudy Latent Doodle Space
study Latent Doodle Space
Chiamin Hsu
 
Shortest path search for real road networks and dynamic costs with pgRouting
Shortest path search for real road networks and dynamic costs with pgRoutingShortest path search for real road networks and dynamic costs with pgRouting
Shortest path search for real road networks and dynamic costs with pgRouting
antonpa
 
Quiz 2
Quiz 2Quiz 2
Quiz 2
Gopi Saiteja
 
Optimal process Planning
Optimal process PlanningOptimal process Planning
Optimal process Planningashsmartblog
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
farimoin
 
OT
OTOT
TuckerHEDPSummer2016Presentation
TuckerHEDPSummer2016PresentationTuckerHEDPSummer2016Presentation
TuckerHEDPSummer2016PresentationTucker Hartland
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest path
sowfi
 
Algo labpresentation a_group
Algo labpresentation a_groupAlgo labpresentation a_group
Algo labpresentation a_group
Umme habiba
 
8783733
87837338783733
8783733
P. Carmona
 

What's hot (20)

Dijkstra s algorithm
Dijkstra s algorithmDijkstra s algorithm
Dijkstra s algorithm
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
Djikstra's Algorithm
Djikstra's Algorithm Djikstra's Algorithm
Djikstra's Algorithm
 
First Technical Paper
First Technical PaperFirst Technical Paper
First Technical Paper
 
Path based Algorithms(Term Paper)
Path based Algorithms(Term Paper)Path based Algorithms(Term Paper)
Path based Algorithms(Term Paper)
 
Tmp
TmpTmp
Tmp
 
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET) PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
PERFORMANCE VEHICULAR AD-HOC NETWORK (VANET)
 
Maths final upload
Maths final uploadMaths final upload
Maths final upload
 
study Latent Doodle Space
study Latent Doodle Spacestudy Latent Doodle Space
study Latent Doodle Space
 
Mid term
Mid termMid term
Mid term
 
Shortest path search for real road networks and dynamic costs with pgRouting
Shortest path search for real road networks and dynamic costs with pgRoutingShortest path search for real road networks and dynamic costs with pgRouting
Shortest path search for real road networks and dynamic costs with pgRouting
 
Quiz 2
Quiz 2Quiz 2
Quiz 2
 
Optimal process Planning
Optimal process PlanningOptimal process Planning
Optimal process Planning
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
OT
OTOT
OT
 
TuckerHEDPSummer2016Presentation
TuckerHEDPSummer2016PresentationTuckerHEDPSummer2016Presentation
TuckerHEDPSummer2016Presentation
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest path
 
poster
posterposter
poster
 
Algo labpresentation a_group
Algo labpresentation a_groupAlgo labpresentation a_group
Algo labpresentation a_group
 
8783733
87837338783733
8783733
 

Similar to Ds presentation

A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
Khoa Mac Tu
 
Shortest Path Algorithm
Shortest Path AlgorithmShortest Path Algorithm
Shortest Path Algorithm
Anish Ansari
 
DAA_Presentation - Copy.pptx
DAA_Presentation - Copy.pptxDAA_Presentation - Copy.pptx
DAA_Presentation - Copy.pptx
AndrewJohnson866415
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
sakthibalabalamuruga
 
Fakhre alam
Fakhre alamFakhre alam
Fakhre alam
Fakhre Alam
 
dsa.pptx
dsa.pptxdsa.pptx
Graph 3
Graph 3Graph 3
E017512630
E017512630E017512630
E017512630
IOSR Journals
 
dijkstra algo.ppt
dijkstra algo.pptdijkstra algo.ppt
dijkstra algo.ppt
Santhosh Krishna
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)Aruneel Das
 
Prim's and Kruskal's Algorithm
Prim's and Kruskal's AlgorithmPrim's and Kruskal's Algorithm
Prim's and Kruskal's Algorithm
OmTanna1
 
shortestpathalgorithm-180109112405 (1).pdf
shortestpathalgorithm-180109112405 (1).pdfshortestpathalgorithm-180109112405 (1).pdf
shortestpathalgorithm-180109112405 (1).pdf
zefergaming
 
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
asimshahzad8611
 
Network analysis
Network analysisNetwork analysis
Network analysis
Moudud Hasan
 
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
zefergaming
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
Institute of Technology, Nirma University
 
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
IJECEIAES
 
1 sollins algorithm
1 sollins algorithm1 sollins algorithm
1 sollins algorithm
Muhammad Salman
 

Similar to Ds presentation (20)

A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
A study on_contrast_and_comparison_between_bellman-ford_algorithm_and_dijkstr...
 
Shortest Path Algorithm
Shortest Path AlgorithmShortest Path Algorithm
Shortest Path Algorithm
 
DAA_Presentation - Copy.pptx
DAA_Presentation - Copy.pptxDAA_Presentation - Copy.pptx
DAA_Presentation - Copy.pptx
 
Data structure and algorithm
Data structure and algorithmData structure and algorithm
Data structure and algorithm
 
Fakhre alam
Fakhre alamFakhre alam
Fakhre alam
 
dsa.pptx
dsa.pptxdsa.pptx
dsa.pptx
 
06_AJMS_334_21.pdf
06_AJMS_334_21.pdf06_AJMS_334_21.pdf
06_AJMS_334_21.pdf
 
Graph 3
Graph 3Graph 3
Graph 3
 
E017512630
E017512630E017512630
E017512630
 
dijkstra algo.ppt
dijkstra algo.pptdijkstra algo.ppt
dijkstra algo.ppt
 
Seminar Report (Final)
Seminar Report (Final)Seminar Report (Final)
Seminar Report (Final)
 
Prim's and Kruskal's Algorithm
Prim's and Kruskal's AlgorithmPrim's and Kruskal's Algorithm
Prim's and Kruskal's Algorithm
 
shortestpathalgorithm-180109112405 (1).pdf
shortestpathalgorithm-180109112405 (1).pdfshortestpathalgorithm-180109112405 (1).pdf
shortestpathalgorithm-180109112405 (1).pdf
 
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
 
Network analysis
Network analysisNetwork analysis
Network analysis
 
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
 
The Floyd–Warshall algorithm
The Floyd–Warshall algorithmThe Floyd–Warshall algorithm
The Floyd–Warshall algorithm
 
Combinatorial Optimization
Combinatorial OptimizationCombinatorial Optimization
Combinatorial Optimization
 
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
 
1 sollins algorithm
1 sollins algorithm1 sollins algorithm
1 sollins algorithm
 

Recently uploaded

Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 

Ds presentation

  • 1. GROUP MEMBERS: M. HAMZA KHAN(19B-113-SE) WAJID KHAN(19B-109-SE) SAQIB SARFARAZ(19B-098-SE) M. ZOHAIB KHAN(19B-090-SE) RESEARCH TOPIC SHORTEST PATH PROBLEMS: COMPARISION AND THEIR SIGNIFICANCE IN COMPUTER SCIENCE:
  • 3. INTRODUCTION: In computer science, the Floyd-Warshall Algorithm is used for finding the shortest path problems in a weighted, directed graph. All Pair Shortest Path: It aims to calculate the shortest path between each vertex and every other nodes. It uses a Dynamic Programming Approach to solve the all pair shortest path problem.
  • 5. COMPLICATION: We have to apply this algorithm ‘n’ times, each time choosing a different as the source. The total computation time is: n * 0(n^2) = 0(n^3) This time complication are same for the best, average and worst case.
  • 6. EXAMPLE: Dij = min(Dij-1, Dik-1 + Dkj-1) Do = D1 = D2 = D3 = D4 =
  • 7. APPLICATIONS:  Computation of path finder networks become faster.  Ideal routing.  All pair shortest path.  Negative weight-cycles in graph are detected.
  • 9. INTRODUCTION: Dijkstra algorithm, named after its discovery, Dutch computer scientist Edsgar Dijkstra. Dijkstra Algorithm is basically single source shortest path problem. In this algorithm one source is given to find out the shortest path from all other vertices. FOR EXAMPLE: If the vertices of the graph represent cities and edge weights represent driving distances between pairs of cities connected by a direct road, Dijkstra’s algorithm can be used to find the shortest route between the two cities.
  • 10. WORKING PRINCIPLE: STEPS:  Assign every node a tentative distance.  Set initial node as current and mark all nodes as unvisited.  For current node, consider all unvisited nodes and calculate distance.  Compare current and calculated distance and assign the smaller value.  When all neighbors are considered mark them.  If the destination node is marked , Stop
  • 11. APPLICATIONS:  It is used in satellite navigation and in Google maps.  It is used to determine the earliest arrival time for the destination.  In telephone networks, the vertices represents switching station, the edges represents the transmission line and the weight of edges represent the BW.
  • 12. COMPARISION BETWEEN FLOYD-WARSHALL AND DIJSKTRA’S ALGORITHM: Dijsktra’s Algorithm:  It is a single source shortest algorithm.  It may or may not work on both positive and negative edge. Floyd-Warshall Algorithm:  It is an example of all pair shortest path algorithm.  It works both on negative and positive edges.
  • 13. CONCLUSION: As in the above discussion conclude that both Algorithm is used to find the shortest path / distance but their working are different one another Dijkstra’s algorithm is a shortest as well as Warshall algorithm. However In practical applications these two algorithms can’t applied directly.