Local Search Flashcards

(16 cards)

1
Q

What is the main goal of local search algorithms?

A

To find an optimal or good solution by improving a single candidate state based on an objective function, without keeping the entire path or tree in memory.

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

What are three common local search approaches?

A

Hill Climbing, Simulated Annealing, Genetic Algorithms

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

What is Hill Climbing?

A

A greedy algorithm that moves to the neighbor state with the highest value (best score), attempting to find the peak (maximum value).

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

What is a key limitation of Hill Climbing?

A

It can get stuck in local maxima, plateaus, or ridges and miss the global optimum.

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

What is Random-Restart Hill Climbing?

A

A method that runs hill climbing multiple times from different random starting points and keeps the best result.

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

What is Simulated Annealing?

A

A search algorithm that sometimes accepts worse solutions to escape local optima, based on a gradually decreasing “temperature.”

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

What does the “temperature” in Simulated Annealing control?

A

The probability of accepting worse moves; it decreases over time to reduce randomness.

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

Why can Simulated Annealing find the global optimum?

A

Because it allows downhill moves early on, with decreasing probability, enabling escape from local optima.

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

What is a Genetic Algorithm (GA)?

A

A population-based search inspired by biological evolution, using selection, crossover, and mutation to evolve better solutions.

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

How does GA select which individuals reproduce?

A

Based on fitness — higher fitness solutions are more likely to be selected (e.g., via roulette wheel selection).

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

What is crossover in GA?

A

Combining parts of two parent solutions to produce offspring solutions.

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

What is mutation in GA?

A

Randomly changing bits in offspring to maintain genetic diversity and explore new solutions.

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

What is a fitness function in GA?

A

A function that evaluates how good a candidate solution is, guiding the selection process.

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

What problem types are suitable for local search?

A

Optimization problems where path is irrelevant, like n-queens, traveling salesman, function minimization, etc.

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

What does it mean for GA to search a “fitness landscape”?

A

It explores a multidimensional space where each point has a fitness value — the goal is to climb toward global maxima.

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

What are common encoding methods in GA?

A

Binary strings (bitstrings), integers, or other representations depending on the problem.