SlideShare a Scribd company logo
1 of 26
Download to read offline
Giraph : Travelling Salesman Problem



                       0               1               2              3




           23         23                              24              24

      30

                10

           12          12                             32              32

  1




           33          33                             31              31


On the left, we will show the original graph, to know how to process each step
Giraph : Travelling Salesman Problem



                     0               1              2     3




         23         23                             24     24

    30

              10

         12          12                             32    32

1




         33          33                             31    31


                           Superstep 0 begins
Giraph : Travelling Salesman Problem



                     0               1              2              3




         23         23                             24              24

    30

              10

         12          12                             32             32

1




         33          33                             31             31


Superstep 0 : we compute vertex n°1, nothing to do, it is not the source
Giraph : Travelling Salesman Problem



                           0               1              2          3




         23               23                             24          24

    30

              10

         12                12                             32         32

1




         33                33                             31         31


                   Superstep 0 : we compute vertex n°2, the source
Giraph : Travelling Salesman Problem



 Superstep :          0               1               2              3




          23         23                              24              24

     30                     2,12+30

               10

          12          12                             32              32

 1
                             2,12+1



          33          33                             31              31


The source sends all the possible paths and their values to the others nodes
Giraph : Travelling Salesman Problem



                     0                 1                 2    3




         23         23                                   24   24

    30                       2,12+30

              10

         12          12                                  32   32

1
                              2,12+1



         33          33                                  31   31


                         The source then votes to halt
Giraph : Travelling Salesman Problem



                       0               1              2              3




           23         23                             24             24

      30                     2,12+30

                10

           12          12                             32            32

  1
                              2,12+1



           33          33                             31            31


Superstep 0 : we compute vertex n°3, nothing happens as it is not the source
Giraph : Travelling Salesman Problem



                     0               1              2     3




         23         23               23            24     24

    30                     2,12+30

              10

         12          12              12             32    32

1
                            2,12+1



         33          33              33             31    31


                           Superstep 1 begins
Giraph : Travelling Salesman Problem



                      0              1              2     3




         23          23              23            24     24

    30                     2,12+30
              10

         12          12              12             32    32

1
                            2,12+1



         33          33              33             31    31


                   Superstep 1 : we compute vertex n°1
Giraph : Travelling Salesman Problem



                      0              1                     2   3




         23          23              23                24      24

    30                     2,12+30
              10

         12          12              12                32      32

1
                            2,12+1           21,42+10+23



         33          33              33                31      31


                   Superstep 1 : we compute vertex n°1
Giraph : Travelling Salesman Problem



                      0              1                     2   3




         23          23              23                24      24

    30                     2,12+30

              10

         12          12              12                32      32

1
                            2,12+1           21,42+10+23



         33          33              33                31      31


                   Superstep 1 : we compute vertex n°3
Giraph : Travelling Salesman Problem



                      0              1                     2   3




         23          23              23                24      24

    30                     2,12+30           23,13+10+33
              10

         12          12              12                32      32

1
                            2,12+1           21,42+10+23



         33          33              33                31      31


                   Superstep 1 : we compute vertex n°3
Giraph : Travelling Salesman Problem



                     0               1                     2   3




         23         23               23                23      24

    30                     2,12+30           23,13+10+33
              10

         12          12              12                12      32

1
                            2,12+1           21,42+10+23



         33          33              33                33      31


                           Superstep 2 begins
Giraph : Travelling Salesman Problem



                      0              1                     2   3




         23          23              23                23      24

    30                     2,12+30           23,13+10+33
              10

         12          12              12                12      32

1
                            2,12+1           21,42+10+23



         33          33              33                33      31


                   Superstep 2 : we compute vertex n°1
Giraph : Travelling Salesman Problem



                      0              1                     2                      3




         23          23              23                23                         24

    30                     2,12+30           23,13+10+33       231,56+30+23=109
              10

         12          12              12                12                         32

1
                            2,12+1           21,42+10+23



         33          33              33                33                         31


                   Superstep 2 : we compute vertex n°1
Giraph : Travelling Salesman Problem



                      0              1                     2                      3




         23          23              23                23                         24

    30                     2,12+30           23,13+10+33       231,56+30+23=109
              10

         12          12              12                12                         32

1
                            2,12+1           21,42+10+23



         33          33              33                33                         31


                   Superstep 2 : we compute vertex n°3
Giraph : Travelling Salesman Problem



                      0              1                     2                       3




         23          23              23                23                          24

    30                     2,12+30           23,13+10+33        231,56+30+23=109
              10

         12          12              12                12                          32

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118



         33          33              33                33                          31


                   Superstep 2 : we compute vertex n°3
Giraph : Travelling Salesman Problem



                     0               1                     2                       3




         23         23               23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109
              10

         12          12              12                12                          12

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


                           Superstep 3 begins
Giraph : Travelling Salesman Problem



                      0              1                     2                       3




         23          23              23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109
              10

         12          12              12                12                          12

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


                   Superstep 3 : we compute vertex n°1
Giraph : Travelling Salesman Problem



                        0               1                     2                       3




         23            23               23                23                          23

    30                        2,12+30           23,13+10+33        231,56+30+23=109
              10

         12            12               12                12                          12

1
                              2,12+1            21,42+10+23
                                                                  213,75+10+33=118


         33            33               33                33                          33


              Superstep 3 : we compute vertex n°1 : votes to Halt
Giraph : Travelling Salesman Problem



                       0               1                     2                       3




           23         23               23                23                          23

      30                     2,12+30           23,13+10+33        231,56+30+23=109
                10

           12          12              12                12                          12

  1
                              2,12+1           21,42+10+23
                                                                 213,75+10+33=118


           33          33              33                33                          33


Superstep 3 : we compute the source, reactivated by the messages received
Giraph : Travelling Salesman Problem



                     0               1                     2                       3




         23         23               23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109

              10

         12          12              12                12                          12

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


The source compares the values received and finds the minimum distance
Giraph : Travelling Salesman Problem



                     0               1                     2                        3




         23         23               23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109

              10

         12          12              12                12                          109

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


                    and sets its value as the minimum
Giraph : Travelling Salesman Problem



                     0               1                     2                        3




         23         23               23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109

              10

         12          12              12                12                          109

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


                      The source then votes to Halt
Giraph : Travelling Salesman Problem



                      0              1                     2                        3




         23          23              23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109

              10

         12          12              12                12                          109

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


                   Superstep 3 : we compute vertex n°3
Giraph : Travelling Salesman Problem



                     0               1                     2                        3




         23         23               23                23                          23

    30                     2,12+30           23,13+10+33        231,56+30+23=109

              10

         12          12              12                12                          109

1
                            2,12+1           21,42+10+23
                                                               213,75+10+33=118


         33          33              33                33                          33


Superstep 3 : we compute vertex n°3 : votes to Halt, ends the process

More Related Content

Viewers also liked

The Travelling Salesman Problem
The Travelling Salesman ProblemThe Travelling Salesman Problem
The Travelling Salesman Problemguest3d82c4
 
Matrix multiplicationdesign
Matrix multiplicationdesignMatrix multiplicationdesign
Matrix multiplicationdesignRespa Peter
 
Matrix mult class-17
Matrix mult class-17Matrix mult class-17
Matrix mult class-17Kumar
 
2-Approximation Vertex Cover
2-Approximation Vertex Cover2-Approximation Vertex Cover
2-Approximation Vertex CoverKowshik Roy
 
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8Nguyễn Công Hoàng
 
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3Giáo trình Phân tích và thiết kế giải thuật - CHAP 3
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3Nguyễn Công Hoàng
 
Exploring Algorithms
Exploring AlgorithmsExploring Algorithms
Exploring AlgorithmsSri Prasanna
 
Greedyalgorithm
Greedyalgorithm Greedyalgorithm
Greedyalgorithm Diksha Lad
 
Greedy Knapsack Problem - by Y Achchuthan
Greedy Knapsack Problem  - by Y AchchuthanGreedy Knapsack Problem  - by Y Achchuthan
Greedy Knapsack Problem - by Y AchchuthanAchchuthan Yogarajah
 
Dynamic Programming - Matrix Chain Multiplication
Dynamic Programming - Matrix Chain MultiplicationDynamic Programming - Matrix Chain Multiplication
Dynamic Programming - Matrix Chain MultiplicationPecha Inc.
 
Introduction to Approximation Algorithms
Introduction to Approximation AlgorithmsIntroduction to Approximation Algorithms
Introduction to Approximation AlgorithmsJhoirene Clemente
 
Dynamic Programming - Part 1
Dynamic Programming - Part 1Dynamic Programming - Part 1
Dynamic Programming - Part 1Amrinder Arora
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Shivank Shah
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplicationRespa Peter
 
Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014Claudio Martella
 

Viewers also liked (20)

The Travelling Salesman Problem
The Travelling Salesman ProblemThe Travelling Salesman Problem
The Travelling Salesman Problem
 
Matrix multiplicationdesign
Matrix multiplicationdesignMatrix multiplicationdesign
Matrix multiplicationdesign
 
Matrix mult class-17
Matrix mult class-17Matrix mult class-17
Matrix mult class-17
 
2-Approximation Vertex Cover
2-Approximation Vertex Cover2-Approximation Vertex Cover
2-Approximation Vertex Cover
 
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
Giáo trình Phân tích và thiết kế giải thuật - CHAP 8
 
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3Giáo trình Phân tích và thiết kế giải thuật - CHAP 3
Giáo trình Phân tích và thiết kế giải thuật - CHAP 3
 
Exploring Algorithms
Exploring AlgorithmsExploring Algorithms
Exploring Algorithms
 
Greedyalgorithm
Greedyalgorithm Greedyalgorithm
Greedyalgorithm
 
Analysis of Algorithm
Analysis of AlgorithmAnalysis of Algorithm
Analysis of Algorithm
 
