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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Chen
November 17, 2022
Science
91
0
Share
Floyd-Warshall
Chen
November 17, 2022
More Decks by Chen
See All by Chen
Example ROP in MIPS
tiffany_04192
0
61
defense
tiffany_04192
0
74
Dijkstra’s Algorithm
tiffany_04192
0
120
Topological sort DFS
tiffany_04192
0
93
BFS
tiffany_04192
0
130
DFS
tiffany_04192
0
120
Cache behavior
tiffany_04192
0
86
Cache miss paper
tiffany_04192
0
110
Greedy
tiffany_04192
0
110
Other Decks in Science
See All in Science
Navigating Weather and Climate Data
rabernat
0
160
力学系から見た現代的な機械学習
hanbao
3
4.1k
AI(人工知能)の過去・現在・未来 —AIは人間を超えるのか—
tagtag
PRO
0
170
データベース02: データベースの概念
trycycle
PRO
2
1.1k
AIに仕事を奪われる 最初の医師たちへ
ikora128
0
1.1k
先端因果推論特別研究チームの研究構想と 人間とAIが協働する自律因果探索の展望
sshimizu2006
3
870
イロレーティングを活用した関東大学サッカーの定量的実力評価 / A quantitative performance evaluation of Kanto University Football Association using Elo rating
konakalab
0
240
Conversation is the New Dashboard: 属人性を排除する第4世代BIツールの勢力図
shomaekawa
1
500
生成AIの現状と展望
tagtag
PRO
0
110
KISHIMOTO Atsuo
genomethica
0
120
機械学習 - 決定木からはじめる機械学習
trycycle
PRO
0
1.3k
データマイニング - グラフデータと経路
trycycle
PRO
2
500
Featured
See All Featured
Believing is Seeing
oripsolob
1
110
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
270
Thoughts on Productivity
jonyablonski
76
5.1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
500
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
160
HDC tutorial
michielstock
1
610
[SF Ruby Conf 2025] Rails X
palkan
2
940
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
150
A Tale of Four Properties
chriscoyier
163
24k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
520
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