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
Floyd-Warshall
Search
Chen
November 17, 2022
Science
97
0
Share
Floyd-Warshall
Chen
November 17, 2022
More Decks by Chen
See All by Chen
Example ROP in MIPS
tiffany_04192
0
63
defense
tiffany_04192
0
79
Dijkstra’s Algorithm
tiffany_04192
0
120
Topological sort DFS
tiffany_04192
0
95
BFS
tiffany_04192
0
130
DFS
tiffany_04192
0
120
Cache behavior
tiffany_04192
0
90
Cache miss paper
tiffany_04192
0
120
Greedy
tiffany_04192
0
110
Other Decks in Science
See All in Science
Algorithmic Aspects of Quiver Representations
tasusu
0
350
水耕栽培を始める前に知っておきたい植物の科学
grow_design_lab
0
200
データベース03: 関係データモデル
trycycle
PRO
1
520
見上公一.pdf
genomethica
0
140
AkarengaLT vol.41
hashimoto_kei
1
140
MATSUO Makiko
genomethica
0
140
機械学習 - 授業概要
trycycle
PRO
0
490
AIに仕事を奪われる 最初の医師たちへ
ikora128
0
1.1k
Bear-safety-running
akirun_run
0
140
なぜエネルギーは保存する? 〜自由落下でわかる“対称性”とネーターの定理〜
syotasasaki593876
0
170
良書紹介04_生命科学の実験デザイン
bunnchinn3
0
160
AI bij literatuuronderzoek in de wetenschap
voginip
0
140
Featured
See All Featured
Between Models and Reality
mayunak
4
320
How to make the Groovebox
asonas
2
2.2k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
HDC tutorial
michielstock
2
680
Statistics for Hackers
jakevdp
799
230k
How GitHub (no longer) Works
holman
316
150k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
120
Six Lessons from altMBA
skipperchong
29
4.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Transcript
Floyd-Warshall: Dynamic Programming Floyd-Warshall computes all pairs, but let us
focus on 5 to 6. 62 / 71
Floyd-Warshall: Dynamic Programming We start by considering only start(5) and
dest(6) when k is 0. 63 / 71
Floyd-Warshall: Dynamic Programming Then we also consider node 1 when
k is 1. 64 / 71
Floyd-Warshall: Dynamic Programming And node 2 when k is 2.
65 / 71
Floyd-Warshall: Dynamic Programming And node 3 when k is 3.....
66 / 71
Floyd-Warshall: Dynamic Programming And node 4 when k is 4....
And so on. Note that I have just been filling in the answers for recursive calls But we actually need to compute those. 67 / 71
Floyd-Warshall: Dynamic Programming Hmm it looks like some of those
recursive calls will recompute the same thing... 68 / 71