Local Search Algorithms and Optimization Problem

The informed and uninformed search expands the nodes systematically in two ways:

Which leads to a solution state required to reach the goal node. But beyond these “classical search algorithms,” we have some “local search algorithms” where the path cost does not matters, and only focus on solution-state needed to reach the goal node.

A local search algorithm completes its task by traversing on a single current node rather than multiple paths and following the neighbors of that node generally.

Although local search algorithms are not systematic, still they have the following two advantages:

Does the local search algorithm work for a pure optimized problem?

Yes, the local search algorithm works for pure optimized problems. A pure optimization problem is one where all the nodes can give a solution. But the target is to find the best state out of all according to the objective function. Unfortunately, the pure optimization problem fails to find high-quality solutions to reach the goal state from the current state.

Note: An objective function is a function whose value is either minimized or maximized in different contexts of the optimization problems. In the case of search algorithms, an objective function can be the path cost for reaching the goal node, etc.

Working of a Local search algorithm

Let’s understand the working of a local search algorithm with the help of an example:

Consider the below state-space landscape having both:

The local search algorithm explores the above landscape by finding the following two points:

We will understand the working of these points better in Hill-climbing search.

Below are some different types of local searches: