Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Dijkstra’s Algorithm
Search
Chen
November 17, 2022
Science
0
110
Dijkstra’s Algorithm
Chen
November 17, 2022
Tweet
Share
More Decks by Chen
See All by Chen
Example ROP in MIPS
tiffany_04192
0
40
defense
tiffany_04192
0
69
Floyd-Warshall
tiffany_04192
0
82
Topological sort DFS
tiffany_04192
0
81
BFS
tiffany_04192
0
98
DFS
tiffany_04192
0
88
Cache behavior
tiffany_04192
0
77
Cache miss paper
tiffany_04192
0
99
Greedy
tiffany_04192
0
95
Other Decks in Science
See All in Science
拡散モデルの概要 −§2. スコアベースモデルについて−
nearme_tech
PRO
0
220
Survival Under Fire: How to Stay Whole During Adversity
arthurdoler
PRO
0
120
Pandas 2 vs Polars vs Dask (PyDataGlobal 2023 December)
ianozsvald
0
660
第4回ナレッジグラフ勉強会 Knowledge Graph Embedding
maruru0090
0
160
AI科学の何が“哲学”の問題になるのか ~問いマッピングの試み~
rmaruy
1
1.9k
Mastering Feature Engineering: Mining the Hidden Salary Formula with CakeResume
tlyu0419
0
210
Running llama.cpp on the CPU
ianozsvald
0
310
AI Alignment: A Comprehensive Survey
s_ota
0
210
位相的データ解析とその応用例
brainpadpr
1
240
Machine Learning for Materials (Lecture 6)
aronwalsh
0
460
はじめてのバックドア基準:あるいは、重回帰分析の偏回帰係数を因果効果の推定値として解釈してよいのか問題
takehikoihayashi
2
250
HAS Dark Site Orientation
astronomyhouston
0
5.1k
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
44
4.7k
Six Lessons from altMBA
skipperchong
24
3.2k
Pencils Down: Stop Designing & Start Developing
hursman
118
11k
Fireside Chat
paigeccino
25
2.8k
Fashionably flexible responsive web design (full day workshop)
malarkey
399
65k
GraphQLの誤解/rethinking-graphql
sonatard
59
9.6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
360
22k
Why Our Code Smells
bkeepers
PRO
332
56k
Producing Creativity
orderedlist
PRO
340
39k
Become a Pro
speakerdeck
PRO
15
4.8k
Building a Modern Day E-commerce SEO Strategy
aleyda
25
6.7k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Transcript
Dijkstra’s Algorithm Do Dijkstra’s on this graph, starting from A.
Best distance to A: 0 All other nodes: 1 (so far, unreachable) 52 / 71
Dijkstra’s Algorithm A is done. Choose shortest total distance (B
at distance 3) From B, find a better path to C (3+3=6) Path to A is worse (3+3, worse than 0) 53 / 71
Dijkstra’s Algorithm B is done. Choose shortest total distance (F
at distance 4) Better path to E (4+5=9) Worse paths to A (4+4 vs 0) and D (4+2=6 vs 5) 54 / 71
Dijkstra’s Algorithm F is done. Choose shortest total distance (D
at distance 5) Better path for E (5+3 = 8 vs 9) Worse paths for other nodes 55 / 71
Dijkstra’s Algorithm D is done. Choose shortest total distance (C
at distance 6) Better path to E (6+1 = 7 vs 8) Worse paths to B and D 56 / 71
Dijkstra’s Algorithm C is done. Choose shortest total distance (E
at distance 7) Worse paths everywhere 57 / 71
Dijkstra’s Algorithm All nodes are done. Note we could have
recorded paths in table Also could stop early if we only wanted a single destination. 58 / 71