Coder Social home page Coder Social logo

parallel-sudoku-solver's Introduction

Sudoku Solver

Description

This is project consists of two implementations of a sudoku solver, one uses only the CPU wheras the other uses both the CPU and the GPU.

Time difference

The CPU version takes around 25 seconds whereas the parallel version takes around 4 seconds, to solve 16 of the hardest puzzles collected from this dataset.

Algorithm and implementation

The algorithm used for the solver is Breadth First Search (BFS), in which new possible grids are generated and stored based on the initial grid. Each existing grid is assigned a thread, which adds the new grids generated by that grid to the list of new grids. The challenge in this implementation is efficiently storing the new grids in a data structure asynchronously. To solve this, the exclusive scan (prefix sum) method is used to determine the start positions for insertion of the new grids for the current grid. Overall, this project demonstrates the benefits of utilizing both the CPU and GPU in parallel processing for solving sudoku puzzles in a more efficient manner.

parallel-sudoku-solver's People

Contributors

dipps18 avatar ekatwikz avatar

Watchers

 avatar

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.