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
120
Dijkstra’s Algorithm
Chen
November 17, 2022
Tweet
Share
More Decks by Chen
See All by Chen
Example ROP in MIPS
tiffany_04192
0
61
defense
tiffany_04192
0
74
Floyd-Warshall
tiffany_04192
0
91
Topological sort DFS
tiffany_04192
0
92
BFS
tiffany_04192
0
130
DFS
tiffany_04192
0
120
Cache behavior
tiffany_04192
0
84
Cache miss paper
tiffany_04192
0
110
Greedy
tiffany_04192
0
110
Other Decks in Science
See All in Science
Rashomon at the Sound: Reconstructing all possible paleoearthquake histories in the Puget Lowland through topological search
cossatot
0
590
HDC tutorial
michielstock
1
480
データベース10: 拡張実体関連モデル
trycycle
PRO
0
1.1k
イロレーティングを活用した関東大学サッカーの定量的実力評価 / A quantitative performance evaluation of Kanto University Football Association using Elo rating
konakalab
0
210
Optimization of the Tournament Format for the Nationwide High School Kyudo Competition in Japan
konakalab
0
160
Navigating Weather and Climate Data
rabernat
0
130
baseballrによるMLBデータの抽出と階層ベイズモデルによる打率の推定 / TokyoR118
dropout009
2
850
俺たちは本当に分かり合えるのか? ~ PdMとスクラムチームの “ずれ” を科学する
bonotake
2
1.9k
コンピュータビジョンによるロボットの視覚と判断:宇宙空間での適応と課題
hf149
1
550
データベース05: SQL(2/3) 結合質問
trycycle
PRO
0
890
Hakonwa-Quaternion
hiranabe
1
190
Text-to-SQLの既存の評価指標を問い直す
gotalab555
1
180
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
84
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Exploring anti-patterns in Rails
aemeredith
2
280
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.4k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
480
Skip the Path - Find Your Career Trail
mkilby
1
71
Technical Leadership for Architectural Decision Making
baasie
3
270
Git: the NoSQL Database
bkeepers
PRO
432
66k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
200
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
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