Skip to content

I have added Sudoku puzzle solver in python language with the AC3 and Backtracking algorithm to master the Artificial Intelligence skills

Notifications You must be signed in to change notification settings

ifrazaib/Sudduko-Puzzle--CSP--Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudduko Puzzle (CSP) Problem

sudduko menue sudduko

Overview

The Sudoku Solver project aims to solve Sudoku puzzles of varying difficulty levels using the AC-3 (Arc Consistency) algorithm and the Backtracking algorithm. This project includes implementations for solving easy, medium, and hard Sudoku puzzles.

Features

  • Sudoku Puzzle Representation: 9x9 grid representation of Sudoku puzzles.
  • AC-3 Algorithm: Enforces arc consistency to reduce the search space before applying the backtracking algorithm.
  • Backtracking Algorithm: A depth-first search algorithm to find the solution by exploring possible assignments and backtracking when a conflict is found.
  • Puzzle Difficulties: Includes easy, medium, and hard Sudoku puzzles with pre-defined boards.

Contents

  • AC-3 Algorithm
  • Backtracking Algorithm

AC-3 Algorithm

The AC-3 algorithm (Arc Consistency Algorithm #3) is used to simplify the problem by enforcing arc consistency. It systematically removes values from the domains of variables that cannot satisfy the constraints with their neighbors, reducing the problem space for the backtracking algorithm.

Backtracking Algorithm

The backtracking algorithm is a recursive depth-first search algorithm. It attempts to build a solution incrementally by assigning values to variables and backtracking whenever an inconsistency is detected.

About

I have added Sudoku puzzle solver in python language with the AC3 and Backtracking algorithm to master the Artificial Intelligence skills

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages