Giter VIP home page Giter VIP logo

3-color's Introduction

3-COLOR

Problem Description

A proper graph-colouring is the assignment of colors to the vertices of a graph under the condition that no adjacent vertices joined by an edge have the same color. More formally, An n-node undirected graph G(V,E) with node set V and edge set E, an assignment of a color ϕv, ϕv ≠ ϕw for every (v,w) ∈ E. A graph colouring that properly uses k colors is called k-colouring. The k-colouring decision problem asks, for each graph, G, is G k-colourable. Call this problem k-COLOR. In this project, an NP-Complete Graph Colouring problem 3-COLOR will be examined, therefore our problem can be expressed as follows:

  • On an n-node undirected graph G(V,E) with node set V and edge set E, can each node of G(V,E) be assigned exactly one of three colors Red, Blue, Green - in such a way that no two nodes which are joined by an edge, are assigned the same color?

Algorithm

There is not an exact algorithm that solves 3-COL problem in polynomial time but there are some heuristics such as greedy coloring algorithm and a more efficient one 3-coloring in time O(1.3446n) algorithm by Richard Beigel and David Eppstein.

In this project, we covered and analyzed the performance of the greedy approach to 3-COL problem.

For our analysis, please see the Project Report.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.