SlideShare uma empresa Scribd logo
1 de 13
*
*
*Vertex centric SSSP
*Sub-graph Centric SSSP
*Performance improvements
*
A
C
D
B
F
G
E
H1
1
4
3
1
2
2
2
1
2
1
Source : A
A B C D E F G H
0 INF INF INF INF INF INF INF
0 3 1 4 INF INF INF INF
0 3 1 2 4 3 INF INF
0 3 1 2 4 3 5 5
1
Assume no –ve edges
s
d
v
At each superstep…
…
vertex receives messages which contain the
current known shortest path through a neighbor
d0 d1
d
s
d
t
ws
wt
if min(d0,d1) < dv, it sends messages to its
neighbors
and updates its new minimum distance
from s
else, it votes to halt
d0 + ws d0 + wt
After execution, each vertex’s value is its minimum distance from
s
*
*Computation time bounded by number of super
steps take for computation * super step time
* After ith super-step all vertices whose shortest
path consist of i-1 number of edges will get
the final value.
*Let d be the longest shortest path in the graph
(assume unit edge weights)
*Number of super-steps = O(d)
A
C
D
B
F
G
E
H1
1
4
3
1 2
2
2
1
2
1
*
*Partition graph into set of connected components
– sub-graphs
*Terms :
*Sub-graph : Partition
*Remote vertex : Let v in SGj and let  edge (u,v)
s.t. v in SGi. Then for SGi vertex v is a remote
vertex.
*Remote edge : (u,v) s.t. u in SGi v in SGj and
SGi≠ SGj
SG1
SG2
SG3
*
A
C
D
B
F
G
E
H1
1
4
3
1
2
2
2
1
2
1
S
Q=V-S
Iterative section
At each super-step…
• Each neighbor vertex in sub-graph with
incoming edges will receives messages
which contain the current known shortest
path through a neighbor
• Set that value as the vertex value if its
less than current value
• Add that vertex in open set (V-S) with the
new value
• Run Iterative section of Dijkstras locally
and calculate new Shortest paths.
• Sent new shortest path though this sub-
graph to its remote vertices
d0
d1
d0
d1
Input edge
Input edge
output edge
output edge
S
V-S
*
*Assume sub-graph is a vertex
s
d
v
At each superstep…
…
• Vertex receives messages which contain the
current known shortest path through a neighbor
• Vertex sends its current known shortest path
through it to its neighbors if they have changed
d0 d1
d
s
d
t
ws
wt
d0 + ws d0 + wt
*
d0
d1
Input edge
Input edge
output edge
output edge
S
V-S
• Set incoming values as the vertex value
if its less than current value
• Add that vertex in open set (V-S) with
the new value
• Run Iterative section of Dijkstras
locally and calculate new Shortest
paths (Same as assuming virtual source
and running Dijkstras)
• Sent new shortest path though this sub-
graph to its remote vertices if changed
• Vertex receives messages
which contain the
current known shortest path
through a neighbor
• Vertex sends its current known
shortest path through it to its
neighbors if they have changed
Virtual source
*Assume sub-graph is a vertex
*
*Computation time bounded by number of super steps take
for computation * super step time
*Super-step time for super step i= O(e*log(v)) (e ,v = edges
and vertices of largest updating sub-graph at super-step i)
* After ith super-step all sub-graphs whose vertices shortest
path consist of i-1 number of remote edges will get the
final value.
*Let d be the longest shortest path in the graph where sub-
graphs are vertices (assuming unit edge weights)
*Number of super-steps = O(d)
*
0
200
400
600
800
1000
1200
1400
RN - CA TR LJ
Giraph
GoFFish
Runtime comparison
• RN-CA: Road network
• TR : Trace route map
• LJ : Live Journal graph
*
*Run time = # super-steps x super-step time
*Vertex centric – negligible vertex compute
time
*Sub-graph centric – sub-graph compute time
depend on size of the sub-graph (# edges, #
vertices)
*Out performs vertex centric for sparse graphs
with large diameter

Mais conteúdo relacionado

Mais procurados

Part 8 : TCP and Congestion control
Part 8 : TCP and Congestion controlPart 8 : TCP and Congestion control
Part 8 : TCP and Congestion controlOlivier Bonaventure
 
Tower of Hanoi using AI technique - means ends analysis
Tower of Hanoi using AI technique - means ends analysisTower of Hanoi using AI technique - means ends analysis
Tower of Hanoi using AI technique - means ends analysisShubham Nimiwal
 
Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Muhammad Umar Farooq
 
Memory manament in C
Memory manament in CMemory manament in C
Memory manament in CVu Dang Ngoc
 
Collision prevention on computer architecture
Collision prevention on computer architectureCollision prevention on computer architecture
Collision prevention on computer architectureSarvesh Verma
 

Mais procurados (6)

Part 8 : TCP and Congestion control
Part 8 : TCP and Congestion controlPart 8 : TCP and Congestion control
Part 8 : TCP and Congestion control
 
Tower of Hanoi using AI technique - means ends analysis
Tower of Hanoi using AI technique - means ends analysisTower of Hanoi using AI technique - means ends analysis
Tower of Hanoi using AI technique - means ends analysis
 
Assembly language (addition and subtraction)
Assembly language (addition and subtraction)Assembly language (addition and subtraction)
Assembly language (addition and subtraction)
 
Memory manament in C
Memory manament in CMemory manament in C
Memory manament in C
 
Collision prevention on computer architecture
Collision prevention on computer architectureCollision prevention on computer architecture
Collision prevention on computer architecture
 
Ch06
Ch06Ch06
Ch06
 

Destaque

GoFFish - A Sub-graph centric framework for large scale graph analytics
GoFFish - A Sub-graph centric framework for large scale graph analyticsGoFFish - A Sub-graph centric framework for large scale graph analytics
GoFFish - A Sub-graph centric framework for large scale graph analyticscharithwiki
 
Three-dimensional video
Three-dimensional videoThree-dimensional video
Three-dimensional videoMarco Cagnazzo
 
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PC
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PCVENUS: Vertex-Centric Streamlined Graph Computation on a Single PC
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PCQin Liu
 
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)The Innovative Service Platform for Small and Medium Manufacturing Company (中文)
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)Hatio, Lab.
 
Unbounded bounded-data-strangeloop-2016-monal-daxini
Unbounded bounded-data-strangeloop-2016-monal-daxiniUnbounded bounded-data-strangeloop-2016-monal-daxini
Unbounded bounded-data-strangeloop-2016-monal-daxiniMonal Daxini
 
Dongwon Kim – A Comparative Performance Evaluation of Flink
Dongwon Kim – A Comparative Performance Evaluation of FlinkDongwon Kim – A Comparative Performance Evaluation of Flink
Dongwon Kim – A Comparative Performance Evaluation of FlinkFlink Forward
 
The Future Of Work & The Work Of The Future
The Future Of Work & The Work Of The FutureThe Future Of Work & The Work Of The Future
The Future Of Work & The Work Of The FutureArturo Pelayo
 

Destaque (7)

GoFFish - A Sub-graph centric framework for large scale graph analytics
GoFFish - A Sub-graph centric framework for large scale graph analyticsGoFFish - A Sub-graph centric framework for large scale graph analytics
GoFFish - A Sub-graph centric framework for large scale graph analytics
 
Three-dimensional video
Three-dimensional videoThree-dimensional video
Three-dimensional video
 
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PC
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PCVENUS: Vertex-Centric Streamlined Graph Computation on a Single PC
VENUS: Vertex-Centric Streamlined Graph Computation on a Single PC
 
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)The Innovative Service Platform for Small and Medium Manufacturing Company (中文)
The Innovative Service Platform for Small and Medium Manufacturing Company (中文)
 
