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

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
[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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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
 

Recently uploaded (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
[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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
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
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 

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