GithubHelp home page GithubHelp logo

sdasgup3 / parallel-sudoku Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 6.0 15.75 MB

Parallel Sudoku Implementation using Charm++

TeX 8.47% Makefile 7.18% C 70.31% C++ 10.56% Shell 2.52% Python 0.96%
graph-coloring sudoku-solver charmplusplus graph-algorithms loadbalancing state-space-search processor domain-decomposition vertices constraints

parallel-sudoku's Introduction

Parallel Graph Coloring

The graph coloring problem deals with assigning each vertex of the graph with a color such that the adjacent vertices have distinct colors. Many applications have been shown to be reducible to the graph coloring problem. Some of these include 1) register allocation in the back-end of a complier, and 2) scheduling of multiple tasks to resources under various constraints. Graph coloring is computationally hard. It is NP-complete to determine if a given graph admits k-coloring (except for k=1 or k=2).

State space search is a technique where successive configurations (a.k.a states) are explored until the state with desired property is found. The different states form a tree where child nodes are produced from the parent node by changing some part of the parent state. In typical problems, exploring the entire state space graph is impractical due to execution time and memory constraints. Application of heuristics has been shown to be effective in pruning the search space.

Large-scale systems with distributed memory are a natural fit to solving the computationally complex graph coloring problem. There are two main parallelization strategies, namely domain decomposition and state space exploration. In domain decomposition, the graph is divided into sub-graphs, and each of these is assigned to a processor. The sub-graph is colored locally at each processor. The algorithm operates in time-steps, where at the end of each time-step, the processors exchange coloring information with each other to resolve the conflicts for the vertices on the sub-graph boundaries. State space exploration takes a different approach to dividing work between processors. A state in the state space tree is a partially colored input graph, and child states are produced from parent states by coloring one of the uncolored vertices. A solution is found if one of the leaves if a legitimately colored input graph. Each processor is responsible for exploration of a part of the state space tree.

ParallelSudoku (An application of graph coloring)

https://fenix.tecnico.ulisboa.pt/downloadFile/3779576294079/projSudoku.pdf http://www.andrew.cmu.edu/user/hmhuang/project_template/finalreport.html http://alitarhini.wordpress.com/2011/04/06/parallel-depth-first-sudoku-solver-algorithm/

parallel-sudoku's People

Contributors

mjyan0720 avatar sdasgup3 avatar tgangwani avatar vallejo314 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tgangwani

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.