Local Search (midterm) Flashcards

1
Q

What is the state space of local search for a CSP?

A

Any possible state for assignment, candidate assignment

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

What are two key limitations of local search as compared to DFS with pruning or Arc consistency with Domain Splitting?

A
  1. Not complete, it is not guaranteed to find a solution.

2. It is not able to show if the solution exists

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

Explain a reasonable way to generate neighbors for local search?

A

Neighbours are similar assignments to current node, that differ by one small change
Change a variable by 1 value
Change a variable by any amount
Change two variables by 1 value or any amount

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

Define a plateau. Why are plateaus a problem for local search?

A

Plateau is the flat local max in the evaluation graph which means neighboring states yield same result.

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

Why does randomization help in local search?

A

It prevents local search from getting stuck at the local maxima/minima

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

Explain how the next state is chosen in simulated annealing?

A

If it is an “improvement” is we choose this state,
If it is not an “improvement” we pick on this state based on probability with respect to temperature, the higher the temperature the more likely we choose this state.

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

How would you change a local search algorithm to better find global maxima that are surrounded by local maxima? Assume that the neighbor relation is fixed?

A

Adding randomness to the algorithm potentially adding random step or more frequent random restarts
Random steps are better with large domains- less work randomly assigning just neighbours

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

How would you design a local search algorithm for a problem where there are no plateaus and no local minima that are not global minima? Assume that the neighbor relation is fixed.

A

By hill climbing/ greedy descent to move to a neighbor with the best improvement (

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

Give an example of a crossover algorithm that could be used in a genetic algorithm; do not use the example given in class

A

For example, cross over every second position of the two nodes.

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

What is the difference between a random step and a random restart?

A

Random step moves to a random neighbour while random restart reassigns random values to all variables.

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

Consider two local search algorithm, A and B. A solves x% of the problem it is given within x^2 minutes. B solve y% of the problems it is given within y minutes. Is one algorithm always better than the other? If not which algorithm would you use then?

A

A and B are equal for % solved in 1 minute.
< 1 minute, A is better;
> 1 minute, B is better.

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

Consider two local search algorithm, A and B. A solves sqrt x% of the problem it is given within x minutes. B solve y% of the problems it is given within y minutes. Is one algorithm always better than the other? If not which algorithm would you use then?

A

Consider time = 4 min (> 1 min): A solves sqrt(4)=2% of problems, while B solves 4%. (It’s the same as q11 for n > 0 because the sqrt is on the % solved, not the time given, which had the 2 in q11.)

= 1 same
< 1 A is better.

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