Why Dijkstra's Algorithm Fails for Negative Weight Edges (Graphs: Algorithms & Theory)

Published on ● Video Link: https://www.youtube.com/watch?v=nsqh-z0Vj6g



Duration: 7:20
208 views
6


We learn today why Dijkstra's algorithm does not work when negative weights persist (we consider undirected graphs). The existence of a single negative weight is enough, as seen in the set of counterexamples today!

Remark: When considering shortest simple paths, they do exist, just they may not take the form of a tree as we had before. Computing shortest simple paths when negative weights exist is a much harder problem. Furthermore, in the context of directed graphs, the single edge we add is literally a negative-weight cycle, one has to be careful when considering directed graphs in special cases for Dijkstra for negative weights (though it won't work always, as presented, here).

Time Stamps:
0:00 Opening
0:29 Simple setup (before we get the set of counterexamples, consider when paths are simple first)
2:35 Counterexamples (simple and non-simple path)
7:00 Closing

Have a beautiful day!

Supporters (to date of publication, by tier (top to bottom)):
----------------------------------------------------------
Patreon Supporters (General Support):
Draikou
Patreon Supporters (Basic Support):
Patreon Supporters (Supporter Access!):
Eric R
-----------------------------------------------------------
Become a supporter today! To support my work and mission to provide free or accessible Computer Science education (especially in theory), subscribe to the channel, share my videos. Please donate and contribute to support my work for more content:
PATREON: https://www.patreon.com/PageWizard
SUBSCRIBESTAR: https://www.subscribestar.com/drpage
PAYPAL: https://paypal.me/pagewizard

Follow also at:
FACEBOOK: https://www.facebook.com/DanielRPage
TWITTER: https://twitter.com/PageWizardGLE
QUORA: https://www.quora.com/profile/Daniel-R-Page
TWITCH: https://www.twitch.tv/pagewizard

#ComputerScience
#Algorithms
#graphtheory




Other Videos By PageWizard Games, Learning & Entertainment


2022-11-215. Myopic and Comparison Strategies for k-Canadian Travelling (Haunted Escape)
2022-11-184. Deterministic Lower Bound for k-Canadian Travelling (Haunted Escape)
2022-11-18Dan Plays Pocky & Rocky: Reshrined (JOIN THE FUN IN THE CHAT)
2022-11-16Ms. Kitty Learns Dijkstra's Algorithm with Ms. Kitty
2022-11-163. Reposition Strategy for k-Canadian Travelling (Haunted Escape)
2022-11-142. Competitiveness of Online Algorithms (Haunted Escape)
2022-11-111. k-Canadian Traveller & Problem Setup (Haunted Escape)
2022-11-11Dan Plays Legend of Zelda: Link's Awakening DX (PJ STREAM, JOIN THE FUN)
2022-11-09Proving 1 + 2 + 3 + … + n = n(n+1)/2 using Mathematical Induction
2022-11-09Haunted Escape (Intro to k-Canadian Traveller and Online Algorithms)
2022-11-07Why Dijkstra's Algorithm Fails for Negative Weight Edges (Graphs: Algorithms & Theory)
2022-11-04Correctness of Dijkstra's Algorithm (Graphs: Algorithms & Theory)
2022-11-02Dijkstra's Algorithm WITH FULL EXAMPLE (Graphs: Algorithms & Theory)
2022-10-31Single-Source Shortest Path Problem (Graphs: Algorithms & Theory)
2022-10-28Showing an Algorithm is Incorrect (Example 2)
2022-10-28Dan Plays Legend of Zelda: Link's Awakening DX & The Crystal of Kings
2022-10-26Showing an Algorithm is Incorrect (Example 1)
2022-10-25Single-Source Shortest Path Problem and Dijkstra's Algorithm
2022-10-24How Do We Know Algorithms are Incorrect?
2022-10-21Prim's Algorithm in Under 1 Minute - Think Like The Blob! (Graphs: Algorithms & Theory)
2022-10-19Summations, Closed Forms, and Simplifying Them: A Tutorial



Tags:
Computer Science
Algorithms
Data Structures
Education
CompSci
CS
PageWizard
Mathematics
Accessibility
University
COMPSCI
COMP
CSCI
Western
Manitoba
StFX
Regina
graph theory
algorithms
dijkstra
algorithm
negative weights