Week 4: Neighbourhood Functions and Energy Landscapes Flashcards
Neighbourhood Function
A method of making alternate configurations that may be more optimal than the current configuration.
NH_1 for MAX-3-SAT
This involves flipping the state of one of the variables. The total number of configurations possible is the number of variables in the problem.
NH_2 for TSP
This involves swapping two non-consecutive edges.
NH_3 for TSP
This involves swapping three non-consecutive edges.
Weighted Graph Bisection Problem - Greedy Construction
Start with a root node one one side. Keep adding edges that maximise the total weight. Repeat until half of the vertices are assigned to the current subgraph. The other edges belong to the other subgraph.
Nearest Neighbour Construction Heuristic
Start at a root vertex, take in the nearest unvisited vertex, and repeat until you’ve reached the last vertex. Then return to the root vertex.
The runtime is O(n^2).
Insertion Construction Heuristic
Start with three nodes as the initial subtour. Then add another vertex where the increase in total length of the subtour is minimised. Repeat until all vertexes are added.