SlideShare uma empresa Scribd logo
1 de 7
Networks
• Minimum spanning tree
• Maximum flow
• Minimum distance
Networks
A G
F
C
H
B
D
E
38
18
25
34
40
52
36
35
20
22
24
75
20
Minimum Spanning tree :
shortest way between ALL points
A G
F
C
H
B
D
E
38
18
25
34
40
52
36
35
20
22
24
75
20
30
D
A C
G
E
B
H
26 30
40
52
94
33
40
23
40
50
30
20
F50
26
Minimum Spanning tree :
shortest way between ALL points
Networks
A B C D E F G
A - - 310 - 300 - 620
B - - 550 430 530 330 -
C 310 550 - - 350 - -
D - 430 - - - 210 390
E 300 530 350 - - 380 360
F - 330 - 210 380 - -
G 620 - - 390 360 - -
You can start at ANY node, but let’s choose A
• Decide row/column (lets choose column)
• If you choose a column, rule out the LINE for A
• Find the shortest connection from A
• Now Rule out the rest of row E
• look at both columns for A and E for shortest connection
• Rule out the rest of row C
• Now we look at columns A, E, C for shortest connection
• Rule out rest of row G
• Include column G, find shortest from A, E, C, G
Prim’s algorithm:
Minimum Spanning Tree:
AC, AE, EF, EG, FB, FD
Maximum flow:
The maximum flow from the source, that reaches the endpoint (sink)
50
40
10
30 40
30
20
A
B
X
C
D
A-B-X = 40
10
0
A-B-C-X = 100
0
30
A-C-X = 30
0
0
A-D-X = 20
10
0
Total = 100
The
End

Mais conteúdo relacionado

Mais procurados (20)

Ejercicio
EjercicioEjercicio
Ejercicio
 
Kunci jawaban fisika
Kunci jawaban fisikaKunci jawaban fisika
Kunci jawaban fisika
 
Solución al ejercicio 1
Solución al ejercicio 1Solución al ejercicio 1
Solución al ejercicio 1
 
Problema
Problema Problema
Problema
 
POLYGONS HAVING INTERIOR ANGLE WITH NO DECIMAL VALUES
POLYGONS HAVING INTERIOR ANGLE WITH NO DECIMAL VALUESPOLYGONS HAVING INTERIOR ANGLE WITH NO DECIMAL VALUES
POLYGONS HAVING INTERIOR ANGLE WITH NO DECIMAL VALUES
 
Problema
ProblemaProblema
Problema
 
Finite Element Analysis of Magnesium Alloys using OOF2
Finite Element Analysis of Magnesium Alloys using OOF2Finite Element Analysis of Magnesium Alloys using OOF2
Finite Element Analysis of Magnesium Alloys using OOF2
 
Bryan
BryanBryan
Bryan
 
Eligheor
EligheorEligheor
Eligheor
 
Ejercicio.
Ejercicio.Ejercicio.
Ejercicio.
 
Vogel's Approximation Method
Vogel's Approximation MethodVogel's Approximation Method
Vogel's Approximation Method
 
Vam
VamVam
Vam
 
Bending problems part 1
Bending problems part 1Bending problems part 1
Bending problems part 1
 
Bending problems
Bending problemsBending problems
Bending problems
 
8.2 notes
8.2 notes8.2 notes
8.2 notes
 
Tutorial 8 slides
Tutorial 8 slidesTutorial 8 slides
Tutorial 8 slides
 
Hs tw5.5
Hs tw5.5Hs tw5.5
Hs tw5.5
 
Standard deviation
Standard deviationStandard deviation
Standard deviation
 
SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2
 
Math
MathMath
Math
 

Destaque

Solving triangles
Solving trianglesSolving triangles
Solving trianglesjarynis
 
Cylinders
CylindersCylinders
Cylindersjarynis
 
Bài thuyết trình sản phẩm mới
Bài thuyết trình sản phẩm mớiBài thuyết trình sản phẩm mới
Bài thuyết trình sản phẩm mớitamylinh
 

Destaque (8)

SUITEdeals Media Kit
SUITEdeals Media KitSUITEdeals Media Kit
SUITEdeals Media Kit
 
Photo album
Photo albumPhoto album
Photo album
 
ISO Certification
ISO CertificationISO Certification
ISO Certification
 
Photo album
Photo albumPhoto album
Photo album
 
Solving triangles
Solving trianglesSolving triangles
Solving triangles
 
Cylinders
CylindersCylinders
Cylinders
 
Down syndrome
Down syndromeDown syndrome
Down syndrome
 
Bài thuyết trình sản phẩm mới
Bài thuyết trình sản phẩm mớiBài thuyết trình sản phẩm mới
Bài thuyết trình sản phẩm mới
 

Networks ppt

  • 1. Networks • Minimum spanning tree • Maximum flow • Minimum distance
  • 3. Minimum Spanning tree : shortest way between ALL points A G F C H B D E 38 18 25 34 40 52 36 35 20 22 24 75 20 30
  • 4. D A C G E B H 26 30 40 52 94 33 40 23 40 50 30 20 F50 26 Minimum Spanning tree : shortest way between ALL points
  • 5. Networks A B C D E F G A - - 310 - 300 - 620 B - - 550 430 530 330 - C 310 550 - - 350 - - D - 430 - - - 210 390 E 300 530 350 - - 380 360 F - 330 - 210 380 - - G 620 - - 390 360 - - You can start at ANY node, but let’s choose A • Decide row/column (lets choose column) • If you choose a column, rule out the LINE for A • Find the shortest connection from A • Now Rule out the rest of row E • look at both columns for A and E for shortest connection • Rule out the rest of row C • Now we look at columns A, E, C for shortest connection • Rule out rest of row G • Include column G, find shortest from A, E, C, G Prim’s algorithm: Minimum Spanning Tree: AC, AE, EF, EG, FB, FD
  • 6. Maximum flow: The maximum flow from the source, that reaches the endpoint (sink) 50 40 10 30 40 30 20 A B X C D A-B-X = 40 10 0 A-B-C-X = 100 0 30 A-C-X = 30 0 0 A-D-X = 20 10 0 Total = 100