local search algorithms for CSP's Flashcards

1
Q

CSP local search

A

assume an assignment is inconsistent
the next assignment can be constructed in such a way that constraint violation is smaller
-only “small” changes of the assignment are allowed
-next assignment should be “better” than previous
–better=more constraints are satisfied
-assignments are not necessarily generated systematically
–we lose completeness but we hopefully get better efficiency

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

local search terminology

A
search space S
set of solutions Sol
neighboring relation
evaluation function
initialization function
step function
set of memory states
termination criterion
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

search space S

A

set of all complete variable assignments

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

set of solutions Sol

A

subset of the search space

all assignments satisfying all the constraints

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

neighborhood relation

A

a subset of SxS indicating what assignments can be reached by a search step given the current assignment during the search procedure

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

evaluation function

A

mapping each assignment to a real number representing “how far the assignment is from being a solution”

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

initialization function

A

returns an initial position given a possibility distribution over the assignments

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

step function

A

given an assignment, its neighborhood and the evaluation function returns the new assignment to be explored by the search

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

set of memory states(optional)

A

holding information about the state of the search mechanism

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

termination criterion

A

stopping the search when satisfied

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

CSP neighborhood of an assignment

A

all assignments differing on one the value of one variable (1-exchange-neighborhood)

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

CSP evaluation function

A

mapping each assignment to the number of constraints it violates

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

CSP initialization function

A

returns an initial assignment chosen randomly

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

CSP termination criterion

A

if a soln is found or if a given number of search steps is exceeded

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

CSP Hill Climbing

A

the basic technique of local search

  • starts at randomly generated assignment
  • at each state of the search
  • iterative best improvement
  • iterative first improvement
  • if multiple choices choose one randomly
  • neighborhood= differs in the value of any variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

iterative best improvement:

A

move to the assignment in the neighborhood violating the minimum number of constraints

17
Q

iterative first improvement

A

choose the first improving neighbor in a given order