Week 2 - CSPs Flashcards

1
Q

What 5 things make up a search problem?

A

State Space
Start State
Goal State
Goal Test
Successor function

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

What is a solution for a search problem?

A

A sequence of actions which transforms the start state to a goal state.

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

What 3 things make up a constraint satisfaction problem?

A

A set of variables
A domain of possible values for each variable
A set of constraints

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

What is backtracking search for solving CSPs?

A

A depth first search method that considers one variable at a layer and only considers states which do not conflict with previous assignments.

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

How is ordering used to speed up solving a CSP?

A

The next variable you consider is the variable with the fewest possible values.

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

How is forward checking used to speed up solving a CSP?

A

When you assign a variable, cross of any neighbours that are now violated.

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

Describe the local search algorithm for solving CSPs

A

Randomly generate a complete assignment
While constraints are violated:
- Randomly select a constraint violating variable
- Choose a new value that violates the least number of constraints

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