Professional Documents
Culture Documents
Informed Search Techniques 2
Informed Search Techniques 2
Informed Search Techniques 2
Contents
Informed search (also called directed search and heuristic search), tries to
reduce the amount of search that must be done by making intelligent choices
for the nodes that are selected for expansion.
Informed search strategies use problem-specific knowledge to find solution
faster
Heuristic functions
Optimization Problems
Instead of considering the whole state space, consider only the current state
Limits necessary memory; paths not retained
Amenable to large or continuous (infinite) state spaces where exhaustive search
algorithms are not possible
Local search algorithms can’t backtrack
Genetic Algorithm
Proposed by John Holland.
Based on Natural Selection – best genes are carried forward.
Adaptive heuristic search algorithm.
Abstraction of real biological evolution.
Used to solve complex problems(NP hard, TSP, 0/1 knapsack)
Mainly focuses on finding global optimal solution amongst the population.
Survival of the fittest- best chromosome is carried forward.
Phenotype is raw solution which is encoded to genotype for fine tuning
Phenotype Genotype
Genetic VS Non-Genetic Algorithms
Swap Mutation
Inversion Mutation
Termination Condition
Selected set
s1 ` = 1111010101 (s1 )
s2 ` = 1110110101 (s3 )
s3 ` = 1110111101 (s5 )
s4 ` = 0111000101 (s2 )
s5 ` = 0100010011 (s4 )
s6 ` = 1110111101 (s5 )
Crossover
1. Now mate strings for crossover.
2. If we decide to actually perform crossover, we randomly extract the
crossover points, for instance 2 and 5
Before crossover:
s1 ` = 1111010101 s2 ` = 1110110101
After crossover:
s1 `` = 1110110101 s2 `` = 1111010101
Mutations
The final step is to apply random mutations: for each bit that we are to copy
to the new population we allow a small probability of error (for instance 0.1)
Initial strings After mutating
s1 `` = 1110110101 s1 ``` = 1110100101 f(s1)= 6
s2 `` = 1111010101 s2 ``` = 1111110100 f(s1)= 7
s3 `` = 1110111101 s3 ``` = 1110101111 f(s1)= 8
s4 `` = 0111000101 s4 ``` = 0111000101 f(s1)= 5
s5 `` = 0100011101 s5 ``` = 0100011101 f(s1)= 5
s6 `` = 1110110011 s6 ``` = 1110110001 f(s1)= 6