ShortestPaths Trees KunMao Chao Department of Computer Science
- Slides: 38
Shortest-Paths Trees Kun-Mao Chao (趙坤茂) Department of Computer Science and Information Engineering National Taiwan University, Taiwan E-mail: kmchao@csie. ntu. edu. tw WWW: http: //www. csie. ntu. edu. tw/~kmchao
Shortest-Paths Trees • The objective is to find the set of edges connecting all nodes such that the sum of the edge lengths from the source to each node is minimized. • In order to minimize the total path lengths, the path from the source to each node must be a shortest path connecting them. 2
Shortest-Paths Trees 3
Negative edges in an undirected graph 4
Directed graphs 5
Dijkstra's Algorithm 6
Choose a 7
Relax (a, b) and (a, g) 8
Choose b; Add (a, b) to T 9
Relax (b, c) and (b, d) 10
Choose g; Add (a, g) to T 11
Relax (g, e) and (g, h) 12
Choose d; Add (b, d) to T 13
Relax (d, e) 14
Choose h; Add (g, h) to T 15
Choose e; Add (d, e) to T 16
Relax (e, f) 17
Choose c; Add (b, c) to T 18
Relax (c, h) 19
Choose f; Add (e, f) to T 20
Relax (f, d) and (f, h) 21
The resulting SPT 22
Negative edge 23
Choose a 24
Choose b; Add (a, b) to T 25
Choose d; Add (b, d) to T 26
Choose c; Add (b, c) to T 27
Choose e; Add (d, e) to T 28
Something went wrong 29
A wrong SPT 30
A correct SPT 31
The Bellman-Ford Algorithm 32
δ[b] and δ[g] modified 33
δ[c], δ[d], δ[e] and δ[h] modified 34
δ[f] modified 35
δ[h] modified 36
A correct SPT 37
Try this in class 38
- Massimo ferrario infn
- Kunmao
- Ucl computer science modules
- Northwestern computer science department
- Computer science department rutgers
- Meredith hutchin
- Florida state university ms in cs
- Ubc computer science department
- Department of computer science christ
- Webnis
- Science science science
- Zoë chao sex
- Escrita de sinais
- Quy trình sản xuất chao
- Jackson chao
- Que es codiciar los bienes ajenos
- Shih chao-hwei
- Para reciclar um motor de potencia eletrica igual a 200w
- Ditos populares que falamos errado
- Chao seader method
- Chaohsien
- Department of forensic science dc
- Ohio tpes
- Iit delhi polymer science
- Tum department of electrical and computer engineering
- Computer engineering department
- Social science vs natural science
- Mind map of branches of science
- Natural and physical science
- Applied science vs pure science
- Natural science and social science similarities
- Wwwk-6.thinkcentral
- Tragedy of the commons
- Windcube
- Soft science definition
- Gcse computer science wjec
- Phoenix online computer science university
- How many fields in computer science
- Procedural abstraction definition