Skip to content

nitusharaff/Constraint-Satisfaction-Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Constraint-Satisfaction-Problem

The assignment problem relates to the understanding of the Constraint Satisfaction Problem in the field of Artificial Intelligence. The solution uses Backtracking with heuristics to make the code faster and better.

The heuristics include:

  1. Minimum Remaining Values
  2. Least Constrainig Values
  3. Forward Checking (AC3)

All these heuristics make the solution faster for large inputs.

PROBLEM STATEMENT

Alt text

CONSTRAINTS GIVEN

Alt text

AN EXAMPLE

Alt text

SOLUTION

Alt text

INPUT FILE FORMAT

Alt text

OUTPUT FILE FORMAT

Alt text

FILES

csp.py- The backtracking algorithm with heuristics
hw2.pdf - The assignment problem