SlideShare una empresa de 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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

Similar 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
 

Similar 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

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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Último (20)

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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

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 del editor

  1. Re-cap : At each iteration