Constraint Satisfaction Problem Flashcards

1
Q

What is a constraint satisfaction problem?

A

A set of variables each with a domain of possible values, and a set of constraints that specify allowable combinations of values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is cryptarithmetic?

A

A mathematical game consisting of a mathematical equation among unknown numbers, whose digits are represented by letters of the alphabet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is backtracking search?

A

Works by assigning values to variables one by one, in different combinations. Whenever a constraint is violated, we go back tot he most recently assigned variable. It is a depth first search kind of algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the properties of backtracking search?

A

If there are n variables, every solution will occur at depth n.
Variable assignments are commutative.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is minimum remaining values?

A

Choose the variable with the fewest legal values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is degree heuristic?

A

A tie-breaker among MRV variables, chooses the variable with the most constraints on remaining variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the least constraining value?

A

The variable that rules out the fewest values int he remaining variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is forward checking?

A

Keep track of remaining legal values for unassigned variables and terminate search when any variable has no legal values - prune off that part of the tree and backtrack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is constraint propagation?

A

Simplest form of propogation makes each arc consistent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is arc consistency?

A

Arc consistency detects failure earlier than forward checking. Can be run as a preprocessor after each assignment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is variable elimination?

A

If there is only one variable, return the intersection of its unary constraints. Otherwise
- select a variable X
- Join the constraints in which X appears
- Project R1 onto its variables other than X, forming R2
- Replace all of the constraints in which X appears by R2
- Recursively solve the simplified problem, forming R3
- Return R1 joined with R3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly