ConstraintSatisfactionProbleme
Constraint satisfaction problems (CSPs) are a framework for solving combinatorial problems. A CSP consists of a set of variables, each with a finite domain of possible values, and a set of constraints that specify allowable combinations of values for subsets of variables. The goal is to assign a value to every variable such that all constraints are satisfied.
Formally, a CSP is described by a triple (V, D, C). V = {v1, ..., vn} is a set
Common examples include map coloring, where adjacent regions must have different colors; Sudoku, where each row,
Solving CSPs typically involves search and inference. Backtracking search systematically explores assignments, while constraint propagation reduces
The general problem is NP-complete, but many practical CSPs have structure (e.g., tree-like constraint graphs) that