CSPs Flashcards

1
Q

What are 3 problems CSPs can be used to solve?

A
  • Graph Colouring
  • Job Shop Scheduling (Putting on clothes)
  • Cryptarithmetic Puzzles (TWO + TWO = FOUR)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 3 main components of CSPs?

A
  • X: a set of variables
  • D: a set of domains per variable
  • C: a set of constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A consistent or satisfied CSP is a CSP with variables ______ and constraints ___________

A

assigned, non-violated

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

What is a complete assignment?

A

All variables in the CSP are assigned a value

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

A _______ is a complete assignment that is also consistent

A

solution

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

A CSP with no solution is referred to as ____________ and a CSP with many solutions is referred to as _________

A

over-constrained, -under-constrained

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

If a domain is ______, the CSP has no solution

A

empty

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

What is the size of the search space in a CSP?

A

D1 * D2 * D3 * … * DN

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

When is a CSP variable Xi considered to be arc consistent with Xj?

A

If for every value Di, there is at least one corresponding value in Dj that satisfies the binary constraint on Xi and Xj

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

Efficient algorithms exist to make CSPs ____ _______

A

arc consistent

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

REVIEW AC3 TRACE

A

REVIEW AC3 TRACE

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

What is the basic idea of backtracking search?

A
  • pick an unassigned variable
  • assign it a value that doesn’t violate any constraints
  • if there is no such value, then backtrack to the previous step and choose a new variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A basic backtracking search is _____, but often very _____ on large problems

A

complete, slow

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

What are four sets of improvements that can be made to basic backtracking?

A
  • Rules for choosing the next variable to be assigned
  • Rules for choosing what value to assign to the current variable
  • Rules for interleaving searching and inference
  • Rules for choosing what variables to backtrack to
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the Minimum Remaining Values rule?

A

Always choose to assign the variable with the least amount of elements in it’s domain

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

What is the Least-Constraining Value rule?

A

Choose the value that rules out the fewest choices for neighbour variables

17
Q

What is Forward Checking?

A

after a variable is assigned in backtracking search, we can rule out all domain values for associated variables that are inconsistent with the assignment

18
Q

What is the basic idea of a local min search?

A
  • Assign all the variables

- Modify assignments to make it better

19
Q

What is the maximum value of n in the n-queens problem what was solved by local search in under a minute

A

3 million