Local search algorithms for optimization problems