Greedy Knapsack Problem - by Y Achchuthan
Greedy Knapsack Problem  - by Y AchchuthanGreedy Knapsack Problem  - by Y Achchuthan
Greedy Knapsack Problem - by Y Achchuthan
 
Quicksort
QuicksortQuicksort
Quicksort
 
Travelling salesman problem
Travelling salesman problemTravelling salesman problem
Travelling salesman problem
 
Dynamic Programming - Matrix Chain Multiplication
Dynamic Programming - Matrix Chain MultiplicationDynamic Programming - Matrix Chain Multiplication
Dynamic Programming - Matrix Chain Multiplication
 
Vertex cover Problem
Vertex cover ProblemVertex cover Problem
Vertex cover Problem
 
Introduction to Approximation Algorithms
Introduction to Approximation AlgorithmsIntroduction to Approximation Algorithms
Introduction to Approximation Algorithms
 
Dynamic Programming - Part 1
Dynamic Programming - Part 1Dynamic Programming - Part 1
Dynamic Programming - Part 1
 
Np complete
Np completeNp complete
Np complete
 
Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms Travelling salesman problem using genetic algorithms
Travelling salesman problem using genetic algorithms
 
Matrix chain multiplication
Matrix chain multiplicationMatrix chain multiplication
Matrix chain multiplication
 
Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014Giraph at Hadoop Summit 2014
Giraph at Hadoop Summit 2014
 

Recently uploaded

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Recently uploaded (20)

Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Giraph Travelling Salesman Example

  • 1. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 10 12 12 32 32 1 33 33 31 31 On the left, we will show the original graph, to know how to process each step
  • 2. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 10 12 12 32 32 1 33 33 31 31 Superstep 0 begins
  • 3. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 10 12 12 32 32 1 33 33 31 31 Superstep 0 : we compute vertex n°1, nothing to do, it is not the source
  • 4. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 10 12 12 32 32 1 33 33 31 31 Superstep 0 : we compute vertex n°2, the source
  • 5. Giraph : Travelling Salesman Problem Superstep : 0 1 2 3 23 23 24 24 30 2,12+30 10 12 12 32 32 1 2,12+1 33 33 31 31 The source sends all the possible paths and their values to the others nodes
  • 6. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 2,12+30 10 12 12 32 32 1 2,12+1 33 33 31 31 The source then votes to halt
  • 7. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 24 24 30 2,12+30 10 12 12 32 32 1 2,12+1 33 33 31 31 Superstep 0 : we compute vertex n°3, nothing happens as it is not the source
  • 8. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 24 24 30 2,12+30 10 12 12 12 32 32 1 2,12+1 33 33 33 31 31 Superstep 1 begins
  • 9. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 24 24 30 2,12+30 10 12 12 12 32 32 1 2,12+1 33 33 33 31 31 Superstep 1 : we compute vertex n°1
  • 10. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 24 24 30 2,12+30 10 12 12 12 32 32 1 2,12+1 21,42+10+23 33 33 33 31 31 Superstep 1 : we compute vertex n°1
  • 11. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 24 24 30 2,12+30 10 12 12 12 32 32 1 2,12+1 21,42+10+23 33 33 33 31 31 Superstep 1 : we compute vertex n°3
  • 12. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 24 24 30 2,12+30 23,13+10+33 10 12 12 12 32 32 1 2,12+1 21,42+10+23 33 33 33 31 31 Superstep 1 : we compute vertex n°3
  • 13. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 24 30 2,12+30 23,13+10+33 10 12 12 12 12 32 1 2,12+1 21,42+10+23 33 33 33 33 31 Superstep 2 begins
  • 14. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 24 30 2,12+30 23,13+10+33 10 12 12 12 12 32 1 2,12+1 21,42+10+23 33 33 33 33 31 Superstep 2 : we compute vertex n°1
  • 15. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 24 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 32 1 2,12+1 21,42+10+23 33 33 33 33 31 Superstep 2 : we compute vertex n°1
  • 16. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 24 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 32 1 2,12+1 21,42+10+23 33 33 33 33 31 Superstep 2 : we compute vertex n°3
  • 17. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 24 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 32 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 31 Superstep 2 : we compute vertex n°3
  • 18. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 12 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 begins
  • 19. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 12 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 : we compute vertex n°1
  • 20. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 12 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 : we compute vertex n°1 : votes to Halt
  • 21. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 12 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 : we compute the source, reactivated by the messages received
  • 22. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 12 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 The source compares the values received and finds the minimum distance
  • 23. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 109 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 and sets its value as the minimum
  • 24. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 109 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 The source then votes to Halt
  • 25. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 109 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 : we compute vertex n°3
  • 26. Giraph : Travelling Salesman Problem 0 1 2 3 23 23 23 23 23 30 2,12+30 23,13+10+33 231,56+30+23=109 10 12 12 12 12 109 1 2,12+1 21,42+10+23 213,75+10+33=118 33 33 33 33 33 Superstep 3 : we compute vertex n°3 : votes to Halt, ends the process