Unbounded bounded-data-strangeloop-2016-monal-daxini
Unbounded bounded-data-strangeloop-2016-monal-daxiniUnbounded bounded-data-strangeloop-2016-monal-daxini
Unbounded bounded-data-strangeloop-2016-monal-daxini
 
Dongwon Kim – A Comparative Performance Evaluation of Flink
Dongwon Kim – A Comparative Performance Evaluation of FlinkDongwon Kim – A Comparative Performance Evaluation of Flink
Dongwon Kim – A Comparative Performance Evaluation of Flink
 
The Future Of Work & The Work Of The Future
The Future Of Work & The Work Of The FutureThe Future Of Work & The Work Of The Future
The Future Of Work & The Work Of The Future
 

Semelhante a Sub-Graph Centric Single Source Shortest Path

Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptxhariprasad279825
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layersambhenilesh
 
Introduction to Computer Networks
Introduction to Computer NetworksIntroduction to Computer Networks
Introduction to Computer NetworksVenkatesh Iyer
 
Link Prediction in the Real World
Link Prediction in the Real WorldLink Prediction in the Real World
Link Prediction in the Real WorldBalaji Ganesan
 
routing algorithm
routing algorithmrouting algorithm
routing algorithmAnusuaBasu
 
Please fill in the code to run the program based on the following in.pdf
Please fill in the code to run the program based on the following in.pdfPlease fill in the code to run the program based on the following in.pdf
Please fill in the code to run the program based on the following in.pdfamarnathmahajansport
 
E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks shimaa Kotb Saif
 
i have written ths code as per your requirements with clear comments.pdf
i have written ths code as per your requirements with clear comments.pdfi have written ths code as per your requirements with clear comments.pdf
i have written ths code as per your requirements with clear comments.pdfanandf0099
 
Shortest Path Problem.docx
Shortest Path Problem.docxShortest Path Problem.docx
Shortest Path Problem.docxSeethaDinesh
 
Chapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7thChapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7thAndy Juan Sarango Veliz
 

Semelhante a Sub-Graph Centric Single Source Shortest Path (20)

Module 3- transport_layer .pptx
Module 3- transport_layer           .pptxModule 3- transport_layer           .pptx
Module 3- transport_layer .pptx
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Lecture set 5
Lecture set 5Lecture set 5
Lecture set 5
 
Routing Algorithm
Routing AlgorithmRouting Algorithm
Routing Algorithm
 
5.2_video_slides.pptx
5.2_video_slides.pptx5.2_video_slides.pptx
5.2_video_slides.pptx
 
Week13 lec2
Week13 lec2Week13 lec2
Week13 lec2
 
Introduction to Computer Networks
Introduction to Computer NetworksIntroduction to Computer Networks
Introduction to Computer Networks
 
Bellmanford
BellmanfordBellmanford
Bellmanford
 
P5 - Routing Protocols
P5 - Routing ProtocolsP5 - Routing Protocols
P5 - Routing Protocols
 
Link Prediction in the Real World
Link Prediction in the Real WorldLink Prediction in the Real World
Link Prediction in the Real World
 
Cnetwork
CnetworkCnetwork
Cnetwork
 
Dijkstra.ppt
Dijkstra.pptDijkstra.ppt
Dijkstra.ppt
 
Dijesktra 1.ppt
Dijesktra 1.pptDijesktra 1.ppt
Dijesktra 1.ppt
 
DIJKSTRA_123.pptx
DIJKSTRA_123.pptxDIJKSTRA_123.pptx
DIJKSTRA_123.pptx
 
routing algorithm
routing algorithmrouting algorithm
routing algorithm
 
Please fill in the code to run the program based on the following in.pdf
Please fill in the code to run the program based on the following in.pdfPlease fill in the code to run the program based on the following in.pdf
Please fill in the code to run the program based on the following in.pdf
 
E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks
 
i have written ths code as per your requirements with clear comments.pdf
i have written ths code as per your requirements with clear comments.pdfi have written ths code as per your requirements with clear comments.pdf
i have written ths code as per your requirements with clear comments.pdf
 
Shortest Path Problem.docx
Shortest Path Problem.docxShortest Path Problem.docx
Shortest Path Problem.docx
 
Chapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7thChapter 5 - Computer Networking a top-down Approach 7th
Chapter 5 - Computer Networking a top-down Approach 7th
 

Último

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 

Último (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

Sub-Graph Centric Single Source Shortest Path

  • 1. *
  • 2. * *Vertex centric SSSP *Sub-graph Centric SSSP *Performance improvements
  • 3. * A C D B F G E H1 1 4 3 1 2 2 2 1 2 1 Source : A A B C D E F G H 0 INF INF INF INF INF INF INF 0 3 1 4 INF INF INF INF 0 3 1 2 4 3 INF INF 0 3 1 2 4 3 5 5 1 Assume no –ve edges
  • 4. s d v At each superstep… … vertex receives messages which contain the current known shortest path through a neighbor d0 d1 d s d t ws wt if min(d0,d1) < dv, it sends messages to its neighbors and updates its new minimum distance from s else, it votes to halt d0 + ws d0 + wt After execution, each vertex’s value is its minimum distance from s
  • 5. * *Computation time bounded by number of super steps take for computation * super step time * After ith super-step all vertices whose shortest path consist of i-1 number of edges will get the final value. *Let d be the longest shortest path in the graph (assume unit edge weights) *Number of super-steps = O(d) A C D B F G E H1 1 4 3 1 2 2 2 1 2 1
  • 6. * *Partition graph into set of connected components – sub-graphs *Terms : *Sub-graph : Partition *Remote vertex : Let v in SGj and let  edge (u,v) s.t. v in SGi. Then for SGi vertex v is a remote vertex. *Remote edge : (u,v) s.t. u in SGi v in SGj and SGi≠ SGj SG1 SG2 SG3
  • 8. At each super-step… • Each neighbor vertex in sub-graph with incoming edges will receives messages which contain the current known shortest path through a neighbor • Set that value as the vertex value if its less than current value • Add that vertex in open set (V-S) with the new value • Run Iterative section of Dijkstras locally and calculate new Shortest paths. • Sent new shortest path though this sub- graph to its remote vertices d0 d1 d0 d1 Input edge Input edge output edge output edge S V-S
  • 9. * *Assume sub-graph is a vertex s d v At each superstep… … • Vertex receives messages which contain the current known shortest path through a neighbor • Vertex sends its current known shortest path through it to its neighbors if they have changed d0 d1 d s d t ws wt d0 + ws d0 + wt
  • 10. * d0 d1 Input edge Input edge output edge output edge S V-S • Set incoming values as the vertex value if its less than current value • Add that vertex in open set (V-S) with the new value • Run Iterative section of Dijkstras locally and calculate new Shortest paths (Same as assuming virtual source and running Dijkstras) • Sent new shortest path though this sub- graph to its remote vertices if changed • Vertex receives messages which contain the current known shortest path through a neighbor • Vertex sends its current known shortest path through it to its neighbors if they have changed Virtual source *Assume sub-graph is a vertex
  • 11. * *Computation time bounded by number of super steps take for computation * super step time *Super-step time for super step i= O(e*log(v)) (e ,v = edges and vertices of largest updating sub-graph at super-step i) * After ith super-step all sub-graphs whose vertices shortest path consist of i-1 number of remote edges will get the final value. *Let d be the longest shortest path in the graph where sub- graphs are vertices (assuming unit edge weights) *Number of super-steps = O(d)
  • 12. * 0 200 400 600 800 1000 1200 1400 RN - CA TR LJ Giraph GoFFish Runtime comparison • RN-CA: Road network • TR : Trace route map • LJ : Live Journal graph
  • 13. * *Run time = # super-steps x super-step time *Vertex centric – negligible vertex compute time *Sub-graph centric – sub-graph compute time depend on size of the sub-graph (# edges, # vertices) *Out performs vertex centric for sparse graphs with large diameter

Notas do Editor

  1. Re-cap : At each iteration