CSP Flashcards

1
Q

what are 3 varieties of constraints?

A
  1. unary constraint - single variable constraint e.g. a != green
  2. binary constraint - pairs of variables are constrained e.g. a != b
  3. higher order constraint - 3 or more variables constrained
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the standard search procedure for CSP?

A

incremental search by

  1. initial state
  2. successor function: assign value to unassigned variables that does not conflict with current assignments (no legal assignment = fail)
  3. goal: all assignments complete
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

in what aspect is every solution equal in in CSP solving?

A

every solution in CSP appears at depth n with n variables

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

what are 4 heuristics in CSP?

A

CSP heuristics:
1. minimum remaining values heuristic (MRV)
> choose variable with fewest legal values
2. (name?)
> given a variable, choose least constraining value
> rules out fewest values in remaining variables
3. forward checking
> keep track of remaining legal values for unassigned variables
> terminate search whyn any variable has no legal values
4. constraint propagation
> arc consistency/path consistency/k-consistency

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

arc consistency: when is X-Y arc consistent?

A

X-Y is consistent iff for every value x of X there is some allowed y

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

what is an advantage of arc consistency over forward checking?

A

detects failure earlier

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

when is a csp said to be locally consistent?

A

A CSP is said to be locally consistent ifff for particular subsets of the variables it is possible to extend satisying assignments to the variables in the subset to a larger set

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

when is a CSP called arc consistent?

A

A CSP is called arc consistent iff a satisfying assignment to one variable can be extended to a satisfying assignment of two variables

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

does arc concistency constrain the set of solutions?

A

no, enforcing arc consistency does not change the set of solutions

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

when is a CSP called path consistent`?

A

a CSP is called path consistent if any consistent assignment to two variables can be extendet to a third one
> solution invariant as well

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

how do PC and AC relate to each other?

A
  1. PC subsumes AC - if a CSP is PC it is AC as well

2. PC is stronger than AC - there exist a CSP that is AC but not PC

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

AC removes what?

PC removes what?

A

AC removes incompatible values from domains

PC removes incompatible pairs of values

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

when is a CSP called k-consistent?

A

a CSP is called k-consistent if for each satisfying value assignment to k-1 variables there exists an extension of this assignment to a kth variable such that this extended assignment satisfies all constraints among these k variables

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

when is a CSP strongly k-consistent?

computation cost?

A

a CSP is called strongly k-consistent iff it is j-consistent for all j <= k
> computation kosts grow exponentially with k

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

if a CSP of size n is strongly n-consistent, then…? (3)

A
  1. a solution can be constructed in polynomial time
  2. its constraints are minimal
  3. it has a solution iff there is no empty constraint
How well did you know this?
1
Not at all
2
3
4
5
Perfectly