practical multi threaded graph coloring algorithms for
play

Practical Multi-threaded Graph Coloring Algorithms for Shared Memory - PowerPoint PPT Presentation

Practical Multi-threaded Graph Coloring Algorithms for Shared Memory Architecture Nandini Singhal Sathya Peri Subrahmanyam Kalyanasundaram Department of Computer Science & Engineering Indian Institute of Technology Hyderabad ICDCN AADDA


  1. Practical Multi-threaded Graph Coloring Algorithms for Shared Memory Architecture Nandini Singhal Sathya Peri Subrahmanyam Kalyanasundaram Department of Computer Science & Engineering Indian Institute of Technology Hyderabad ICDCN AADDA 2017

  2. Outline of the Presentation Brief Introduction 1 Related Work 2 Proposed Methodology 3 Simulation Results 4 Conclusion & Future Work 5

  3. Outline of the Presentation Brief Introduction 1 Related Work 2 Proposed Methodology 3 Simulation Results 4 Conclusion & Future Work 5

  4. Brief Introduction How do you parallelise an algorithm? Decomposing an Algorithm into independent tasks Distributing the parts as tasks which are worked on by multiple processes simultaneously Coordinating work and communications of those processes i.e. called as Synchronization Here, synchronization is being achieved on Shared Memory Model Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 4/33

  5. Brief Introduction How do you parallelise an algorithm? Decomposing an Algorithm into independent tasks Distributing the parts as tasks which are worked on by multiple processes simultaneously Coordinating work and communications of those processes i.e. called as Synchronization Here, synchronization is being achieved on Shared Memory Model Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 4/33

  6. Brief Introduction Parallelising Graph Coloring Algorithm Problem Statement Given a simple graph G = ( V, E ) . Assign colors to the vertices of the graph such that no two adjacent vertices are assigned the same color. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 5/33

  7. Outline Brief Introduction 1 Related Work 2 Proposed Methodology 3 Simulation Results 4 Conclusion & Future Work 5

  8. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  9. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  10. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  11. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  12. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  13. Related Work Algorithm 1 - Jones Plassman Algorithm [SIAM1993] Input: G = ( V, E ) Assign a random priority to each vertex given by ρ ( v ) For each vertex v , vertices with priority less than it are its predecessors 1 vertices with priority greater than it would be its successors 2 Each vertex maintains a count for all its neighbours which are its predecessors A vertex gets colored when its count equals 0 When a vertex gets colored, it informs all its successors which are its neighbours to decrease their count by 1. Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 7/33

  14. Related Work Algorithm 1 - Drawback of Jones Plassman Uses random function for assigning the priorities If the input graph is a chain of vertices and the numbering of vertices correspond to their priorities, then there is no parallelism exhibited by this algorithm Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 8/33

  15. Related Work Algorithm 1 - Drawback of Jones Plassman Uses random function for assigning the priorities If the input graph is a chain of vertices and the numbering of vertices correspond to their priorities, then there is no parallelism exhibited by this algorithm Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 8/33

  16. Related Work Algorithm 2 - Block Partitioning based Algorithm [Gebremedhin2000] Each thread is responsible for proper coloring of vertices in its partition Tentative coloring of vertices 1 Synchronization of all threads Sequential coloring of conflicting vertices Downside - not much parallelism exploited Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 9/33

  17. Related Work Algorithm 2 - Block Partitioning based Algorithm [Gebremedhin2000] Each thread is responsible for proper coloring of vertices in its partition Tentative coloring of vertices 1 Synchronization of all threads Sequential coloring of conflicting vertices Downside - not much parallelism exploited Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 9/33

  18. Related Work Algorithm 2 - Block Partitioning based Algorithm [Gebremedhin2000] Each thread is responsible for proper coloring of vertices in its partition Tentative coloring of vertices 1 Synchronization of all threads Sequential coloring of conflicting vertices Downside - not much parallelism exploited Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 9/33

  19. Related Work Algorithm 2 - Block Partitioning based Algorithm [Gebremedhin2000] Each thread is responsible for proper coloring of vertices in its partition Tentative coloring of vertices 1 Synchronization of all threads Sequential coloring of conflicting vertices Downside - not much parallelism exploited Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 9/33

  20. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

  21. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

  22. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

  23. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

  24. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

  25. Related Work Algorithm 3 - Iterative Distributed Algorithm [GebremedhinEuroPar2005] Practical Multi-threaded Graph Coloring Algorithm AADDA 2017 January 4, 2017 10/33

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend