7. Constraint Satisfaction Problems Flashcards

1
Q

What is a Constraint Satisfaction Problem (CSP)?

A

A problem where the goal is to find an assignment of values to variables that satisfies all given constraints.

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

Give examples of CSPs.

A

Sudoku, map coloring, job scheduling, N-Queens, crossword puzzles, cryptarithmetic, and transportation scheduling.

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

What defines the state of a CSP?

A

A set of variables with values from a domain and constraints restricting allowable combinations.

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

What are discrete variables in CSPs?

A

Variables with finite or infinite domains, such as Boolean values, colors, or strings for crossword puzzles.

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

What are continuous variables in CSPs?

A

Variables with infinite domains, such as start/end times in scheduling problems.

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

What are the types of constraints in CSPs?

A

Unary (applied to a single variable), binary (between two variables), global (involving multiple variables), and alldiff (ensuring all values are unique).

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

What is the difference between hard and soft constraints?

A

Hard constraints must be strictly followed, while soft constraints express preferences with associated costs.

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

What is a hypergraph in CSPs?

A

A graph representation where variables are nodes and constraints are edges between them.

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

What is a standard search formulation for solving CSPs?

A

Using uninformed search algorithms like DFS or BFS, treating variable assignments as states and checking constraints incrementally.

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

What is chronological backtracking search?

A

A DFS-based approach that assigns values step by step while ensuring constraints are met.

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

What is forward checking in CSPs?

A

A filtering technique that removes inconsistent values from future variable domains to reduce backtracking.

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

What is arc consistency?

A

A constraint propagation technique ensuring that every value in a variable’s domain has a consistent value in a connected variable’s domain.

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

What is the Minimum Remaining Values (MRV) heuristic?

A

A variable ordering strategy that selects the variable with the fewest remaining legal values.

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

What is the Degree Heuristic?

A

A variable ordering strategy that selects the variable involved in the most constraints.

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

What is the Least Constraining Value (LCV) heuristic?

A

A value ordering strategy that selects the value that eliminates the fewest options for neighboring variables.

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

What is backjumping in CSPs?

A

A technique that jumps back to the most recent conflict instead of backtracking step-by-step.

17
Q

What is conflict-directed backjumping?

A

A method where each variable maintains a conflict set, migrating conflicts to earlier variables to find a valid assignment.

18
Q

How can problem structure improve CSP solving?

A

Breaking CSPs into independent sub-problems or using cutset conditioning to simplify the constraint graph.

19
Q

What is cutset conditioning?

A

A method where certain variables are instantiated to transform the constraint graph into a tree, reducing complexity.