Professional Documents
Culture Documents
Advantages of (DFS)
1- DFS is space efficient: it may store only those states
currently in the search stack.
2-DFS can be easily extended to detect cycles and thus
check live properties.
Disadvantages of (DFS)
1-need cost and time and big storage.
2-And there is no guarantee to find a minimal solution, if
more than one solution exists.
3- Depth-First Search is not guaranteed to find the solution.
-----------------------------------------------------------------------
2- Breadth first search (BFS) is a graph search algorithm
that begins at the root node and explores all the
neighboring nodes. Then for each of those nearest
nodes, it explores their unexplored neighbor nodes,
and so on, until it finds the goal.
Advantages of (BFS): Breadth first search will never get
trapped exploring the useless path forever. If there is a
solution, BFS will definitely find it out. If there is more than
one solution then BFS can find the minimal one that
requires a smaller number of steps.
1- Selection
2- Crossover
So now you have selected your individuals, and you know
that you are supposed to somehow produce offspring with
them, but how should you go about doing it? The most
common solution is something called crossover, and while
there are many different kinds of crossover, the most
common type is single point crossover. In single point
crossover, you choose a locus at which you swap the
remaining alleles from one parent to the other. This is
complex and is best understood visually.