CS 4365 CSP

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/33

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

34 Terms

1
New cards

Constraint satisfaction problems (CSP) on finite domains are typically solved using a form of search: ?, ?, ?

backtracking,

constraint propagation, local search.

2
New cards

In CSP, ? is a recursive algorithm. It maintains a partial assignment of the variables. In this algorithm, consistency is defined as the satisfaction of all constraints whose variables are all assigned.

backtracking

3
New cards

In CSP, every local consistency condition can be enforced by a transformation that changes the problem without changing its solutions. Such a transformation is called ?

constraint propagation

4
New cards

Arc-consistency and path-consistency are the most known and used forms of ?

local consistency

5
New cards

? is an incomplete method for finding a solution to a problem. It is based on iteratively improving an assignment of the variables until all constraints are satisfied.

Local search

6
New cards

A type of constraint which restricts the value of a single variable is ?

unary constraint

7
New cards

A constraint involving an arbitrary number of variable is called ?

global constraint

8
New cards

In constraint hypergraph a hyper-node represents ?

n-ary constraints

9
New cards

? is a type of inference: using constraints to reduce the number of legal values in CSP

Constraint propagation

10
New cards

The key idea to reduce the number of legal values in CSP is ?

local consistency

11
New cards

A variable in a CSP is ? if all the values in the variable's domain satisfy the variable's unary constraints.

node-consistent

12
New cards

A variable in a CSP is ? if every value in its domain satisfies the variable's binary constraints.

arc-consistent

13
New cards

The most popular algorithm for arc-consistent is called ?

AC-3 algorithm

14
New cards

Assume a CSP with n variables, each with domain size at most d, and with c binary constraints (arcs). Then the complexity of AC-3 algorithm for the worst case time is ?

O(c*d*d*d)

15
New cards

? tightens down the domains (unary constraints) using the binary constraints.

Arc consistency

16
New cards

? tightens down the binary constraints using implicit constraints that are inferred by looking at triples of variables.

Path consistency

17
New cards

A CSP is ? if, for any set of k-1 variables and for any consistent assignment to those variables, a consistent value can always be assigned to any k-th variable.

k-consistent

18
New cards

A CSP is strongly k-consistent if it is k-consistent and is also x-consistent for all x which is ?

greater than 0 and less than k

19
New cards

Assume a CSP with n variables, each with domain size at most d, and with c binary constraints (arcs). Then the worst case time-complexity for any algorithm to check n-consistency is ?

O(e^n)

20
New cards

The Alldiff constraint in CSP says that all the variables (Vars) involved must have distinct values (as discussed in book and class). In SWI-Prolog CLP, it is done through ?

all_different(Vars)

21
New cards

One important higher-order constraint is the resource constraint, sometimes called the Atmost constraint. For example in a scheduling problem, let P1, P2, P3, P4 denote the numbers of personnel assigned to each of four tasks. The constraint that no more than 10 personnel are assigned in total is written as ?

Atmost(10, P1, P2, P3, P4)

22
New cards

A CSP is ? if for every variable X, and for both the lower-bound and upper-bound values of X, there exists some value of Y that satisfies the constraint between X and Y for every variable Y.

bounds consistent

23
New cards

Applying a standard depth-first search for a CSP problem, a state would be a partial assignment where each action (generating a child node) is to assign a value (from a domain of size d) to a variable. For a CSP with n variables of domain size d, one may generate a tree with ? leaves. That is, n factorial times (d to the power of n).

O(n! * (d^n))

24
New cards

Applying a standard depth-first search for a CSP problem, a state would be a partial assignment where each action (generating a child node) is to assign a value (from a domain of size d) to a variable. For a CSP with n variables of domain size d, there are only ? possible complete assignments.

O(d^n)

25
New cards

Applying a standard depth-first search for a CSP problem, a state would be a partial assignment where each action (generating a child node) is to assign a value (from a domain of size d) to a variable. In particular, a CSP problem is ? if the order of application of any given set of actions has no effect on the outcome.

commutative

26
New cards

? search is used for a depth-first search that chooses values for one variable at a time and backtracks when a variable has no legal values left to assign.

Backtracking

27
New cards

The intuitive idea of choosing the variable with the fewest legal values is called the ?heuristics.

minimum-remaining-values (MRV)

28
New cards

This ? attempts to reduce the branching factor on future choices by selecting the variable that is involved in the largest number of constraints on other unassigned variables.

degree heuristic

29
New cards

The ? heuristic can be effective in some cases as it prefers the value that rules out the fewest choices for the neighboring variables in constraint graph.

Least Constraint Value (LCV)

30
New cards

Although forward checking detects many inconsistencies, it does not detect all of them. The problem is that it makes the current variable arc-consistent, but does not look ahead and make all the other variables arc-consistent. The ? algorithm detects this inconsistency.

Maintaining Arc Consistency (MAC)

31
New cards

The ? method backtracks to the most recent assignment in the conflict set.

backjumping

32
New cards

In choosing a new value for a variable, the most obvious heuristic is to select the value that results in the minimum number of conflicts with other variables. This is ? in local search for CSP.

min conflicts heuristics

33
New cards

One efficient heuristic to solve a complicated case of CSP graph is to make it a tree after removal of a subset S of the CSP's variables, and first to find each possible assignment to the variables in S to solve all the constraints on S. Here S is called a ?.

cycle cutset

34
New cards

If each variable domain is of size d and there are e constraints to be tested, then the algorithm GAC does ? consistency checks.

O(ed^3)