ArticleslgStudy

computer science

Guided local search

Guided local search is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Guided local search rather than just read about it. In short: Guided local search is a metaheuristic search method. A meta-heuristic method is a method that sits on top of a local search algorithm to change its behavior.

Key takeaways

  • Guided local search belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Guided local search to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Guided local search from memory before moving on to harder problems.

Reference excerpt

Guided local search is a metaheuristic search method. A meta-heuristic method is a method that sits on top of a local search algorithm to change its behavior. Guided local search builds up penalties during a search. It uses penalties to help local search algorithms escape from local minima and plateaus. When the given local search algorithm settles in a local optimum, GLS modifies the objective function using a specific scheme (explained below). Then the local search will operate using an augmented objective function, which is designed to bring the search out of the local optimum. The key is in the way that the objective function is modified. The method in its current form was developed by Dr Christos Voudouris and detailed in his PhD Thesis. GLS was inspired by and extended GENET, a neural network architecture for solving Constraint Satisfaction Problems, which was developed by Chang Wang, Edward Tsang and Andrew Davenport. Both GLS's and GENET's mechanism for escaping from local minima resembles reinforcement learning.

Overview

Solution features To apply GLS, solution features must be defined for the given problem. Solution features are defined to distinguish between solutions with different characteristics, so that regions of similarity around local optima can be recognized and avoided. The choice of solution features depends on the type of problem, and also to a certain extent on the local search algorithm. For each feature fi a cost function ci is defined. Each feature is also associated with a penalty pi (initially set to 0) to record the number of occurrences of the feature in local minima. The features and costs often come directly from the objective function. For example, in the traveling salesman problem, “whether the tour goes directly from city X to city Y” can be defined to be a feature. The distance between X and Y can be defined to be the cost. In the SAT and weighted MAX-SAT problems, the features can be “whether clause C is satisfied by the current assignments”. At the implementation level, we define for each feature i an Indicator Function Ii indicating whether the feature is present in the current solution or not. Ii is 1 when solution x exhibits property i, 0 otherwise.

Selective penalty modifications GLS computes the utility of penalising each feature. When the local search algorithm returns a local minimum x, GLS penalizes all those features (through increments to the penalty of the features) present in that solution which have maximum utility, util⁡(x,i), as defined below.

util⁡(x,i)=Ii(x)ci(x)1+pi. The idea is to penalise features that have high costs, although the utility of doing so decreases as the feature is penalised more and more often.

Searching through an augmented cost function GLS uses an augmented cost function (defined below), to allow it to guide the local search algorithm out of the local minimum, through penalising features present in that local minimum. The idea is to make the local minimum more costly than the surrounding search space, where these features are not present.

g(x)=f(x)+λa∑1≤i≤mIi(x)pi The parameter λ may be used to alter the intensification of the search for solutions. A higher value for λ will result in a more diverse search, where plateaus and basins are searched more coarsely; a low value will result in a more intensive search for the solution, where the plateaus and basins in the search landscape are searched in finer detail. The coefficient a is used to make the penalty part of the objective function balanced relative to changes in the objective function and is problem specific. A simple heuristic for setting a is simply to record the average change in objective function up until the first local minimum, and then set a to this value divided by the number of GLS features in the problem instance.

Extensions of guided local search Mills (2002) has described an extended guided local search (EGLS) which utilises random moves and an aspiration criterion designed specifically for penalty based schemes. The resulting algorithm improved the robustness of GLS over a range of parameter settings, particularly in the case of the quadratic assignment problem. A general version of the GLS algorithm, using a min-conflicts based hill climber (Minton et al. 1992) and based partly on GENET for constraint satisfaction and optimisation, has also been implemented in the Computer-Aided Constraint Programming project. Alsheddy (2011) extended guided local search to multi-objective optimization, and demonstrated its use in staff empowerment in scheduling .

Related work GLS was built on GENET, which was developed by Chang Wang, Edward Tsang and Andrew Davenport. The breakout method is very similar to GENET. It was designed for constraint satisfaction. Tabu search is a class of search methods which can be instantiated to specific methods. GLS can be seen as a special case of Tabu search. By sitting GLS on top of genetic algorithm, Tung-leng Lau introduced the guided genetic programming (GGA) algorithm. It was successfully applied to the general assignment problem (in scheduling), processors configuration problem (in electronic design) and a set of radio-link frequency assignment problems (an abstracted military application). Choi et al. cast GENET as a Lagrangian search.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Guided local search

Start with the simplest possible case. Write down what Guided local search claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Guided local search before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Guided local search ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Guided local search

In research
Guided local search appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Guided local search in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Guided local search is common in secondary-school and first-year university syllabi. It links to neighbouring topics Heuristics, Optimization algorithms and methods, so understanding it makes those chapters shorter.
In everyday life
Look for Guided local search outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Guided local search” →

How to study Guided local search in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Guided local search means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Guided local search out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Guided local search in simple terms?

Guided local search is a metaheuristic search method. A meta-heuristic method is a method that sits on top of a local search algorithm to change its behavior.

Why does Guided local search matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Guided local search?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Guided local search.

Tags

  • Heuristics
  • Optimization algorithms and methods

Keep exploring