CSP (Constraint satisfaction problem) Flashcards

1
Q

What is the difference between imperative and declarative solutions to problems?

A

Imperative: Explicitly describes how to compute a solution.

Declarative: Specifies what constraints a solution must satisfy.

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

In a constraint graph, what does the nodes and edges represent?

A

Nodes: Variables.

Edges: Constraints.

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

How does forward checking work?

A

Works by keeping track of remaining legal values for unassigned variables.

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

What is the weakness forward checking?

A

It doesn’t provide early detection for all failures.

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

What is an unary constraint?

A

A rule that applies to a single variable.

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

What is the purpose of node consistency?

A

Ensuring each variable satisfies its unary constraints

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

What is the requirement X and Y to be arc consistent?

A

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

(Detect errors earlier than forward checking)

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

What is the point of path consistency?

A

Ensuring if two variables satisfy a constraint, a third variable can still take a consistent value.

Rarely used since expensive to run.

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

What is the point of using a minimum-remaining values heuristic?

A

Quickly reducing the search space.

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

What is a degree heuristic, and what is the point of using it?

A

Picks the variable affecting most constraints.

Point: Prunes a lot of the search tree

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