7 - Constraint Satisfaction Problems Flashcards
(5 cards)
What is a Constraint Satisfaction Problem (CSP)?
A problem, that requires a value, selected from a given finite domain, to be assigned to each variable in the problem, so that all constraints relating the variables are satisfied
How do we formulate a CSP?
Initial state- empty assignment: all variables are unassigned.
Successor function - assigns value to an unassigned variable that does not conflict with previously assigned variables
Goal test - complete current assignment
Path cost - constant cost per step
What is a Backtracking search?
Backtracking is a problem-solving algorithmic technique that involves finding a solution incrementally by trying different options and undoing them if they lead to a dead end.
To improve this method, we can ask ourselves: Which variable should be assigned next?In what order should its values be tried? *Can we detect inevitable failure early?
What is Constraint propagation?
Forward checking propagates information from assigned to unassigned variables, but doesn’t provide early detection for all failures
Arc consistency
Simplest form of propagation makes each pair of variables consistent: X →Yis consistent ifffor everyvalue of X there is someallowed value of Y