Giter Site home page Giter Site logo

mostaashour / sudoko-solver-with-python Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 234 KB

Solving Sudoku Puzzles using Python in 3 Different Approaches.

License: Apache License 2.0

Jupyter Notebook 93.20% Python 6.80%
backtracking-algorithm naked-pairs naked-twins python sudoku sudoku-solver

sudoko-solver-with-python's Introduction

Sudoku Puzzles Solver using Python (Analysis 3 Different Approaches!)

Introduction

Welcome to my humble Python Notebook! In this notebook, we will explore the fascinating world of Sudoku.

What is Sudoku?

  • Sudoku is a popular logic-based puzzle that has captivated puzzle enthusiasts worldwide. It involves a 9x9 grid, divided into nine 3x3 sub-grids, and the objective is to fill in the grid with digits from 1 to 9 in such a way that each column, each row, and each sub-grid contains all the numbers from 1 to 9 without any repetition.
  • Sudoku puzzles generally start with some of the cells already filled in, and the solver's task is to complete the remaining cells following the game's rules.
  • The puzzles vary in difficulty, some relatively straightforward and others requiring advanced problem-solving techniques.

In this notebook, we will compare and analyze multiple Sudoku solver implementations using Python. We will explore different approaches and algorithms to tackle Sudoku puzzles of varying complexity. The main goal of this notebook is to compare different approaches and techniques in solving Sudoku. So let's dive in and embark on our Sudoku-solving adventure!

We're going to compare three different approaches, all of which guarantee 100% accuracy in solving Sudoku puzzles:

  1. Backtracking Algorithm

  1. Naked Twin Approach (My implementation 1)
  2. Naked Twin Approach (Online implementation 2)

image image

Check the notebook for full documentation and code Here!
Kaggle link: Here

Note: If you find the notebook useful, please give an upvote.

Contacts:

I would be delighted to connect with you! Please feel free to reach out to me via LinkedIn or email for any inquiries or discussions.

For now, take care everyone, and may your journey be filled with success as you pursue your dreams and reach for the stars! ๐Ÿ™๐ŸŒน
Peace. ๐Ÿ‘‹

sudoko-solver-with-python's People

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.