Local Search is a family of heuristic optimization algorithms that iteratively improve a candidate solution by exploring and moving to better solutions within its immediate neighborhood until a local optimum is reached. Unlike systematic tree or graph search algorithms that explore paths to a goal, local search operates on a single, complete solution, making it highly memory-efficient for large or continuous search spaces where exhaustive exploration is intractable. Its core mechanism is defined by a neighborhood function that generates nearby states and an objective function that evaluates their quality.
