SlideShare a Scribd company logo
1 of 28
Minggu 3:
Masalah Jaringan
Part 1
Matakuliah
PENELITIAN OPERASIONAL 2
1
Kemampuan Akhir yang direncanakan (Sub-CPMK)
• Mahasiswa mampu memahami dan menemukan solusi Masalah
Optimasi Jaringan
2
Bahan Kajian/Pokok Bahasan:
• Pengantar Permasalahan Optimasi Jaringan
• Struktur Permasalahan Optimasi Jaringan
• Jenis Permasalahan Optimasi Jaringan
• Contoh Permasalahan Jaringan
• Permasalahan jaringan Rute Terpendek
• Model Jaringan Rute Terpendek
• Penyelesaian dengan Algoritma Dijkstra
3
Struktur
Jaringan
4
TERMINOLOGY OF NETWORKS
• The points are called nodes
• The lines are called arcs
• If flow through an arc is allowed in
only one direction (e.g., a one-way
street), the arc is said to be a
directed arc.
• If flow through an arc is allowed in
either direction (e.g., a pipeline that
can be used to pump fluid in either
direction), the arc is said to be an
undirected arc or links.
5
Klasifikasi
Masalah
Jaringan
6
Klasifikasi Masalah Jaringan
• A network that has only directed arcs is called a directed network.
• if all its arcs are undirected, the network is said to be an undirected
network.
• A path between two nodes is a sequence of distinct arcs connecting
these nodes. For example, one of the paths connecting nodes O and T
is the sequence of arcs OB–BD–DT (O B D T), or vice versa.
7
• A directed path from node i to node j is a sequence of connecting
arcs whose direction (if any) is toward node j, so that flow from node i
to node j along this path is feasible.
• An undirected path from node i to node j is a sequence of connecting
arcs whose direction (if any) can be either toward or away from node
j.
• A path that begins and ends at the same node is called a cycle.
8
Connected Network with Cycle
• A spanning tree is a connected network for all n
nodes that contains no undirected cycles.
• The maximum amount of flow (possibly infinity) that
can be carried on a directed arc is referred to as the
arc capacity.
• A supply node (or source node or source) has the
property that the flow out of the node exceeds the
flow into the node.
• A demand node (or sink node or sink) is where the
flow into the node exceeds the flow out of the node.
• A transshipment node (or intermediate node)
satisfies conservation of flow, so flow in equals flow
out.
9
Spanning Tree
Network Optimization Models
• Shortest-path problem
• Minimum spanning tree problem
• Maximum flow problem
• Travelling Salesman Problem
• Minimum cost flow problem
• Network simplex method
10
Ilustrasi
masalah
Jaringan
11
Contoh Masalah Jaringan
12
Model dan Algoritma
Masalah Rute
Terpendek
13
The Shortest-Path Problem
• Consider an undirected and connected network with two special
nodes called the origin and the destination.
• Associated with each of the links (undirected arcs) is a nonnegative
distance.
• The objective is to find the shortest path (the path with the minimum
total distance) from the origin to the destination.
14
Algorithm for the Shortest-Path Problem
• Objective of nth iteration: Find the nth nearest node to the origin (to be repeated for n
1, 2, . . . until the nth nearest node is the destination.
• Input for nth iteration: n − 1 nearest nodes to the origin (solved for at the previous
iterations), including their shortest path and distance from the origin. (These nodes, plus
the origin, will be called solved nodes; the others are unsolved nodes.)
• Candidates for nth nearest node: Each solved node that is directly connected by a link to
one or more unsolved nodes provides one candidate—the unsolved node with the
shortest connecting link. (Ties provide additional candidates.)
• Calculation of nth nearest node: For each such solved node and its candidate, add the
distance between them and the distance of the shortest path from the origin to this
solved node. The candidate with the smallest such total distance is the nth nearest node
(ties provide additional solved nodes), and its shortest path is the one generating this
distance.
15
Applying Dijkstra Algorithm to the Seervada Park
Shortest-Path Problem
16
Iterasi 0
17
Distance:
O: 0
A: ∞
B: ∞
C: ∞
D: ∞
E: ∞
T: ∞
Unvisited Nodes: {O, A, B, C, D, E, T}
Iterasi 1
18
Distance:
O: 0
A: ∞, 2
B: ∞, 5
C: ∞, 4
D: ∞
E: ∞
T: ∞
Unvisited Nodes: {O, A, B, C, D, E, T}
Iterasi 2 & 3
19
Distance:
O: 0
A: ∞, 2
B: ∞, 5 vs 4
C: ∞, 4
D: ∞
E: ∞
T: ∞
Unvisited Nodes: {O, A, B, C, D, E, T}
Iterasi 4
20
Distance:
O: 0
A: ∞, 2
B: ∞, 4
C: ∞, 4
D: ∞, 8
E: ∞, 7
T: ∞
Unvisited Nodes: {O, A, B, C, D, E, T}
Iterasi 5
21
Distance:
O: 0
A: ∞, 2
B: ∞, 4
C: ∞, 4
D: ∞, 8 vs 8
E: ∞, 7
T: ∞,
Unvisited Nodes: {O, A, B, C, D, E, T}
Iterasi 6
22
Distance:
O: 0
A: ∞, 2
B: ∞, 4
C: ∞, 4
D: ∞, 8
E: ∞, 7
T: ∞, 13 vs 14
Unvisited Nodes: {O, A, B, C, D, E, T}
Seervada Park Shortest-Path Problem Solution
23
Solution
24
Solusi dengan Pemodelan OR
25
Hasil
26
Tugas
• Cari jarak terpendek dari 0 ke 6 untuk jaringan berikut:
27
Reference
• Frederick S. Hillier, Gerald J. Lieberman - Introduction to operations
research-McGraw-Hill (2001)
28

More Related Content

Similar to Solving Network Problems with Dijkstra's Algorithm

Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Hemant Jha
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingChandrajit Pal
 
The Results do Mesh.pptx
The Results do Mesh.pptxThe Results do Mesh.pptx
The Results do Mesh.pptxrmlkmrPphtt
 
Interconnect timing model
Interconnect  timing modelInterconnect  timing model
Interconnect timing modelPrachi Pandey
 
24-ad-hoc.ppt
24-ad-hoc.ppt24-ad-hoc.ppt
24-ad-hoc.pptsumadi26
 
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning treeAlona Salva
 
L22.ppt
L22.pptL22.ppt
L22.pptraaed5
 
Physical organization of parallel platforms
Physical organization of parallel platformsPhysical organization of parallel platforms
Physical organization of parallel platformsSyed Zaid Irshad
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1aishwaryaarrao3
 
Scale free network Visualiuzation
Scale free network VisualiuzationScale free network Visualiuzation
Scale free network VisualiuzationHarshit Srivastava
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Naishil Shah
 
Analysis and reactive measures on the blackhole attack
Analysis and reactive measures on the blackhole attackAnalysis and reactive measures on the blackhole attack
Analysis and reactive measures on the blackhole attackJyotiVERMA176
 
crosstalk minimisation using vlsi
crosstalk minimisation using vlsicrosstalk minimisation using vlsi
crosstalk minimisation using vlsisubhradeep mitra
 
Shortest route and mst
Shortest route and mstShortest route and mst
Shortest route and mstAlona Salva
 

Similar to Solving Network Problems with Dijkstra's Algorithm (20)

Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
Vlsiphysicaldesignautomationonpartitioning 120219012744-phpapp01
 
minimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routingminimisation of crosstalk in VLSI routing
minimisation of crosstalk in VLSI routing
 
eeca
eecaeeca
eeca
 
The Results do Mesh.pptx
The Results do Mesh.pptxThe Results do Mesh.pptx
The Results do Mesh.pptx
 
Interconnect timing model
Interconnect  timing modelInterconnect  timing model
Interconnect timing model
 
24-ad-hoc.ppt
24-ad-hoc.ppt24-ad-hoc.ppt
24-ad-hoc.ppt
 
My presentation minimum spanning tree
My presentation minimum spanning treeMy presentation minimum spanning tree
My presentation minimum spanning tree
 
L22.ppt
L22.pptL22.ppt
L22.ppt
 
Physical organization of parallel platforms
Physical organization of parallel platformsPhysical organization of parallel platforms
Physical organization of parallel platforms
 
Network layer
Network layerNetwork layer
Network layer
 
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
COMPUTER NETWORKS CHAPTER 3 NETWORK LAYER NOTES CSE 3RD year sem 1
 
Scale free network Visualiuzation
Scale free network VisualiuzationScale free network Visualiuzation
Scale free network Visualiuzation
 
Thesis presentation
Thesis presentationThesis presentation
Thesis presentation
 
09 placement
09 placement09 placement
09 placement
 
Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3Implementation of Spanning Tree Protocol using ns-3
Implementation of Spanning Tree Protocol using ns-3
 
CMOS Topic 4 -_the_wire
CMOS Topic 4 -_the_wireCMOS Topic 4 -_the_wire
CMOS Topic 4 -_the_wire
 
Analysis and reactive measures on the blackhole attack
Analysis and reactive measures on the blackhole attackAnalysis and reactive measures on the blackhole attack
Analysis and reactive measures on the blackhole attack
 
crosstalk minimisation using vlsi
crosstalk minimisation using vlsicrosstalk minimisation using vlsi
crosstalk minimisation using vlsi
 
Shortest route and mst
Shortest route and mstShortest route and mst
Shortest route and mst
 
Shortest path algorithm
Shortest  path algorithmShortest  path algorithm
Shortest path algorithm
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Solving Network Problems with Dijkstra's Algorithm

  • 1. Minggu 3: Masalah Jaringan Part 1 Matakuliah PENELITIAN OPERASIONAL 2 1
  • 2. Kemampuan Akhir yang direncanakan (Sub-CPMK) • Mahasiswa mampu memahami dan menemukan solusi Masalah Optimasi Jaringan 2
  • 3. Bahan Kajian/Pokok Bahasan: • Pengantar Permasalahan Optimasi Jaringan • Struktur Permasalahan Optimasi Jaringan • Jenis Permasalahan Optimasi Jaringan • Contoh Permasalahan Jaringan • Permasalahan jaringan Rute Terpendek • Model Jaringan Rute Terpendek • Penyelesaian dengan Algoritma Dijkstra 3
  • 5. TERMINOLOGY OF NETWORKS • The points are called nodes • The lines are called arcs • If flow through an arc is allowed in only one direction (e.g., a one-way street), the arc is said to be a directed arc. • If flow through an arc is allowed in either direction (e.g., a pipeline that can be used to pump fluid in either direction), the arc is said to be an undirected arc or links. 5
  • 7. Klasifikasi Masalah Jaringan • A network that has only directed arcs is called a directed network. • if all its arcs are undirected, the network is said to be an undirected network. • A path between two nodes is a sequence of distinct arcs connecting these nodes. For example, one of the paths connecting nodes O and T is the sequence of arcs OB–BD–DT (O B D T), or vice versa. 7
  • 8. • A directed path from node i to node j is a sequence of connecting arcs whose direction (if any) is toward node j, so that flow from node i to node j along this path is feasible. • An undirected path from node i to node j is a sequence of connecting arcs whose direction (if any) can be either toward or away from node j. • A path that begins and ends at the same node is called a cycle. 8 Connected Network with Cycle
  • 9. • A spanning tree is a connected network for all n nodes that contains no undirected cycles. • The maximum amount of flow (possibly infinity) that can be carried on a directed arc is referred to as the arc capacity. • A supply node (or source node or source) has the property that the flow out of the node exceeds the flow into the node. • A demand node (or sink node or sink) is where the flow into the node exceeds the flow out of the node. • A transshipment node (or intermediate node) satisfies conservation of flow, so flow in equals flow out. 9 Spanning Tree
  • 10. Network Optimization Models • Shortest-path problem • Minimum spanning tree problem • Maximum flow problem • Travelling Salesman Problem • Minimum cost flow problem • Network simplex method 10
  • 13. Model dan Algoritma Masalah Rute Terpendek 13
  • 14. The Shortest-Path Problem • Consider an undirected and connected network with two special nodes called the origin and the destination. • Associated with each of the links (undirected arcs) is a nonnegative distance. • The objective is to find the shortest path (the path with the minimum total distance) from the origin to the destination. 14
  • 15. Algorithm for the Shortest-Path Problem • Objective of nth iteration: Find the nth nearest node to the origin (to be repeated for n 1, 2, . . . until the nth nearest node is the destination. • Input for nth iteration: n − 1 nearest nodes to the origin (solved for at the previous iterations), including their shortest path and distance from the origin. (These nodes, plus the origin, will be called solved nodes; the others are unsolved nodes.) • Candidates for nth nearest node: Each solved node that is directly connected by a link to one or more unsolved nodes provides one candidate—the unsolved node with the shortest connecting link. (Ties provide additional candidates.) • Calculation of nth nearest node: For each such solved node and its candidate, add the distance between them and the distance of the shortest path from the origin to this solved node. The candidate with the smallest such total distance is the nth nearest node (ties provide additional solved nodes), and its shortest path is the one generating this distance. 15
  • 16. Applying Dijkstra Algorithm to the Seervada Park Shortest-Path Problem 16
  • 17. Iterasi 0 17 Distance: O: 0 A: ∞ B: ∞ C: ∞ D: ∞ E: ∞ T: ∞ Unvisited Nodes: {O, A, B, C, D, E, T}
  • 18. Iterasi 1 18 Distance: O: 0 A: ∞, 2 B: ∞, 5 C: ∞, 4 D: ∞ E: ∞ T: ∞ Unvisited Nodes: {O, A, B, C, D, E, T}
  • 19. Iterasi 2 & 3 19 Distance: O: 0 A: ∞, 2 B: ∞, 5 vs 4 C: ∞, 4 D: ∞ E: ∞ T: ∞ Unvisited Nodes: {O, A, B, C, D, E, T}
  • 20. Iterasi 4 20 Distance: O: 0 A: ∞, 2 B: ∞, 4 C: ∞, 4 D: ∞, 8 E: ∞, 7 T: ∞ Unvisited Nodes: {O, A, B, C, D, E, T}
  • 21. Iterasi 5 21 Distance: O: 0 A: ∞, 2 B: ∞, 4 C: ∞, 4 D: ∞, 8 vs 8 E: ∞, 7 T: ∞, Unvisited Nodes: {O, A, B, C, D, E, T}
  • 22. Iterasi 6 22 Distance: O: 0 A: ∞, 2 B: ∞, 4 C: ∞, 4 D: ∞, 8 E: ∞, 7 T: ∞, 13 vs 14 Unvisited Nodes: {O, A, B, C, D, E, T}
  • 23. Seervada Park Shortest-Path Problem Solution 23
  • 27. Tugas • Cari jarak terpendek dari 0 ke 6 untuk jaringan berikut: 27
  • 28. Reference • Frederick S. Hillier, Gerald J. Lieberman - Introduction to operations research-McGraw-Hill (2001) 28