Question: Create a KakuroCSP solver using python with the Requirements: Code (separate functions must be implemented for each one) CSP formulation Backtracking search Forward Checking AC3

Create a KakuroCSP solver using python with the Requirements:

Code (separate functions must be implemented for each one) CSP formulation Backtracking search Forward Checking AC3 (for the initial check) MAC (Maintaining Arc Consistency) Node consistency MRV (Minimum Remaining Values) LCV (Least Constraining Value)

Provide the complete code and explain how to run the code, please.

Input: The input is the name of a text file in the following format: FC=false AC3=false MAC=false NC=false MRV=false, LCV=false rows=5 columns=5 #,#,#,#,# #,0,0,#,# #,0,0,0,0 #,0,0,0,0 #,#,#,0,0 Constraints (row,column,sum,direction) 1,2,24,v 1,3,21,v 2,1,17,h 2,4,23,v 2,5,24,v 3,1,30,h 4,1,29,h 5,3,16,h

Output: The output is a text file containing the solved puzzle in the following format (the zeros in the input are replaced with the numbers): #,#,#,#,# #,8,9,#,# #,9,7,6,8 #,7,5,8,9 #,#,#,9,7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!