SEARCH STRATEGIES IN ALGORITHMNS
SEARCH STRATEGIES IN ALGORITHMNS
These algorithms don’t have any information about the problem beyond the problem definition.
They explore the search space without considering which path might be more promising.
These algorithms use heuristics (problem-specific knowledge) to guide the search more
efficiently toward the goal.
• A Search*
o Combines both the cost to reach a node and an estimate of the cost to reach the
goal (heuristic).
o Guarantees the shortest path if the heuristic is admissible (never overestimates the
true cost).
o One of the most widely used algorithms for pathfinding and AI problems.
• Greedy Best-First Search
o Selects the node that appears to be closest to the goal based on a heuristic.
o Not optimal, but can be faster than A* if the heuristic is good enough.
• Hill Climbing
o A local search algorithm that keeps moving towards the best neighboring node
until it reaches a peak (local maximum) or goal.
o Prone to getting stuck in local maxima.
• Simulated Annealing
o A probabilistic algorithm that allows moves to worse solutions to escape local
minima, inspired by the physical process of annealing in metallurgy.
o Eventually, the probability of making a worse move decreases as the algorithm
progresses.
• Iterative Deepening A (IDA)**
o Combines iterative deepening with A* search. It’s particularly useful for
problems with large state spaces where maintaining the entire search tree is
impractical.
These focus on improving an initial solution, often used for optimization problems.
• Greedy Search
o Chooses the best immediate option without considering future consequences.
o Fast but not guaranteed to find the optimal solution.
• Genetic Algorithms
o Inspired by evolution. Solutions evolve over generations through operations like
crossover and mutation to improve over time.
• Tabu Search
o Uses memory structures to avoid revisiting previous solutions, allowing it to
explore new parts of the search space.
• Ant Colony Optimization
o Inspired by the foraging behavior of ants, this algorithm simulates the process of
ants finding the shortest path to food and uses pheromones to guide the search.