Professional Documents
Culture Documents
• Working
• Begins with randomly generated k states.
• At each step, all the successors of all k states are
generated.
• If any one is a goal, the algorithm halts.
• Otherwise, it selects the k best successors from the
complete list and repeats.
• Is this the same as running k greedy searches in the
parallel?
• Drawbacks
• Suffers from a lack of diversity among the k states
• Successors can become concentrated in a small part of state
space
Fitness
Selection
Calculation
Crossover
Mutation
Evaluate
End
Fitness
Selection
S1 1111010101 Calculation
S2 0111000101
N= 60 Crossover
S3 1110110101
L =10
S4 0100010011
S5 1110111101 Mutation
S6 0100110000
Evaluate
End
Population
S1’ 1 1 1 0 1 1 1 1 0 1 S1’’ 1 1 1 1 0 1 0 1 0 1
S2’ 1 1 1 1 0 1 0 1 0 1 S2’’ 1 1 1 0 1 1 1 1 0 1
S3’ 1 1 1 0 1 1 0 1 0 1 S3’’ 1 1 1 0 1 0 0 1 0 1
S4’ 0 1 1 1 0 0 0 1 0 1 S4’’ 0 1 1 1 0 1 0 1 0 1
Fitness Selection
Calculation
Crossover
Mutation
Evaluate
End
End
Lecture 15 Local Search Algorithms &
17
Optimization
Step-6 Evaluation Initialization
Fitness
Calculation
Selection
• Operations
• Crossover (2 parents -> 2 children)
• Mutation (one bit)
• Basic structure
• Create population
• Perform crossover & mutation (on fittest)
• Keep only fittest children
Lecture 15 Local Search Algorithms &
20
Optimization
Genetic Algorithms
• Children carry parts of their parents’ data