1 / 16

Team Vertex

Team Vertex. Jimmy Fifield Nick Marino. Graph Coloring. What is the minimum number of colors needed to color every vertex so that no neighboring vertexes are the same color? NP-Complete problem. Brute force is extremely inefficient as number of colorings increases factorially .

adanne
Download Presentation

Team Vertex

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Team Vertex Jimmy Fifield Nick Marino

  2. Graph Coloring • What is the minimum number of colors needed to color every vertex so that no neighboring vertexes are the same color? • NP-Complete problem. • Brute force is extremely inefficient as number of colorings increases factorially.

  3. Deletion-Contraction Algorithm • Recursive. • X(G) = min{ X(G + uv), X(G / uv) } • u and v cannot be adjacent vertices.

  4. Sequential Program • Graph.java • GraphInputReader.java • ColoringCore.java • ColoringCoreSeq.java • ColoringCoreMain.java • ColoringSeq.java

  5. Graph • Represents a simple graph composed of vertices and edges. • Abstracts away the data structure implementation details, • Provides a way to perform simple operations on the graph (adding/deleting an edge, contracting two vertices,etc).

  6. GraphInputReader • This class takes an input file name in the constructor, and then provides a method to read the file, parse the contents, and create a new Graph object based on the results.

  7. ColoringCore • Interface • Provides the specifications for a graph coloring solver. • There's a single method - run - that takes a Graph as input and returns the chromatic number of that graph.

  8. ColoringCoreSeq • Provides a sequential implementation of the deletion-contraction algorithm.

  9. ColoringMain • This class takes the command line arguments and a ColoringCoreobject. • Input. • Timing measurements. • Utilizes the ColoringCore to calculate the answer.

  10. ColoringSeq • Creates a new sequential core. • Starts the main program.

  11. Parallel Program • Graph.java • GraphInputReader.java • ColoringCore.java • ColoringCoreSMP.java • ColoringCoreMain.java • ColoringSMP.java

  12. ColoringCoreSMP

  13. ColoringSMP

  14. Performance Metrics

  15. What We Learned

  16. Future Work

More Related