Introduction
Local search is a fundamental algorithmic approach for solving combinatorial optimization problems. Starting from an initial solution, a local-search algorithm repeatedly replaces the current solution with a better solution from a well-defined neighborhood, until a local optimum is reached. Despite the simplicity of this approach and its excellent practical performance for many problems, the worst-case behavior of local search can be surprisingly complicated. Johnson, Papadimitriou, and Yannakakis introduced the complexity class PLS to capture the difficulty of finding locally optimal solutions [11 ] . Schäffer and Yannakakis later defined tight PLS-reductions and showed that problems proven PLS-complete via such reductions exhibit particularly strong forms of hardness [20 ] .
One such form of hardness concerns not the complexity of finding a local optimum but the number of iterations performed by local search. A first indication of such hardness is the is-exp property : there are infinitely many instances, each with an initial solution, from which at least one sequence of improving moves to a local optimum has exponential length. This alone, however, does not imply that local search necessarily takes exponentially many iterations. Whenever several improving neighbors are available, a pivot rule determines which one is chosen, and a suitable pivot rule may avoid the long sequence and reach a local optimum much faster. The strongest possible negative result is that a problem has the all-exp property : there are infinitely many instances, each with an initial solution, such that every sequence of improving moves from this initial solution to a local optimum has exponential length. Equivalently, even under an optimal pivot rule, local search started from these initial solutions requires exponentially many iterations. Every problem shown to be PLS-complete via a tight PLS-reduction has the all-exp property [20 ] . However, the all-exp property can also be established by direct constructions, which work even for problems not known to be PLS-complete.
One of the most prominent local-search heuristics is k k k -opt for the Traveling Salesman Problem (TSP). The case k = 2 k = 2 k = 2 , called 2-opt, was already studied by Croes in 1958 [3 ] and is the oldest and simplest local-search method for the TSP. In each iteration, 2-opt replaces two edges of the current tour with two other edges such that the resulting tour is shorter. The k k k -opt heuristic generalizes 2-opt by replacing up to k k k edges in each iteration. Both 2-opt and k k k -opt for general k k k have been studied extensively, theoretically as well as experimentally; see, for example, [1 , 9 , 2 , 10 ] .
The TSP with the 2-opt neighborhood has long been known to have the is-exp property; the first construction establishing this property is due to Lueker [16 ] (see also [2 ] , page 1999). However, the is-exp property does not rule out a pivot rule that always reaches a local optimum after polynomially many iterations, and whether the TSP with the 2-opt neighborhood also has the all-exp property has remained open. The first all-exp result for the TSP with the k k k -opt neighborhood is due to Krentel [14 ] and holds for all sufficiently large constants k k k . Hoang and Hougardy [5 ] later showed that Krentel’s construction requires k ≥ 14,208 k \ge14{,}208 k ≥ 14 , 208 and, by refining the construction, reduced this bound to k ≥ 704 k \ge704 k ≥ 704 . In 2024, Heimann, Hoang, and Hougardy [6 ] substantially improved the bound and proved that the TSP with the k k k -opt neighborhood has the all-exp property for all k ≥ 5 k \ge5 k ≥ 5 . This result is based on the fact that Max-Cut with the flip neighborhood, in which a single vertex moves to the other side of the cut, has the all-exp property on graphs of bounded degree. For general graphs, Schäffer and Yannakakis [20 ] already showed in 1991 that Max-Cut with this neighborhood is PLS-complete via a tight reduction and hence has the all-exp property. In 2010, Monien and Tscheuschner [MT10] established the all-exp property for Max-Cut even on graphs of maximum degree four; a much simpler proof of this result was later given by Michel and Scott [17 ] .
Very recently, Heimann, Hoang, and Hougardy [8 ] proved the all-exp property for the TSP with the 3-opt and 4-opt neighborhoods, and also with the 2.5-opt neighborhood, which lies strictly between the 2-opt and 3-opt neighborhoods and was introduced in [1 ] . Consequently, the TSP with the k k k -opt neighborhood was known to have the all-exp property for every k ≥ 3 k \ge3 k ≥ 3 , and only the most basic and practically important case, 2-opt, remained open. In this paper, we finally settle this case.
Theorem 1. The Traveling Salesman Problem with the 2-opt neighborhood has the all-exp property.
The results of [8 ] for 2.5-opt, 3-opt, and 4-opt are based on reductions from Max-Cut with the flip neighborhood on graphs of bounded degree. A natural approach to proving Theorem 1 is to extend these reductions to 2-opt. However, we believe that the approach used in [8 ] has already been exhausted and does not allow one to prove the 2-opt case. Instead, we give a direct construction. The recursive idea behind this construction is easiest to develop for the Maximum Constraint Assignment (MCA) problem with the flip neighborhood, a generalization of Max-Cut in which the local structure of the instances is controlled by three parameters. Moreover, MCA is of independent interest, since for several small parameter values the all-exp question has been open for a long time.
An instance of ( p , q , r ) (p, q, r) ( p , q , r ) -MCA consists of variables, each with a domain of size r r r , and constraints, each of which depends on at most p p p variables and assigns a weight to every combination of values of these variables; every variable occurs in at most q q q constraints. The goal is to find an assignment of values to the variables that maximizes the sum of the resulting constraint weights. A local-search step in the flip neighborhood changes the value of a single variable; for binary variables, that is, r = 2 r = 2 r = 2 , this is simply a flip. Throughout this paper, we consider MCA only with the flip neighborhood.
In the terminology of constraint satisfaction, MCA is a valued constraint satisfaction problem (VCSP) with finite weights and a maximization objective. In particular, MCA naturally generalizes weighted satisfiability problems. Dumrauf and Monien [4 ] studied the problem systematically and, building on techniques introduced by Krentel [14 ] , proved that ( 3 , 2 , 3 ) (3, 2, 3) ( 3 , 2 , 3 ) -MCA, ( 2 , 3 , 6 ) (2, 3, 6) ( 2 , 3 , 6 ) -MCA, and the binary problem ( 6 , 2 , 2 ) (6, 2, 2) ( 6 , 2 , 2 ) -MCA are PLS-complete via tight reductions and hence have the all-exp property. Moreover, Max-Cut on graphs of maximum degree four is a special case of ( 2 , 4 , 2 ) (2, 4, 2) ( 2 , 4 , 2 ) -MCA, so the result of Monien and Tscheuschner [MT10] implies the all-exp property for ( 2 , 4 , 2 ) (2, 4, 2) ( 2 , 4 , 2 ) -MCA. More recently, Heimann, Hoang, and Hougardy [7 ] proved the all-exp property for ( 2 , 2 , 5 ) (2, 2, 5) ( 2 , 2 , 5 ) -MCA.
On the positive side, Kaznatcheev, Cohen, and Jeavons [13 , 12 ] proved that for ( 2 , 2 , 2 ) (2, 2, 2) ( 2 , 2 , 2 ) -MCA every sequence of improving flips has length at most quadratic in the instance size. In contrast, the same authors established the is-exp property for ( 2 , 2 , 3 ) (2, 2, 3) ( 2 , 2 , 3 ) - and ( 2 , 3 , 2 ) (2, 3, 2) ( 2 , 3 , 2 ) -MCA [13 ] . More recently, Kaznatcheev and Vazquez Alferez [15 ] strengthened the is-exp result for ( 2 , 3 , 2 ) (2, 3, 2) ( 2 , 3 , 2 ) -MCA by showing that even the steepest-ascent pivot rule can require exponentially many flips, although their instances admit polynomial-length improving sequences under other pivot rules. Whether these problems also have the all-exp property remained open. Taking into account the known all-exp results and the fact that the all-exp property carries over to larger parameter values, exactly eleven cases were open: ( 2 , 2 , 3 ) (2, 2, 3) ( 2 , 2 , 3 ) -, ( 2 , 2 , 4 ) (2, 2, 4) ( 2 , 2 , 4 ) -, ( 2 , 3 , 2 ) (2, 3, 2) ( 2 , 3 , 2 ) -, ( 2 , 3 , 3 ) (2, 3, 3) ( 2 , 3 , 3 ) -, ( 2 , 3 , 4 ) (2, 3, 4) ( 2 , 3 , 4 ) -, ( 3 , 2 , 2 ) (3, 2, 2) ( 3 , 2 , 2 ) -, ( 4 , 2 , 2 ) (4, 2, 2) ( 4 , 2 , 2 ) -, ( 5 , 2 , 2 ) (5, 2, 2) ( 5 , 2 , 2 ) -, ( 3 , 3 , 2 ) (3, 3, 2) ( 3 , 3 , 2 ) -, ( 4 , 3 , 2 ) (4, 3, 2) ( 4 , 3 , 2 ) -, and ( 5 , 3 , 2 ) (5, 3, 2) ( 5 , 3 , 2 ) -MCA.
In this paper, we prove the following two theorems.
Theorem 2. ( 3 , 2 , 2 ) (3, 2, 2) ( 3 , 2 , 2 ) -MCA with the flip neighborhood has the all-exp property .
Theorem 3. ( 2 , 3 , 2 ) (2, 3, 2) ( 2 , 3 , 2 ) -MCA with the flip neighborhood has the all-exp property .
Since every open case other than ( 2 , 2 , 3 ) (2, 2, 3) ( 2 , 2 , 3 ) - and ( 2 , 2 , 4 ) (2, 2, 4) ( 2 , 2 , 4 ) -MCA has parameters that are component wise at least ( 3 , 2 , 2 ) (3, 2, 2) ( 3 , 2 , 2 ) or at least ( 2 , 3 , 2 ) (2, 3, 2) ( 2 , 3 , 2 ) , Theorems 2 and 3 leave only these two cases open. Both theorems are tight: decreasing any of the three parameters yields a problem in which every sequence of improving flips has polynomial length. For ( 2 , 2 , 2 ) (2, 2, 2) ( 2 , 2 , 2 ) -MCA, this is the result of Kaznatcheev, Cohen, and Jeavons mentioned above; if one of the parameters equals 1, every sequence of improving flips even has at most linear length, since then each variable can change its value at most r − 1 r - 1 r − 1 times (p = 1 p = 1 p = 1 ), each constraint can increase its weight at most r p − 1 r^{p} - 1 r p − 1 times (q = 1 q = 1 q = 1 ), or no move is possible at all (r = 1 r = 1 r = 1 ).
Since 2-opt is the smallest k k k -opt neighborhood, Theorem 1 is best possible as well. The three theorems thus show that local search can require exponentially many iterations under every pivot rule, even in remarkably restricted settings. These results settle longstanding open questions at two of the most basic boundaries in discrete local search: the last open k k k -opt neighborhood for the TSP and the dividing line between polynomial and exponential behavior for binary MCA. In particular, binary MCA is now completely classified: ( p , q , 2 ) (p, q, 2) ( p , q , 2 ) -MCA has the all-exp property if and only if p , q ≥ 2 p, q \ge2 p , q ≥ 2 and max { p , q } ≥ 3 \max\{p, q\} \ge3 max { p , q } ≥ 3 .
Overview of the constructions. Our three proofs are based on a common construction idea, which reveals a close connection between the local-search dynamics of the TSP with the 2-opt neighborhood and of MCA. This idea is similar to the recursive approach used in previous all-exp constructions, such as that of Michel and Scott [17 ] . Each instance consists of a linear number of layers, with interactions between consecutive layers restricted to two interfaces. One interface controls when an improving sequence in the preceding layer can start, while the other ensures that this sequence must finish before further progress in the current layer is possible. The key idea behind the exponential behavior is that a traversal of one layer requires at least two traversals of the preceding layer. Applied recursively, this ensures that, from a suitably chosen initial solution, every maximal improving sequence, that is, every improving sequence ending in a local optimum, has exponential length. The main challenge is to enforce these dependencies so that no sequence of improving moves can bypass the recursive traversals.
Our construction for (3, 2, 2)-MCA implements this idea very directly. The structure and constraint weights are chosen such that, starting from a suitable initial assignment, there is exactly one improving flip at every step, and each flip increases the objective value by exactly one. Moreover, our construction is 3-partite, meaning that we can partition the variables into three parts such that no constraint contains two variables from the same part. Despite these restrictions, the unique maximal improving sequence has exponential length.
The construction for 2-opt follows a very similar recursive pattern but requires an additional idea. We can assign states to different parts of a tour, but not every assignment of states represents a valid tour, and not every change between valid state assignments corresponds to a 2-opt move. We deliberately exploit these restrictions to exclude shortcuts that would otherwise be improving. Unlike in the previous constructions for k ≥ 3 k \ge3 k ≥ 3 [6 , 8 ] , where unwanted improving moves could be excluded by the choice of edge weights alone, the restricted nature of 2-opt makes these feasibility restrictions particularly important. They also allow us to choose the weights of two parts of each layer, which we call the upper and lower gadgets, largely independently. Further, unlike the previous constructions [6 , 8 ] , which rely on a reduction from Max-Cut with the flip neighborhood, we present a “direct” construction here. While we cannot enforce a unique improving move at every step, we show that all maximal improving sequences differ only in the order of a few moves that can be performed independently.
For (2, 3, 2)-MCA, we build on the recursive construction of Michel and Scott [17 ] for Max-Cut with the flip neighborhood. However, their construction contains vertices of degree four, whereas every variable in (2, 3, 2)-MCA may occur in at most three constraints. Reducing the degree while preserving the behavior of all improving sequences is a challenge: introducing auxiliary variables creates additional improving flips, which may allow the recursive dependencies to be bypassed. We overcome this difficulty by designing specific gadgets that reproduce the required dependencies using only variables that occur in at most three constraints. In particular, one gadget implements the dependence on three variables through Boolean operations, while another propagates the change of one variable to the next layer and ensures that the next recursive traversal can begin only after this propagation has been adequately completed. Although several improving flips may now be available simultaneously, we show that their dependencies are captured by a directed acyclic graph. Consequently, all maximal improving sequences correspond to linear extensions of this graph and have the same exponential length.
Outline. Section 2 establishes the necessary background, including key terms and notations. We then prove the results for (3, 2, 2)-MCA, the TSP with the 2-opt neighborhood, and (2, 3, 2)-MCA in Sections 3, 4, and 5, respectively. The three proofs are self-contained and can be read independently. We occasionally reuse notation, with its meaning defined separately in each section.
Preliminaries
Denote by [ n ] [n] [ n ] the set { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } . Let N \mathbb{N} N denote the set of all natural numbers (including zero). For a ∈ { 0 , 1 } a \in\{0,1\} a ∈ { 0 , 1 } , let a ˉ = 1 − a \bar{a}=1-a a ˉ = 1 − a , and write ⊕ \oplus ⊕ for addition modulo 2 (i.e., the XOR operation). For a statement A A A , we write [ A ] [A] [ A ] for its indicator (i.e., it is 1 if A A A is true and 0 otherwise). For an assignment σ : X → { 0 , 1 } \sigma:X\to\{0,1\} σ : X → { 0 , 1 } , a variable x ∈ X x\in X x ∈ X , and a ∈ { 0 , 1 } a\in\{0,1\} a ∈ { 0 , 1 } , we write σ [ x ↦ a ] \sigma[x\mapsto a] σ [ x ↦ a ] for the assignment that agrees with σ \sigma σ on X ∖ { x } X\setminus\{x\} X ∖ { x } and assigns the value a a a to x x x .
For a directed acyclic graph D D D , a linear extension of D D D is an ordering ( x 1 , … , x ∣ V ( D ) ∣ ) (x_1,\ldots,x_{\lvert V(D)\rvert}) ( x 1 , … , x ∣ V ( D )∣ ) of its vertices such that every edge x i x j ∈ E ( D ) x_i x_j\in E(D) x i x j ∈ E ( D ) satisfies i < j i<j i < j . Equivalently, a linear extension is a topological ordering of D D D .
Local-search problems
A local-search problem P P P is an optimization problem that consists of a set of instances D P D_P D P , a finite set of (feasible) solutions F P ( I ) F_P(I) F P ( I ) for each instance I ∈ D P I\in D_P I ∈ D P , an objective function f P f_P f P that assigns an integer value to each instance I ∈ D P I\in D_P I ∈ D P and solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) , and a neighborhood N P ( s , I ) ⊆ F P ( I ) N_P(s,I)\subseteq F_P(I) N P ( s , I ) ⊆ F P ( I ) for each solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) . The size of every solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) must be bounded by a polynomial in the size of I I I . The goal is to find a locally optimal solution for a given instance I I I ; that is, a solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) , such that no solution s ′ ∈ N P ( s , I ) s'\in N_P(s,I) s ′ ∈ N P ( s , I ) yields a better objective value than f P ( s , I ) f_P(s,I) f P ( s , I ) . Formally, this means, for all s ′ ∈ N P ( s , I ) s'\in N_P(s,I) s ′ ∈ N P ( s , I ) , f P ( s , I ) ≤ f P ( s ′ , I ) f_P(s,I)\leq f_P(s',I) f P ( s , I ) ≤ f P ( s ′ , I ) if P P P is a minimization problem, and f P ( s , I ) ≥ f P ( s ′ , I ) f_P(s,I)\geq f_P(s',I) f P ( s , I ) ≥ f P ( s ′ , I ) if P P P is a maximization problem.
The standard local-search algorithm for an instance I I I proceeds as follows. It starts with some initial solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) . Then it iteratively visits a neighbor with a strictly better objective value until it reaches a local optimum. If a solution has more than one better neighbor, the algorithm has to choose one by some prespecified rule, often referred to as a pivot rule .
For a move from a feasible solution s s s to s ′ s' s ′ , we define its gain as f P ( s , I ) − f P ( s ′ , I ) f_P(s,I)-f_P(s',I) f P ( s , I ) − f P ( s ′ , I ) for a minimization problem, and as f P ( s ′ , I ) − f P ( s , I ) f_P(s',I)-f_P(s,I) f P ( s ′ , I ) − f P ( s , I ) for a maximization problem (with the instance fixed). A move is improving if and only if its gain is positive. A sequence of solutions s 0 , s 1 , … , s ℓ s_0,s_1,\ldots,s_\ell s 0 , s 1 , … , s ℓ is an improving sequence of length ℓ \ell ℓ if, for each i ∈ { 1 , … , ℓ } i\in\{1,\ldots,\ell\} i ∈ { 1 , … , ℓ } , we have s i ∈ N P ( s i − 1 , I ) s_i\in N_P(s_{i-1},I) s i ∈ N P ( s i − 1 , I ) and the move from s i − 1 s_{i-1} s i − 1 to s i s_i s i is improving. It is maximal if s ℓ s_\ell s ℓ is a local optimum.
Definition 4 (All-exp property). A local-search problem P P P has the all-exp property if there are infinitely many pairs of an instance I ∈ D P I\in D_P I ∈ D P and an initial solution s ∈ F P ( I ) s\in F_P(I) s ∈ F P ( I ) , for which the standard local-search algorithm needs an exponential number of iterations for all possible pivot rules. (By exponential, we mean a growth of at least Ω ( 2 n ) \Omega(2^n) Ω ( 2 n ) for some constant ϵ > 0 \epsilon>0 ϵ > 0 and instances of size n n n .)
An alternative way to define the all-exp property is to consider the transition graph of an instance I I I of a local-search problem P P P . This graph has as vertices all the solutions F P ( I ) F_P(I) F P ( I ) and there exists a directed edge ( s , s ′ ) (s,s') ( s , s ′ ) if the solution s ′ s' s ′ is in the neighborhood of s s s and has a strictly better objective value than s s s . By definition, the transition graph is acyclic, and a directed path of length ℓ \ell ℓ in the transition graph corresponds to ℓ \ell ℓ iterations of the standard local-search algorithm. A local optimum corresponds to a sink in the transition graph. Hence, a local-search problem has the all-exp property if and only if there exist infinitely many pairs of instances and initial solutions such that all paths in the transition graph from the initial solution to a sink have exponential length.
TSP with the k k k -opt neighborhood
A Hamiltonian cycle of a graph is a cycle that contains all vertices of the graph. In this paper, we also refer to a Hamiltonian cycle as a tour .
A TSP instance is a tuple ( G , c ) (G,c) ( G , c ) , where G G G is a complete undirected graph ( V , E ) (V,E) ( V , E ) , and c : E → N c:E\to\mathbb{N} c : E → N is a function that assigns a weight to each edge of G G G . The goal is to find a tour of G G G that minimizes the sum of the edge weights in the tour. We call this sum the weight of the tour .
A swap is a tuple ( E 1 , E 2 ) (E_1,E_2) ( E 1 , E 2 ) of subsets E 1 , E 2 ⊆ E E_1,E_2\subseteq E E 1 , E 2 ⊆ E with ∣ E 1 ∣ = ∣ E 2 ∣ |E_1|=|E_2| ∣ E 1 ∣ = ∣ E 2 ∣ . For an integer k k k , a swap ( E 1 , E 2 ) (E_1,E_2) ( E 1 , E 2 ) with ∣ E 1 ∣ ≤ k |E_1|\leq k ∣ E 1 ∣ ≤ k is called a k k k -swap . For a subgraph G ′ G' G ′ of G G G , and two edge sets E 1 , E 2 E_1,E_2 E 1 , E 2 with E 1 ⊆ E ( G ′ ) E_1\subseteq E(G') E 1 ⊆ E ( G ′ ) , performing a swap ( E 1 , E 2 ) (E_1,E_2) ( E 1 , E 2 ) on G ′ G' G ′ refers to the act of removing E 1 E_1 E 1 from G ′ G' G ′ and adding E 2 E_2 E 2 to G ′ G' G ′ . We also call it swapping E 1 E_1 E 1 for E 2 E_2 E 2 in G ′ G' G ′ . Given a tour τ \tau τ , a swap ( E 1 , E 2 ) (E_1,E_2) ( E 1 , E 2 ) has gain ∑ e ∈ E 1 c ( e ) − ∑ e ∈ E 2 c ( e ) \sum_{e\in E_1}c(e)-\sum_{e\in E_2}c(e) ∑ e ∈ E 1 c ( e ) − ∑ e ∈ E 2 c ( e ) , and it is improving for τ \tau τ if after swapping E 1 E_1 E 1 for E 2 E_2 E 2 in τ \tau τ , we obtain a tour of smaller weight.
A ( k (k ( k -)$swap sequence is a sequence L = ( S 1 , … , S ℓ ) L=(S_1,\ldots,S_\ell) L = ( S 1 , … , S ℓ ) , such that each S i S_i S i is a ( k (k ( k -)$swap. A sequence L L L is improving for a tour τ \tau τ if, for each i ∈ { 1 , … , ℓ } i\in\{1,\ldots,\ell\} i ∈ { 1 , … , ℓ } , the swap S i S_i S i is improving for the tour obtained from τ \tau τ by performing S 1 , … , S i − 1 S_1,\ldots,S_{i-1} S 1 , … , S i − 1 .
In the local-search problem TSP with the k k k -opt neighborhood, the neighbors of a tour τ \tau τ are those that can be obtained from τ \tau τ by a k k k -swap. The k k k -opt algorithm is then the standard local-search algorithm for this problem, and an execution of the algorithm corresponds to an improving k k k -swap sequence.
Maximum Constraint Assignment
An instance of ( p , q , r ) (p,q,r) ( p , q , r ) -Maximum Constraint Assignment , abbreviated as ( p , q , r ) (p,q,r) ( p , q , r ) -MCA, consists of a set of variables X = { x 1 , … , x n } X=\{x_1,\ldots,x_n\} X = { x 1 , … , x n } and a set of constraints C = { C 1 , … , C m } \mathcal{C}=\{C_1,\ldots,C_m\} C = { C 1 , … , C m } . Each variable takes a value in { 0 , … , r − 1 } \{0,\ldots,r-1\} { 0 , … , r − 1 } . A constraint C i ( x i 1 , … , x i p i ) C_i(x_{i_1},\ldots,x_{i_{p_i}}) C i ( x i 1 , … , x i p i ) , for p i ≤ p p_i\leq p p i ≤ p , assigns an integer weight to every possible assignment of the variables appearing in it. Moreover, every variable appears in at most q q q constraints.
For an assignment σ : X → { 0 , … , r − 1 } \sigma:X\to\{0,\ldots,r-1\} σ : X → { 0 , … , r − 1 } , its value is
Φ ( σ ) = ∑ C i ∈ C C i ( σ ( x i 1 ) , … , σ ( x i p i ) ) . \Phi(\sigma)=\sum_{C_i\in\mathcal{C}} C_i\bigl(\sigma(x_{i_1}),\ldots,\sigma(x_{i_{p_i}})\bigr). Φ ( σ ) = C i ∈ C ∑ C i ( σ ( x i 1 ) , … , σ ( x i p i ) ) .
The objective is to maximize Φ \Phi Φ .
In this paper, we only consider the binary case r = 2 r=2 r = 2 . For an assignment σ \sigma σ and a variable x ∈ X x\in X x ∈ X , the flip of x x x is the assignment obtained from σ \sigma σ by replacing σ ( x ) \sigma(x) σ ( x ) with 1 − σ ( x ) 1-\sigma(x) 1 − σ ( x ) and leaving all other variables unchanged. The flip neighborhood of an assignment σ \sigma σ consists of all assignments obtained from σ \sigma σ by flipping exactly one variable. The flip of x x x at σ \sigma σ has gain Φ ( σ [ x ↦ 1 − σ ( x ) ] ) − Φ ( σ ) \Phi(\sigma[x\mapsto1-\sigma(x)])-\Phi(\sigma) Φ ( σ [ x ↦ 1 − σ ( x )]) − Φ ( σ ) ; it is improving if it increases the value of the assignment. For brevity, we also say that x x x is improving if the flip of x x x is improving. An assignment with no improving variable is a local optimum . An improving flip sequence is a sequence ( y 1 , … , y ℓ ) (y_1,\ldots,y_\ell) ( y 1 , … , y ℓ ) such that, starting from a given assignment, the flip of y j y_j y j is improving after the preceding flips y 1 , … , y j − 1 y_1,\ldots,y_{j-1} y 1 , … , y j − 1 have been performed.
(3,2,2)-MCA has the all-exp property
In this section, we prove the following.
Theorem 2. ( 3 , 2 , 2 ) (3,2,2) ( 3 , 2 , 2 ) -MCA with the flip neighborhood has the all-exp property .
In this setting, every constraint has at most three variables, each variable occurs in at most two constraints, and all variables are binary. We show the theorem above via a direct construction. For each n ∈ N n \in\mathbb{N} n ∈ N , we give an instance I n I_n I n with O ( n ) O(n) O ( n ) variables and constraints, together with an initial assignment. We then show that there is a unique maximal improving sequence of flips of length Ω ( 2 n ) \Omega(2^n) Ω ( 2 n ) starting from the initial assignment. Since all constraint weights are at most 2 n + 4 2^{n+4} 2 n + 4 , the instance I n I_n I n can be encoded with O ( n 2 ) O(n^2) O ( n 2 ) bits, so this length is exponential in the instance size in the sense of our definition.
The construction. The instance I n I_n I n consists of variables and constraints organized in n + 1 n+1 n + 1 layers. The base layer (i = 0 i=0 i = 0 ) consists of two variables X 0 = { v 0 , 1 , v 0 , 6 } X_0=\{v_{0,1},v_{0,6}\} X 0 = { v 0 , 1 , v 0 , 6 } and one constraint C 0 ( v 0 , 1 , v 0 , 6 ) C_0(v_{0,1},v_{0,6}) C 0 ( v 0 , 1 , v 0 , 6 ) , while each layer i ∈ [ n ] i\in[n] i ∈ [ n ] consists of six variables X i = { v i , 1 , v i , 2 , v i , 3 , v i , 4 , v i , 5 , v i , 6 } X_i=\{v_{i,1},v_{i,2},v_{i,3},v_{i,4},v_{i,5},v_{i,6}\} X i = { v i , 1 , v i , 2 , v i , 3 , v i , 4 , v i , 5 , v i , 6 } and four constraints C i , 1 ( v i − 1 , 1 , v i , 1 , v i , 3 ) C_{i,1}(v_{i-1,1},v_{i,1},v_{i,3}) C i , 1 ( v i − 1 , 1 , v i , 1 , v i , 3 ) , C i , 2 ( v i − 1 , 6 , v i , 2 , v i , 4 ) C_{i,2}(v_{i-1,6},v_{i,2},v_{i,4}) C i , 2 ( v i − 1 , 6 , v i , 2 , v i , 4 ) , C i , 3 ( v i , 2 , v i , 3 , v i , 5 ) C_{i,3}(v_{i,2},v_{i,3},v_{i,5}) C i , 3 ( v i , 2 , v i , 3 , v i , 5 ) , and C i , 4 ( v i , 4 , v i , 5 , v i , 6 ) C_{i,4}(v_{i,4},v_{i,5},v_{i,6}) C i , 4 ( v i , 4 , v i , 5 , v i , 6 ) . All variables can assume the values 0 and 1, which we also identify with ∙ \bullet ∙ (green) and ∘ \circ ∘ (red), respectively. See Figure 1 . The weights of C 0 C_0 C 0 and other constraints are given by Table 1 and Table 2 , respectively.
Figure 1. The ( 3 , 2 , 2 ) (3,2,2) ( 3 , 2 , 2 ) -MCA instance I 2 I_2 I 2 , showing the values of the variables in the local optimum reached from the initial all-zero assignment: the variables of layer 2 have value 1 (red), and all other variables have value 0 (green).
Table 1. The weights of constraint C 0 C_0 C 0 .
Table 2. The weights of the four constraints C i , 1 C_{i,1} C i , 1 , C i , 2 C_{i,2} C i , 2 , C i , 3 C_{i,3} C i , 3 and C i , 4 C_{i,4} C i , 4 for all i ∈ [ n ] i \in[n] i ∈ [ n ] .
Initial assignment. Every variable is initialized as zero (∙ \bullet ∙ ).
Unique maximal improving flip sequence. We now characterize the unique maximal improving flip sequence for the construction above.
Lemma 6. Starting from the all-zero assignment, the unique maximal improving flip sequence S n S_n S n for I n I_n I n is given recursively by
S 0 = ( v 0 , 1 , v 0 , 6 ) , (1) S_0=(v_{0,1},v_{0,6}), \tag*{(1)} S 0 = ( v 0 , 1 , v 0 , 6 ) , (1) S i = ( v i , 1 , S i − 1 , v i , 2 , v i , 3 , S i − 1 , v i , 4 , v i , 5 , v i , 6 ) ( i ≥ 1 ) . (2) S_i=(v_{i,1},S_{i-1},v_{i,2},v_{i,3},S_{i-1},v_{i,4},v_{i,5},v_{i,6})\qquad(i\ge1). \tag*{(2)} S i = ( v i , 1 , S i − 1 , v i , 2 , v i , 3 , S i − 1 , v i , 4 , v i , 5 , v i , 6 ) ( i ≥ 1 ) . (2) Every flip in this sequence increases the objective value by exactly 1. The resulting number of flips is 8 ⋅ 2 n − 6 8\cdot2^n-6 8 ⋅ 2 n − 6 .
Proof. Recall that we identify green (•) with 0 and red (◦) with 1. For i ≥ 0 i\ge0 i ≥ 0 , let F i F_i F i denote the objective consisting of the sum of C 0 C_0 C 0 and all constraints C j , k C_{j,k} C j , k with 1 ≤ j ≤ i 1\le j\le i 1 ≤ j ≤ i , 1 ≤ k ≤ 4 1\le k\le4 1 ≤ k ≤ 4 . Thus, F n F_n F n is the objective of the complete instance.
Let G i G_i G i denote the assignment in which all variables in X 0 ∪ ⋯ ∪ X i X_0\cup\cdots\cup X_i X 0 ∪ ⋯ ∪ X i are green, and let R i R_i R i denote the assignment in which all variables of X i X_i X i are red while all variables in X 0 ∪ ⋯ ∪ X i − 1 X_0\cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 are green. For i ≥ 0 i\ge0 i ≥ 0 , define the auxiliary objective
F ^ i : = F i + 2 i + 4 ( 1 − v i , 1 ) + 12 v i , 6 . \widehat{F}_i:=F_i+2^{i+4}(1-v_{i,1})+12v_{i,6}. F i := F i + 2 i + 4 ( 1 − v i , 1 ) + 12 v i , 6 .
This auxiliary objective is used only in the proof to capture the contribution of layer i + 1 i+1 i + 1 to the preceding layers during the second occurrence of S i S_i S i in S i + 1 S_{i+1} S i + 1 .
We prove simultaneously by induction on i i i that
( A i ) (A_i) ( A i ) with respect to F i F_i F i , starting from G i G_i G i , the unique maximal improving sequence is S i S_i S i ; every flip has gain 1, and the sequence ends in the local optimum R i R_i R i ;
( B i ) (B_i) ( B i ) with respect to F ^ i \widehat{F}_i F i , starting from R i R_i R i , the unique maximal improving sequence is again S i S_i S i ; every flip has gain 1, and the sequence ends in the local optimum G i G_i G i .
For i = 0 i=0 i = 0 , we have F 0 = C 0 F_0=C_0 F 0 = C 0 and
1 = C 0 ( 01 ) < C 0 ( 00 ) = 14 < C 0 ( 10 ) = 15 < C 0 ( 11 ) = 16. 1=C_0(01)<C_0(00)=14<C_0(10)=15<C_0(11)=16. 1 = C 0 ( 01 ) < C 0 ( 00 ) = 14 < C 0 ( 10 ) = 15 < C 0 ( 11 ) = 16.
Hence, the unique maximal improving sequence from 00 is S 0 = ( v 0 , 1 , v 0 , 6 ) S_0=(v_{0,1},v_{0,6}) S 0 = ( v 0 , 1 , v 0 , 6 ) , it ends in 11 = R 0 =R_0 = R 0 , and both flips have gain 1. Moreover, F ^ 0 = F 0 + 16 ( 1 − v 0 , 1 ) + 12 v 0 , 6 \widehat{F}_0=F_0+16(1-v_{0,1})+12v_{0,6} F 0 = F 0 + 16 ( 1 − v 0 , 1 ) + 12 v 0 , 6 . Starting from 11, the objective values along the same sequence of flips are 28, 29, 30 on the assignments 11, 01, 00 = G 0 G_0 G 0 , respectively, while the objective value for the assignment 10 is 15. Therefore, ( A 0 ) (A_0) ( A 0 ) and ( B 0 ) (B_0) ( B 0 ) hold.
Now let i ≥ 1 i \ge1 i ≥ 1 and assume ( A i − 1 ) (A_{i-1}) ( A i − 1 ) and ( B i − 1 ) (B_{i-1}) ( B i − 1 ) . Let P i : = 2 i + 3 P_i := 2^{i+3} P i := 2 i + 3 , x : = v i − 1 , 1 x := v_{i-1,1} x := v i − 1 , 1 , and y : = v i − 1 , 6 y := v_{i-1,6} y := v i − 1 , 6 . We write the assignment of the variables in X i X_i X i as a six-bit word in the order v i , 1 , … , v i , 6 v_{i,1}, \ldots, v_{i,6} v i , 1 , … , v i , 6 . For a fixed assignment of X i X_i X i , we call the objective (F i F_i F i in ( A i ) (A_i) ( A i ) and F ^ i \widehat{F}_i F i in ( B i ) (B_i) ( B i ) ), viewed as a function of the variables in X 0 ∪ ⋯ ∪ X i − 1 X_0 \cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 , the objective on the preceding layers .
We prove ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) simultaneously. Initially, in ( A i ) (A_i) ( A i ) , the variables in X i X_i X i have assignment 000000, whereas in ( B i ) (B_i) ( B i ) they have assignment 111111. The variables in X 0 ∪ ⋯ ∪ X i − 1 X_0 \cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 are initially in G i − 1 G_{i-1} G i − 1 in both cases.
We claim that the objective on the preceding layers is the same in both cases, up to an additive constant. Suppose that X i = 000000 X_i = 000000 X i = 000000 , as in ( A i ) (A_i) ( A i ) . The constraints C i , 3 C_{i,3} C i , 3 and C i , 4 C_{i,4} C i , 4 contain only variables of X i X_i X i and therefore contribute only an additive constant to the objective on the preceding layers. Moreover, C i , 2 ( y , 0 , 0 ) = 2 C_{i,2}(y,0,0) = 2 C i , 2 ( y , 0 , 0 ) = 2 for both values of y y y , while C i , 1 ( x , 0 , 0 ) C_{i,1}(x,0,0) C i , 1 ( x , 0 , 0 ) equals P i P_i P i for x = 0 x = 0 x = 0 and 0 for x = 1 x = 1 x = 1 . Thus, up to an additive constant, the objective on the preceding layers is
F i − 1 + P i ( 1 − x ) . F_{i-1} + P_i(1-x). F i − 1 + P i ( 1 − x ) .
For the corresponding assignment X i = 111111 X_i = 111111 X i = 111111 in ( B i ) (B_i) ( B i ) , C i , 1 ( x , 1 , 1 ) C_{i,1}(x,1,1) C i , 1 ( x , 1 , 1 ) has the same dependence on x x x , up to an additive constant, and C i , 2 ( y , 1 , 1 ) = 14 C_{i,2}(y,1,1) = 14 C i , 2 ( y , 1 , 1 ) = 14 for both values of y y y . The additional terms in F ^ i \widehat{F}_i F i depend only on variables in X i X_i X i and hence also contribute only an additive constant. Therefore, the objective on the preceding layers is again F i − 1 + P i ( 1 − x ) F_{i-1} + P_i(1-x) F i − 1 + P i ( 1 − x ) , up to an additive constant.
By ( A i − 1 ) (A_{i-1}) ( A i − 1 ) , at G i − 1 G_{i-1} G i − 1 the unique improving variable with respect to F i − 1 F_{i-1} F i − 1 is x = v i − 1 , 1 x = v_{i-1,1} x = v i − 1 , 1 , and flipping it increases the objective value by 1. The additional term P i ( 1 − x ) P_i(1-x) P i ( 1 − x ) decreases the change caused by flipping x x x by P i P_i P i , while it does not affect the change caused by flipping any other variable. Hence, no variable in X 0 ∪ ⋯ ∪ X i − 1 X_0 \cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 is improving in both ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) .
At this point ( x , y ) = 00 (x,y) = 00 ( x , y ) = 00 . Comparing the values of F i F_i F i in ( A i ) (A_i) ( A i ) and of F ^ i \widehat{F}_i F i in ( B i ) (B_i) ( B i ) before and after each possible flip in X i X_i X i shows that v i , 1 v_{i,1} v i , 1 is the unique improving variable in X i X_i X i in both ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) , and that flipping it increases the objective value by exactly 1. Thus, v i , 1 v_{i,1} v i , 1 is the unique improving variable in both cases.
The remaining steps use the same type of calculation. Table 3 summarizes the information about layer i i i that we will use below. In each row, the first and second columns give the corresponding assignments of X i X_i X i in ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) , respectively. The third column gives, for both assignments, the objective on X 0 ∪ ⋯ ∪ X i − 1 X_0 \cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 up to an additive constant. The last column gives all improving variables in X i X_i X i for the values of ( x , y ) (x,y) ( x , y ) that occur at the corresponding point of the sequence; “none” means that no variable in X i X_i X i is improving. Every flip listed in the last column increases the objective value by exactly 1.
Table 3. Information about layer i i i used in the induction. The third column gives the objective on X 0 ∪ ⋯ ∪ X i − 1 X_0 \cup\cdots\cup X_{i-1} X 0 ∪ ⋯ ∪ X i − 1 , up to an additive constant, for both assignments in the corresponding row. The last column applies to both assignments and gives all improving variables in X i X_i X i for the indicated values of ( x , y ) (x,y) ( x , y ) ; each listed flip increases the objective value by exactly 1.
For the fourth row, we use
F i − 1 + P i ( 1 − x ) + 12 y = F i − 1 + 2 i + 3 ( 1 − v i − 1 , 1 ) + 12 v i − 1 , 6 = F ^ i − 1 . F_{i-1} + P_i(1-x) + 12y = F_{i-1} + 2^{i+3}(1-v_{i-1,1}) + 12v_{i-1,6} = \widehat{F}_{i-1}. F i − 1 + P i ( 1 − x ) + 12 y = F i − 1 + 2 i + 3 ( 1 − v i − 1 , 1 ) + 12 v i − 1 , 6 = F i − 1 .
We now continue the argument simultaneously for ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) . Whenever we refer to a row of Table 3 , the first column gives the assignment of X i X_i X i in ( A i ) (A_i) ( A i ) , while the second column gives its assignment in ( B i ) (B_i) ( B i ) . By the third and fourth columns, however, the objective on the preceding layers and the improving variables in X i X_i X i are the same in both cases. Thus, the following argument applies to both.
After flipping v i , 1 v_{i,1} v i , 1 , we reach the second row of Table 3 , and the objective on the preceding layers is F i − 1 F_{i-1} F i − 1 . Hence, by ( A i − 1 ) (A_{i-1}) ( A i − 1 ) , their unique improving sequence is S i − 1 S_{i-1} S i − 1 , taking G i − 1 \mathbf{G}_{i-1} G i − 1 to R i − 1 \mathbf{R}_{i-1} R i − 1 .
By the recursive definition of S i − 1 S_{i-1} S i − 1 , the variable x = v i − 1 , 1 x=v_{i-1,1} x = v i − 1 , 1 is its first flip and y = v i − 1 , 6 y=v_{i-1,6} y = v i − 1 , 6 is its last flip, and these two variables are flipped exactly once. Consequently, while S i − 1 S_{i-1} S i − 1 is performed, ( x , y ) (x,y) ( x , y ) changes from 00 to 10 and finally to 11. By the second row of Table 3 , no variable in X i X_i X i is improving while ( x , y ) (x,y) ( x , y ) is 00 or 10. Thus, the sequence S i − 1 S_{i-1} S i − 1 is forced to continue. When it is complete, the preceding layers are in R i − 1 \mathbf{R}_{i-1} R i − 1 , which is a local optimum with respect to F i − 1 F_{i-1} F i − 1 by ( A i − 1 ) (A_{i-1}) ( A i − 1 ) , and ( x , y ) = 11 (x,y)=11 ( x , y ) = 11 . The second row of the table then shows that v i , 2 v_{i,2} v i , 2 is the unique improving variable.
After flipping v i , 2 v_{i,2} v i , 2 , we reach the third row of the table, and the objective on the preceding layers is F i − 1 + 12 y F_{i-1}+12y F i − 1 + 12 y . These variables are still in R i − 1 \mathbf{R}_{i-1} R i − 1 . By ( A i − 1 ) (A_{i-1}) ( A i − 1 ) , R i − 1 \mathbf{R}_{i-1} R i − 1 is a local optimum with respect to F i − 1 F_{i-1} F i − 1 . Since y = 1 y=1 y = 1 , the additional term 12 y 12y 12 y decreases the change in the objective caused by flipping y y y , while it does not affect any other variable. Hence, no variable in the preceding layers is improving. By the third row of Table 3 , v i , 3 v_{i,3} v i , 3 is therefore the unique improving variable.
After flipping v i , 3 v_{i,3} v i , 3 , we reach the fourth row of the table. The objective on the preceding layers is now F ^ i − 1 \widehat{F}_{i-1} F i − 1 . By ( B i − 1 ) (B_{i-1}) ( B i − 1 ) , their unique improving sequence is S i − 1 S_{i-1} S i − 1 , now taking R i − 1 \mathbf{R}_{i-1} R i − 1 back to G i − 1 \mathbf{G}_{i-1} G i − 1 .
Again, x x x is the first variable and y y y the last variable flipped in S i − 1 S_{i-1} S i − 1 . Hence, during this second occurrence of S i − 1 S_{i-1} S i − 1 , ( x , y ) (x,y) ( x , y ) changes from 11 to 01 and finally to 00. By the fourth row of Table 3 , no variable in X i X_i X i is improving while ( x , y ) (x,y) ( x , y ) is 11 or 01. Thus, the sequence S i − 1 S_{i-1} S i − 1 is again forced to continue. When it is complete, the preceding layers are in G i − 1 \mathbf{G}_{i-1} G i − 1 , which is a local optimum with respect to F ^ i − 1 \widehat{F}_{i-1} F i − 1 by ( B i − 1 ) (B_{i-1}) ( B i − 1 ) , and ( x , y ) = 00 (x,y)=00 ( x , y ) = 00 . The fourth row of the table then shows that v i , 4 v_{i,4} v i , 4 is the unique improving variable.
After flipping v i , 4 v_{i,4} v i , 4 , we reach the fifth row of the table. The objective on the preceding layers is again F i − 1 + P i ( 1 − x ) F_{i-1}+P_i(1-x) F i − 1 + P i ( 1 − x ) , and these variables are in G i − 1 \mathbf{G}_{i-1} G i − 1 . By the same argument as for the initial assignment, no variable in the preceding layers is improving. The fifth row of the table therefore shows that v i , 5 v_{i,5} v i , 5 is the unique improving variable.
After flipping v i , 5 v_{i,5} v i , 5 , we reach the sixth row. The objective on the preceding layers is unchanged, and their assignment is still G i − 1 \mathbf{G}_{i-1} G i − 1 . Hence, no variable in the preceding layers is improving, and the sixth row of the table shows that v i , 6 v_{i,6} v i , 6 is the unique improving variable.
We have therefore shown that in both ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) the unique improving sequence is
( v i , 1 , S i − 1 , v i , 2 , v i , 3 , S i − 1 , v i , 4 , v i , 5 , v i , 6 ) = S i . (v_{i,1}, S_{i-1}, v_{i,2}, v_{i,3}, S_{i-1}, v_{i,4}, v_{i,5}, v_{i,6}) = S_i. ( v i , 1 , S i − 1 , v i , 2 , v i , 3 , S i − 1 , v i , 4 , v i , 5 , v i , 6 ) = S i .
Every flip in this sequence increases the objective value by exactly 1: this follows from the induction hypotheses for the two occurrences of S i − 1 S_{i-1} S i − 1 and from Table 3 for the flips of variables in X i X_i X i .
After the final flip, the preceding layers are in G i − 1 \mathbf{G}_{i-1} G i − 1 , and the last row of the table applies. No variable in X i X_i X i is improving, and the objective on the preceding layers is F i − 1 + P i ( 1 − x ) F_{i-1} + P_i(1-x) F i − 1 + P i ( 1 − x ) . As above, no variable in the preceding layers is improving either. Hence, the resulting assignment is a local optimum.
In ( A i ) (A_i) ( A i ) , the variables in X i X_i X i have changed from 000000 to 111111, while the preceding layers have returned to G i − 1 \mathbf{G}_{i-1} G i − 1 . Thus, the sequence ends in R i \mathbf{R}_i R i . In ( B i ) (B_i) ( B i ) , the variables in X i X_i X i have changed from 111111 to 000000, while the preceding layers have again returned to G i − 1 \mathbf{G}_{i-1} G i − 1 . Thus, the sequence ends in G i \mathbf{G}_i G i . This completes the induction for ( A i ) (A_i) ( A i ) and ( B i ) (B_i) ( B i ) . For i = n i=n i = n , statement ( A n ) (A_n) ( A n ) is exactly the claim of the lemma, since F n F_n F n is the objective of I n I_n I n and G n \mathbf{G}_n G n is the all-zero assignment.
It remains to count the flips. Let L i : = ∣ S i ∣ L_i := |S_i| L i := ∣ S i ∣ . From (1) and (2), we have L 0 = 2 L_0 = 2 L 0 = 2 and L i = 2 L i − 1 + 6 L_i = 2L_{i-1} + 6 L i = 2 L i − 1 + 6 . Therefore, L i = 8 ⋅ 2 i − 6 L_i = 8 \cdot2^i - 6 L i = 8 ⋅ 2 i − 6 for all i i i .
We now prove the main result of this section.
Proof of Theorem 2. Observe that I n I_n I n has 6 n + 2 6n+2 6 n + 2 variables and 4 n + 1 4n+1 4 n + 1 constraints, and every constraint weight is at most 2 n + 4 2^{n+4} 2 n + 4 and can thus be encoded with O ( n ) O(n) O ( n ) bits. Combining this with Lemma 6, we obtain the all-exp property for ( 3 , 2 , 2 ) (3,2,2) ( 3 , 2 , 2 ) -MCA.
TSP with the 2-opt neighborhood has the all-exp property
In this section, we prove the following:
Theorem 1. The Traveling Salesman Problem with the 2-opt neighborhood has the all-exp property.
In particular, we construct an instance I n I_n I n for each n ∈ N n \in\mathbb{N} n ∈ N and an initial tour with O ( n ) O(n) O ( n ) vertices. We then show that all maximal improving swap sequences starting from this tour have length Ω ( 2 n ) \Omega(2^n) Ω ( 2 n ) ; in fact, they are all identical up to interchanging certain commuting swaps and terminate with the same local optimum.
The construction
The instance I n I_n I n consists of n + 1 n+1 n + 1 layers F 0 , F 1 , … , F n F_0,F_1,\ldots,F_n F 0 , F 1 , … , F n . Each layer contains one or two gadgets as depicted in Figure 2 and described in more detail below. Two consecutive layers interact via interfaces . In particular, for a symbol T T T , we call the path ( T , T ′ ′ , T ′ ) (T,T^{\prime\prime},T^{\prime}) ( T , T ′′ , T ′ ) with edge weights zero a T T T -interface. We also define a : = 2 n + 2 + 3 a:=2^{n+2}+3 a := 2 n + 2 + 3 and j i : = n + 1 − i j_i:=n+1-i j i := n + 1 − i for i ∈ [ n − 1 ] i\in[n-1] i ∈ [ n − 1 ] .
Figure 2. Left: Gadget for F 0 F_0 F 0 . Middle: Upper gadget and lower gadget for F i F_i F i , i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] . Right: Gadget for F n F_n F n . All subscripts are omitted.
Gadgets. First, F 0 F_0 F 0 has an A 0 A_0 A 0 -interface, a B 0 B_0 B 0 -interface, together with three vertices C 0 C_0 C 0 , C 0 ′ ′ C_0^{\prime\prime} C 0 ′′ , and C 0 ′ C_0^{\prime} C 0 ′ . The two vertices C 0 C_0 C 0 and C 0 ′ C_0^{\prime} C 0 ′ are connected with C 0 ′ ′ C_0^{\prime\prime} C 0 ′′ , A 0 A_0 A 0 , A 0 ′ A_0^{\prime} A 0 ′ , B 0 B_0 B 0 and B 0 ′ B_0^{\prime} B 0 ′ . Among these edges, A 0 C 0 ′ A_0C_0^{\prime} A 0 C 0 ′ , A 0 ′ C 0 A_0^{\prime}C_0 A 0 ′ C 0 , C 0 B 0 C_0B_0 C 0 B 0 , and C 0 ′ B 0 ′ C_0^{\prime}B_0^{\prime} C 0 ′ B 0 ′ have weights a a a , 4 4 4 , 3 3 3 , and a − 1 a-1 a − 1 , respectively, while other edges have weight zero.
Second, for i ∈ [ n − 1 ] i\in[n-1] i ∈ [ n − 1 ] , F i F_i F i consists of two gadgets connected by two paths of length two. The upper gadget of F i F_i F i consists of an X i X_i X i -interface, an A i A_i A i -interface, and two vertices C i ′ C_i^{\prime} C i ′ and D i D_i D i . The lower gadget of F i F_i F i consists of a Y i Y_i Y i -interface, a B i B_i B i -interface, and three vertices C i C_i C i , D i ′ D_i^{\prime} D i ′ , and E i E_i E i . We add two paths of length two ( C i ′ , C i ′ ′ , C i ) (C_i^{\prime},C_i^{\prime\prime},C_i) ( C i ′ , C i ′′ , C i ) and ( D i ′ , D i ′ ′ , D i ) (D_i^{\prime},D_i^{\prime\prime},D_i) ( D i ′ , D i ′′ , D i ) with edge weights zero. The edges with nonzero weights in this layer are listed in Table 4 . Additionally, we have the following edges with zero weights:
Table 4. Weight assignment of the non-zero-weighted edges in the upper (top) and lower gadgets (bottom) for F i F_i F i , i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] . Subscripts i i i are omitted. a = 2 n + 2 + 3 a = 2^{n+2} + 3 a = 2 n + 2 + 3 . j i = n + 1 − i j_i = n+1-i j i = n + 1 − i .
A i C i ′ , A i ′ D i , C i ′ D i , D i ′ E i , C i Y i , E i Y i ′ , B i E i , D i ′ Y i ′ , B i ′ D i ′ , B i ′ C i , B i ′ Y i . A_iC_i^{\prime}, A_i^{\prime}D_i, C_i^{\prime}D_i, D_i^{\prime}E_i, C_iY_i, E_iY_i^{\prime}, B_iE_i, D_i^{\prime}Y_i^{\prime}, B_i^{\prime}D_i^{\prime}, B_i^{\prime}C_i, B_i^{\prime}Y_i. A i C i ′ , A i ′ D i , C i ′ D i , D i ′ E i , C i Y i , E i Y i ′ , B i E i , D i ′ Y i ′ , B i ′ D i ′ , B i ′ C i , B i ′ Y i .
Last, F n F_n F n has an X n X_n X n -interface, a Y n Y_n Y n -interface, and a vertex C n C_n C n . We then add the edge C n X n C_nX_n C n X n with weight a 2 n a2^n a 2 n (recall that a = 2 n + 2 + 3 a=2^{n+2}+3 a = 2 n + 2 + 3 ), and edges C n X n ′ C_nX_n^{\prime} C n X n ′ , C n Y n C_nY_n C n Y n , and C n Y n ′ C_nY_n^{\prime} C n Y n ′ with weight zero.
Interface identification. For two consecutive layers F i F_i F i and F i + 1 F_{i+1} F i + 1 , we identify the A i A_i A i -interface with the reverse of the X i + 1 X_{i+1} X i + 1 -interface; more precisely, A i ≡ X i + 1 ′ A_i\equiv X_{i+1}^{\prime} A i ≡ X i + 1 ′ , A i ′ ′ ≡ X i + 1 ′ ′ A_i^{\prime\prime}\equiv X_{i+1}^{\prime\prime} A i ′′ ≡ X i + 1 ′′ , and A i ′ ≡ X i + 1 A_i' \equiv X_{i+1} A i ′ ≡ X i + 1 . Similarly, we identify the B i B_i B i -interface with the reverse of the Y i + 1 Y_{i+1} Y i + 1 -interface; that is B i ≡ Y i + 1 ′ B_i \equiv Y_{i+1}' B i ≡ Y i + 1 ′ , B i ′ ′ ≡ Y i + 1 ′ ′ B_i'' \equiv Y_{i+1}'' B i ′′ ≡ Y i + 1 ′′ , and B i ′ ≡ Y i + 1 B_i' \equiv Y_{i+1} B i ′ ≡ Y i + 1 .
Initial tour. For a symbol T T T , we denote by T → T ′ T \to T' T → T ′ the path ( T , T ′ ′ , T ′ ) (T,T'',T') ( T , T ′′ , T ′ ) and T ′ → T T' \to T T ′ → T the reverse. Then consider τ 0 \tau_0 τ 0 to be the union of the edges in the following paths:
In F 0 F_0 F 0 , the path ( A 0 ′ → A 0 , C 0 → C 0 ′ , B 0 → B 0 ′ ) (A_0' \to A_0,C_0 \to C_0',B_0 \to B_0') ( A 0 ′ → A 0 , C 0 → C 0 ′ , B 0 → B 0 ′ ) ;
In F i F_i F i for i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the two paths ( A i ′ → A i , X i → X i ′ ) (A_i' \to A_i,X_i \to X_i') ( A i ′ → A i , X i → X i ′ ) and ( Y i ′ → Y i , C i → C i ′ , D i → D i ′ , E i , B i → B i ′ ) (Y_i' \to Y_i,C_i \to C_i',D_i \to D_i',E_i,B_i \to B_i') ( Y i ′ → Y i , C i → C i ′ , D i → D i ′ , E i , B i → B i ′ ) ;
In F n F_n F n , the path Y n ′ → Y n , C n , X n → X n ′ Y_n' \to Y_n,C_n,X_n \to X_n' Y n ′ → Y n , C n , X n → X n ′ .
By construction, τ 0 \tau_0 τ 0 is then a Hamiltonian cycle. Note that descriptions of paths in consecutive layers above overlap precisely on their identified interfaces. See Figure 3 for an illustration of I 3 I_3 I 3 together with the prescribed initial tour.
Figure 3. Instance for n = 4 n=4 n = 4 with the initial tour shown in red.
Let G n G_n G n denote the graph obtained from the construction above. Note that formally a TSP instance requires a complete graph. We can simply obtain this complete graph G n ′ G_n' G n ′ from G n G_n G n by adding the missing edges, each with a very large weight (say 2 M + 1 2M+1 2 M + 1 , where M M M is the largest edge weight in the G n G_n G n ). The initial tour contains only edges of G n G_n G n . Moreover, any 2-swap that introduces an edge of E ( G n ′ ) ∖ E ( G n ) E(G_n') \setminus E(G_n) E ( G n ′ ) ∖ E ( G n ) adds weight at least 2 M + 1 2M+1 2 M + 1 , while the two removed edges have total weight at most 2 M 2M 2 M . Hence, such a swap cannot be improving. Consequently, no improving 2-opt sequence starting from the initial tour ever uses an edge of E ( G n ′ ) ∖ E ( G n ) E(G_n') \setminus E(G_n) E ( G n ′ ) ∖ E ( G n ) , and we may restrict our analysis from now on to G n G_n G n .
Tour characterization
In this subsection, we characterize the tours of G n G_n G n via the notion of the layer-path invariant defined below.
Definition 7. An edge set H H H of G n G_n G n satisfies the layer-path invariant if the following holds:
The restriction H 0 H_0 H 0 of H H H to F 0 F_0 F 0 is a spanning path of F 0 F_0 F 0 whose two endpoints lie on the A 0 A_0 A 0 - and B 0 B_0 B 0 -interfaces, respectively.
The restriction H n H_n H n of H H H to F n F_n F n is a spanning path of F n F_n F n whose two endpoints lie on the X n X_n X n - and Y n Y_n Y n -interfaces, respectively.
For every i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the restriction H i H_i H i of H H H to F i F_i F i is the disjoint union of two paths such that this union spans F i F_i F i . Further, each of these paths has one endpoint on one of the X i X_i X i - and Y i Y_i Y i -interfaces and one endpoint on one of the A i A_i A i - and B i B_i B i -interfaces. Moreover, the two paths have their endpoints on distinct interfaces; thus each of the four interfaces X i , Y i , A i , B i X_i,Y_i,A_i,B_i X i , Y i , A i , B i contains exactly one endpoint.
We have the following simple observation.
Observation 8. Every tour of G n G_n G n contains the edges incident to degree-two vertices (i.e., A i ′ ′ A_i^{\prime\prime} A i ′′ , B i ′ ′ B_i^{\prime\prime} B i ′′ , and C i ′ ′ C_i^{\prime\prime} C i ′′ for i ∈ { 0 , … , n − 1 } i \in\{0,\ldots,n-1\} i ∈ { 0 , … , n − 1 } and D i ′ ′ D_i^{\prime\prime} D i ′′ for i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] ).
Then we can characterize all tours of G n G_n G n as follows.
Lemma 9. An edge set H H H forms a tour of G n G_n G n , if and only if it is a 2-regular subgraph of G n G_n G n satisfying the layer-path invariant.
Proof. ( ⇒ ) (\Rightarrow) ( ⇒ ) : Suppose H H H forms a tour of G n G_n G n , then it is clearly a 2-regular subgraph. Observe that for every layer F i F_i F i for i ∈ { 0 , … , n − 1 } i \in\{0,\ldots,n-1\} i ∈ { 0 , … , n − 1 } , if we remove the A i A_i A i - and B i B_i B i -interfaces, then we disconnect the remainder of F 0 ∪ ⋯ ∪ F i F_0 \cup\cdots\cup F_i F 0 ∪ ⋯ ∪ F i from the remainder of F i + 1 ∪ ⋯ ∪ F n F_{i+1} \cup\cdots\cup F_n F i + 1 ∪ ⋯ ∪ F n . This implies that
(a) H H H restricted to the graph F 0 ∪ ⋯ ∪ F i F_0 \cup\cdots\cup F_i F 0 ∪ ⋯ ∪ F i is a path between a vertex of the A i A_i A i -interface and a vertex of the B i B_i B i -interface, and
(b) H H H restricted to the graph F i + 1 ∪ ⋯ ∪ F n F_{i+1} \cup\cdots\cup F_n F i + 1 ∪ ⋯ ∪ F n is a path between a vertex of the X i + 1 X_{i+1} X i + 1 -interface and the Y i + 1 Y_{i+1} Y i + 1 -interface.
Together with Observation 8, these already imply the first two conditions in Definition 7. For the last condition, by (a), we also obtain that for i ≥ 1 i \ge1 i ≥ 1 , H H H restricted to F 0 ∪ ⋯ ∪ F i − 1 F_0 \cup\cdots\cup F_{i-1} F 0 ∪ ⋯ ∪ F i − 1 is a path from a vertex of the A i − 1 A_{i-1} A i − 1 -interface and the B i − 1 B_{i-1} B i − 1 -interface. Combining this with (a) and Observation 8, we obtain the last condition of Definition 7.
( ⇐ ) (\Leftarrow) ( ⇐ ) : Starting with the unique path in H 0 H_0 H 0 , choose one of its endpoints, say the one on the A 0 A_0 A 0 -interface, and traverse the path to its endpoint on the B 0 B_0 B 0 -interface. Consider first the A 0 A_0 A 0 -endpoint. Since the A 0 A_0 A 0 -interface is identified with the (reverse of) X 1 X_1 X 1 -interface, it belongs to one of the two paths of H 1 H_1 H 1 . By the layer-path invariant, the other endpoint of this path lies on either the A 1 A_1 A 1 - or the B 1 B_1 B 1 -interface. Continuing in this way, at every intermediate layer we enter through one of its X X X - or Y Y Y -interfaces and leave through one of its A A A - or B B B -interfaces. Hence we eventually reach one of the two interfaces X n , Y n X_n,Y_n X n , Y n of F n F_n F n .
The unique path H n H_n H n joins these two interfaces. After traversing it, we therefore return through the other sequence of paths: in every intermediate layer, the second path joins the remaining X X X - or Y Y Y -interface to the remaining A A A - or B B B -interface. Eventually, this traversal reaches the B 0 B_0 B 0 -interface and hence the other endpoint of H 0 H_0 H 0 .
Thus all paths occurring in every H i H_i H i belong to a single connected component of H H H . Since the paths in the layer-path invariant span every layer, this component contains every vertex of G n G_n G n . As H H H is 2-regular, it follows that H H H is a Hamiltonian cycle.
States of the tour
We describe a tour of G n G_n G n by assigning states to its interfaces, to the first layer, and to the upper and lower gadgets. More specifically, we associate C 0 C_0 C 0 with the part of F 0 F_0 F 0 between its two interfaces. For i ∈ { 0 , … , n − 1 } i \in\{0,\ldots,n-1\} i ∈ { 0 , … , n − 1 } , we associate the symbols A i A_i A i and B i B_i B i with the corresponding interfaces. For i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , we associate D i D_i D i and E i E_i E i with the upper and lower gadgets of F i F_i F i , respectively. We use the same notation for these symbols and the corresponding vertices; the meaning will be clear from the context.
Fix a tour τ \tau τ of G n G_n G n . For a T T T -interface, we denote by [ T ] [T] [ T ] the set { T , T ′ } \{T,T'\} { T , T ′ } . By Observation 8 , both edges of the interface belong to τ \tau τ , so each vertex in [ T ] [T] [ T ] has precisely one neighbor outside of the interface in τ \tau τ .
Definition 10. The states associated with τ \tau τ are defined as follows.
For i ∈ { 0 , … , n − 1 } i \in\{0,\ldots,n-1\} i ∈ { 0 , … , n − 1 } , the state of A i A_i A i is 0 if A i A_i A i is adjacent in τ \tau τ to a vertex of F i F_i F i outside its interface, and 1 if A i ′ A'_i A i ′ is. The state of B i B_i B i is defined analogously. By Lemma 9 , exactly one of the two endpoints has such a neighbor in F i F_i F i .
The state of C 0 C_0 C 0 is 0 if its neighbor other than C 0 ′ ′ C''_0 C 0 ′′ belongs to [ A 0 ] [A_0] [ A 0 ] , and 1 if that neighbor belongs to [ B 0 ] [B_0] [ B 0 ] . The other interface is joined to C 0 ′ C'_0 C 0 ′ .
For i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the state of D i D_i D i is 0, 1, or 2 according as its neighbor other than D i ′ D'_i D i ′ is C i ′ C'_i C i ′ , belongs to [ A i ] [A_i] [ A i ] , or belongs to [ X i ] [X_i] [ X i ] . The resulting three pairings in the upper gadget are shown in Figure 4 .
For i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the state of E i E_i E i is determined by its two neighbors in τ \tau τ as follows:
Table 11.
The five corresponding pairings in the lower gadget are shown in Figure 5 .
Figure 4. The three states of D i D_i D i and the inferred connection in the upper gadget of F i F_i F i
Figure 5. The five states of E i E_i E i and the inferred connection in the lower gadget of F i F_i F i
The states of the interfaces determine which endpoint is used by each gadget. Together with the pairings in Figure 4 and Figure 5 and the fixed edges from Observation 8 , they therefore determine every edge of a reachable tour. All states of τ 0 \tau_0 τ 0 are 0.
The lemma below describes which states encode valid tours and also asserts that a 2-swap corresponds to a change in exactly one state.
Lemma 11. An assignment of states determines a tour if and only if, for every i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the following hold:
the pair ( D i , E i ) (D_i,E_i) ( D i , E i ) is not among ( 0 , 2 ) (0,2) ( 0 , 2 ) , ( 1 , 0 ) (1,0) ( 1 , 0 ) , ( 1 , 3 ) (1,3) ( 1 , 3 ) , ( 2 , 1 ) (2,1) ( 2 , 1 ) , and ( 2 , 4 ) (2,4) ( 2 , 4 ) ;
D i = 2 D_i=2 D i = 2 implies A i = 0 A_i=0 A i = 0 ;
if E i = 2 E_i=2 E i = 2 , then ( B i − 1 , B i ) ≠ ( 1 , 0 ) (B_{i-1},B_i)\ne(1,0) ( B i − 1 , B i ) = ( 1 , 0 ) ;
if E i ∈ { 3 , 4 } E_i\in\{3,4\} E i ∈ { 3 , 4 } , then B i = 1 B_i=1 B i = 1 .
Further, every 2-swap between tours changes exactly one state. Conversely, if two valid state assignments differ in exactly one state, then the corresponding tours differ by a 2-swap, except when that state is E i E_i E i and its two values are 0 and 3, or 1 and 4.
Proof. The edges incident to degree-two vertices and the states determine the pairings within each upper and lower gadget, as shown in Figure 4 and Figure 5 . The five forbidden pairs for ( D i , E i ) (D_i,E_i) ( D i , E i ) are exactly those that either create a cycle within F i F_i F i or fail to connect the interfaces according to Definition 7 . Further, the last three conditions in the lemma statements exclude exactly the assignments requiring graph edges that do not exist. Conversely, under these conditions, the pairings form two spanning paths in every interior layer, so the layer-path invariant holds. By Lemma 9 , they determine a tour.
Every 2-swap corresponds to a 4-cycle (i.e., a cycle of length four). By Observation 8 , no edge incident to a degree-two vertex can be removed. Hence, by the structure of G n G_n G n , a 4-cycle either lies within F 0 F_0 F 0 , within one upper or lower gadget, or contains edges from two gadgets connected through an interface between consecutive layers. In the first case, the swap changes only C 0 C_0 C 0 ; in the second case, it changes only D i D_i D i or E i E_i E i ; and in the last case, it changes only A i A_i A i or B i B_i B i . Thus every 2-swap changes exactly one state. Figure 6 depicts examples for the three kinds of 2-swaps.
Figure 6. Instance for n = 4 n=4 n = 4 with the initial tour (shown in bold black) and 3 possible 2-swaps. Each is depicted by a 4-cycle with the edges that can be removed from the tour shown in red and the edges that can be added to the tour shown in blue. The 2-swaps on the left, middle and right change C 0 C_0 C 0 , B 1 B_1 B 1 and D 3 D_3 D 3 , respectively.
Conversely, consider two valid state assignments differing in exactly one state. If this is A i A_i A i or B i B_i B i , the corresponding interface has its two edges to the adjacent layers exchanged. If it is C 0 C_0 C 0 , the two edges joining C 0 , C 0 ′ C_0,C'_0 C 0 , C 0 ′ to the interfaces are exchanged. If it is D i D_i D i , the three states in Figure 4 specify the three possible pairings of four vertices, so changing the state exchanges exactly two edges.
Finally, consider E i E_i E i . Each state specifies three edges, as shown in Figure 5 . The edge E i C i E_iC_i E i C i occurs precisely in states 1, 2, 3, and E i D i ′ E_iD'_i E i D i ′ precisely in states 0, 2, 4. Moreover, the edge from E i E_i E i to the B i B_i B i -interface occurs in states 0, 1, and the edge from E i E_i E i to the Y i Y_i Y i -interface occurs in states 3, 4. These are the only edges shared by different states. Thus any two distinct states share exactly one of their three edges, except for the pairs { 0 , 3 } \{0,3\} { 0 , 3 } and { 1 , 4 } \{1,4\} { 1 , 4 } , which share none.
Consequently, changing one state exchanges exactly two edges, except in the two stated cases, where it exchanges three edges. Since both state assignments determine tours, every exchange of exactly two edges is a valid 2-swap.
We say a change in a state is improving if it corresponds to an improving 2-swap. For a state T T T , we write T : r 0 → r 1 → ⋯ → r m T:r_0 \to r_1 \to\cdots\to r_m T : r 0 → r 1 → ⋯ → r m if, with all other states fixed, its contribution to the objective is strictly decreasing in the displayed order. Thus a change from any earlier state to any later state decreases the objective and hence is improving, as long as the resulting state assignment is valid and the change corresponds to a 2-swap. Subject to the validity conditions, the following lemma essentially states that:
the direction of an improving change of A i A_i A i for i < n − 1 i<n-1 i < n − 1 depends only on the upper gadget of F i + 1 F_{i+1} F i + 1 ;
that of B i B_i B i for i ≥ 1 i\ge1 i ≥ 1 depends only on the lower gadget of F i F_i F i ;
that of B 0 B_0 B 0 depends only on C 0 ′ C'_0 C 0 ′ ;
that of C 0 C_0 C 0 depends only on A 0 A_0 A 0 ;
that of D i D_i D i depends only on A i A_i A i ;
that of E i E_i E i depends on B i − 1 B_{i-1} B i − 1 and B i B_i B i .
Lemma 12. Suppose a state assignment describes a tour of G n G_n G n . Then all the improving changes of all states are exactly as stated in Table 5 , subject to the validity conditions in Lemma 11 .
Table 5. List of all improving changes together with the conditions for these changes (in addition to validity conditions in Lemma 11).
Proof. Note that the contribution to the objective by F 0 F_0 F 0 is determined precisely by the states of A 0 A_0 A 0 , B 0 B_0 B 0 , C 0 C_0 C 0 . Likewise, for i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , the contribution by the upper (lower) gadget of F i F_i F i is determined by the states of A i − 1 A_{i-1} A i − 1 , A i A_i A i , D i D_i D i (respectively, B i − 1 B_{i-1} B i − 1 , B i B_i B i , E i E_i E i ). From the weight assignment of the edges, we can compute these contributions precisely in Table 6 .
Table 6. Contributions to the tour weight from F 0 F_0 F 0 and the upper and lower gadgets of F i F_i F i , respectively, where i ∈ [ n − 1 ] i \in[n-1] i ∈ [ n − 1 ] , b i = a 2 i b_i = a2^i b i = a 2 i , and c i = 2 n + 1 − i c_i = 2^{n+1-i} c i = 2 n + 1 − i . A dash indicates that the corresponding edges do not exist.
Items (b1)–(b2) and (c1)–(e4) now follow immediately from Table 6 . (a1) follows immediately from the fact that the weight difference of a 2 n a2^n a 2 n between C n A n − 1 ′ C_nA'_{n-1} C n A n − 1 ′ and C n A n − 1 C_nA_{n-1} C n A n − 1 is larger than any weight in the construction.
For (a2)–(a3), consider first changing A i A_i A i from 0 to 1, where 1 ≤ i < n − 1 1 \le i < n-1 1 ≤ i < n − 1 . By Table 6 , the contribution from F i F_i F i lies between 4 − 2 b i 4 - 2b_i 4 − 2 b i and 2 b i − 3 2b_i - 3 2 b i − 3 . On the other hand, the contribution from F i + 1 F_{i+1} F i + 1 is b i + 1 − 3 b_{i+1} - 3 b i + 1 − 3 if ( A i + 1 , D i + 1 ) ∈ { ( 0 , 2 ) , ( 1 , 0 ) } (A_{i+1},D_{i+1}) \in\{(0,2),(1,0)\} ( A i + 1 , D i + 1 ) ∈ {( 0 , 2 ) , ( 1 , 0 )} , and 2 − b i + 1 2 - b_{i+1} 2 − b i + 1 otherwise. Since b i + 1 = 2 b i b_{i+1} = 2b_i b i + 1 = 2 b i , the total gain is at least 1 in the former case and at most − 1 -1 − 1 in the latter. For i = 0 i = 0 i = 0 , the contribution from F 0 F_0 F 0 is either − 4 -4 − 4 or a a a . Since b 1 = 2 a b_1 = 2a b 1 = 2 a , the same conclusion holds. The reverse change has the opposite gain.
For (b3)–(b4), consider changing B i B_i B i from 0 to 1. For 1 ≤ i ≤ n − 2 1 \le i \le n-2 1 ≤ i ≤ n − 2 , the contribution from F i F_i F i is 1 − c i 1-c_i 1 − c i if E i ∈ { 0 , 1 } E_i \in\{0,1\} E i ∈ { 0 , 1 } , and 3 if E i = 2 E_i=2 E i = 2 , whenever both entries exist. The contribution from F i + 1 F_{i+1} F i + 1 is again one of − 2 -2 − 2 , 4, − 1 -1 − 1 , c i + 1 c_{i+1} c i + 1 . Since c i = 2 c i + 1 ≥ 8 c_i=2c_{i+1}\ge8 c i = 2 c i + 1 ≥ 8 , the total gain is negative in the case of E i ∈ { 0 , 1 } E_i\in\{0,1\} E i ∈ { 0 , 1 } and positive in the case of E i = 2 E_i=2 E i = 2 . For i = n − 1 i=n-1 i = n − 1 , the contribution from F i F_i F i is as above with c n − 1 = 4 c_{n-1}=4 c n − 1 = 4 and the contribution from F n F_n F n is zero, giving the same conclusion. The reverse change has the opposite gain.
Correctness
We now show that in the construction above, any maximal improving sequence from the initial tour has exponential length. In particular, we first describe a canonical improving swap sequence. Then we show that every other maximal improving sequence differs from it only by reordering of some swaps.
The canonical sequence. In order to describe the canonical sequence, we first define its two building blocks, the forward traversal P i \mathbf{P}_i P i and the return traversal Q i \mathbf{Q}_i Q i for i ∈ [ n ] i\in[n] i ∈ [ n ] . A traversal changes the lower layers so that an improving move in the next layer becomes possible. For convenience, we label a swap by the state it changes: A i A_i A i , B i B_i B i , C 0 C_0 C 0 denote flips of the corresponding binary states, whereas D i j D_i^j D i j and E i j E_i^j E i j denote changes to state j j j from state j − 1 j-1 j − 1 (cyclically).
Let P 1 = Q 1 = A 0 C 0 B 0 \mathbf{P}_1=\mathbf{Q}_1=A_0C_0B_0 P 1 = Q 1 = A 0 C 0 B 0 . Define P 2 \mathbf{P}_2 P 2 and Q 2 \mathbf{Q}_2 Q 2 as follows:
P 2 = A 1 P 1 E 1 1 D 1 1 Q 1 E 1 2 B 1 , (3) \mathbf{P}_2=A_1\mathbf{P}_1E_1^1D_1^1\mathbf{Q}_1E_1^2B_1, \tag*{(3)} P 2 = A 1 P 1 E 1 1 D 1 1 Q 1 E 1 2 B 1 , (3)
Q 2 = P 1 E 1 3 D 1 0 E 1 4 Q 1 E 1 0 B 1 . (4) \mathbf{Q}_2=\mathbf{P}_1E_1^3D_1^0E_1^4\mathbf{Q}_1E_1^0B_1. \tag*{(4)} Q 2 = P 1 E 1 3 D 1 0 E 1 4 Q 1 E 1 0 B 1 . (4)
For 3 ≤ k ≤ n 3\le k\le n 3 ≤ k ≤ n , define P k \mathbf{P}_k P k , and for 3 ≤ k ≤ n − 1 3\le k\le n-1 3 ≤ k ≤ n − 1 also define Q k \mathbf{Q}_k Q k , by
P k = A k − 1 P k − 1 E k − 1 1 D k − 1 1 A k − 2 D k − 2 2 Q k − 1 E k − 1 2 B k − 1 , (5) \mathbf{P}_k=A_{k-1}\mathbf{P}_{k-1}E_{k-1}^1D_{k-1}^1A_{k-2}D_{k-2}^2\mathbf{Q}_{k-1}E_{k-1}^2B_{k-1}, \tag*{(5)} P k = A k − 1 P k − 1 E k − 1 1 D k − 1 1 A k − 2 D k − 2 2 Q k − 1 E k − 1 2 B k − 1 , (5)
Q k = P k − 1 E k − 1 3 D k − 1 0 A k − 2 D k − 2 2 E k − 1 4 Q k − 1 E k − 1 0 B k − 1 . (6) \mathbf{Q}_k=\mathbf{P}_{k-1}E_{k-1}^3D_{k-1}^0A_{k-2}D_{k-2}^2E_{k-1}^4\mathbf{Q}_{k-1}E_{k-1}^0B_{k-1}. \tag*{(6)} Q k = P k − 1 E k − 1 3 D k − 1 0 A k − 2 D k − 2 2 E k − 1 4 Q k − 1 E k − 1 0 B k − 1 . (6)
Then the canonical sequence for G n G_n G n is exactly P n \mathbf{P}_n P n . We now show that this canonical sequence is indeed a valid improving swap sequence for G n G_n G n .
Lemma 13. Let P ^ n \widehat{\mathbf{P}}_n P n be obtained from P n \mathbf{P}_n P n by deleting all occurrences of E i 4 E_i^4 E i 4 . Then P n \mathbf{P}_n P n is improving, and in every improving swap sequence from τ 0 \tau_0 τ 0 , the changes other than E i 4 E_i^4 E i 4 form a prefix of P ^ n \widehat{\mathbf{P}}_n P n . Further, at each reachable tour, the only improving changes are the next unperformed change of P ^ n \widehat{\mathbf{P}}_n P n , if it is applicable, and occurrences of E i 4 E_i^4 E i 4 whose corresponding D i 0 D_i^0 D i 0 has occurred but which have not yet been performed. The next unperformed change is inapplicable only when it is E i 0 E_i^0 E i 0 and the corresponding E i 4 E_i^4 E i 4 has not been performed.
Proof. For n = 1 n=1 n = 1 , Lemma 12 shows that the only successive improving changes are A 0 , C 0 , B 0 A_0,C_0,B_0 A 0 , C 0 , B 0 , after which none is improving. Hence suppose n ≥ 2 n\ge2 n ≥ 2 . For k < n k<n k < n , let P ^ k \widehat{\mathbf{P}}_k P k and Q ^ k \widehat{\mathbf{Q}}_k Q k be obtained from P k \mathbf{P}_k P k and Q k \mathbf{Q}_k Q k by deleting all occurrences of E j 4 E_j^4 E j 4 . We call a change ordinary if it is not E j 4 E_j^4 E j 4 for any j j j . We call a change lower than k k k if it changes C 0 C_0 C 0 or a state A j A_j A j , B j B_j B j , D j D_j D j , E j E_j E j with j < k j<k j < k , whenever defined.
We prove the following statements simultaneously by induction on k k k . A rearrangement of P k \mathbf{P}_k P k or Q k \mathbf{Q}_k Q k is obtained by moving each occurrence of E j 4 E_j^4 E j 4 anywhere between its corresponding D j 0 D_j^0 D j 0 and E j 0 E_j^0 E j 0 , without changing the order of the ordinary changes. Hence, deleting the changes E j 4 E_j^4 E j 4 from any prefix of a rearrangement leaves a prefix of P ^ k \widehat{\mathbf{P}}_k P k or Q ^ k \widehat{\mathbf{Q}}_k Q k , respectively.
(J_k) Suppose all states in F 0 , … , F k − 1 F_0,\ldots,F_{k-1} F 0 , … , F k − 1 are 0. If k < n k<n k < n , suppose also that ( A k , B k , D k , E k ) (A_k,B_k,D_k,E_k) ( A k , B k , D k , E k ) is ( 1 , 0 , 0 , 0 ) (1,0,0,0) ( 1 , 0 , 0 , 0 ) or ( 0 , 1 , 2 , 2 ) (0,1,2,2) ( 0 , 1 , 2 , 2 ) . Then every rearrangement of P k P_k P k is improving. After any proper prefix of a rearrangement, the only improving ordinary change lower than k k k is the next unperformed change of P ^ k \widehat{P}_k P k , unless it is E j 0 E_j^0 E j 0 and E j 4 E_j^4 E j 4 is still pending, in which case there is none. An occurrence of E j 4 E_j^4 E j 4 lower than k k k is improving precisely when its D j 0 D_j^0 D j 0 has occurred and it has not yet been performed. After the entire rearrangement, no change lower than k k k is improving. The final states are ( A 0 , B 0 , C 0 ) = ( 1 , 1 , 1 ) (A_0,B_0,C_0)=(1,1,1) ( A 0 , B 0 , C 0 ) = ( 1 , 1 , 1 ) if k = 1 k=1 k = 1 , and otherwise all states below F k − 1 F_{k-1} F k − 1 are 0 and ( A k − 1 , B k − 1 , D k − 1 , E k − 1 ) = ( 1 , 1 , 1 , 2 ) (A_{k-1},B_{k-1},D_{k-1},E_{k-1})=(1,1,1,2) ( A k − 1 , B k − 1 , D k − 1 , E k − 1 ) = ( 1 , 1 , 1 , 2 ) .
(K_k) Suppose k < n k<n k < n and ( A k , B k , D k , E k ) (A_k,B_k,D_k,E_k) ( A k , B k , D k , E k ) is ( 1 , 0 , 1 , 1 ) (1,0,1,1) ( 1 , 0 , 1 , 1 ) , ( 0 , 1 , 0 , 3 ) (0,1,0,3) ( 0 , 1 , 0 , 3 ) , or ( 0 , 1 , 0 , 4 ) (0,1,0,4) ( 0 , 1 , 0 , 4 ) . Suppose further that ( A 0 , B 0 , C 0 ) = ( 1 , 1 , 1 ) (A_0,B_0,C_0)=(1,1,1) ( A 0 , B 0 , C 0 ) = ( 1 , 1 , 1 ) if k = 1 k=1 k = 1 , or, if k ≥ 2 k\geq2 k ≥ 2 , that all states below F k − 1 F_{k-1} F k − 1 are 0 and ( A k − 1 , B k − 1 , D k − 1 , E k − 1 ) = ( 0 , 1 , 2 , 2 ) (A_{k-1},B_{k-1},D_{k-1},E_{k-1})=(0,1,2,2) ( A k − 1 , B k − 1 , D k − 1 , E k − 1 ) = ( 0 , 1 , 2 , 2 ) . Then every rearrangement of Q k Q_k Q k is improving, and the same assertions about improving changes in ( J k ) (J_k) ( J k ) hold for Q k Q_k Q k and Q ^ k \widehat{Q}_k Q k in place of P k P_k P k and P ^ k \widehat{P}_k P k . After the entire rearrangement, no change lower than k k k is improving, and all states in F 0 , … , F k − 1 F_0,\ldots,F_{k-1} F 0 , … , F k − 1 return to 0.
Note that in the case ( A k , B k , D k , E k ) = ( 0 , 1 , 0 , 3 ) (A_k,B_k,D_k,E_k)=(0,1,0,3) ( A k , B k , D k , E k ) = ( 0 , 1 , 0 , 3 ) of ( K k ) (K_k) ( K k ) , E k 4 E_k^4 E k 4 may still be pending. It is a change outside the lower k k k layers and can be performed during the traversal or afterwards. Throughout this proof, whenever we claim whether a change is improving, we use Lemma 12 and exclude changes forbidden by Lemma 11 .
For k = 1 k=1 k = 1 , both traversals are A 0 C 0 B 0 A_0C_0B_0 A 0 C 0 B 0 . The successive states of ( A 0 , B 0 , C 0 ) (A_0,B_0,C_0) ( A 0 , B 0 , C 0 ) are
( 0 , 0 , 0 ) → ( 1 , 0 , 0 ) → ( 1 , 0 , 1 ) → ( 1 , 1 , 1 ) (0,0,0)\mathbin{\to}(1,0,0)\mathbin{\to}(1,0,1)\mathbin{\to}(1,1,1) ( 0 , 0 , 0 ) → ( 1 , 0 , 0 ) → ( 1 , 0 , 1 ) → ( 1 , 1 , 1 )
in ( J 1 ) (J_1) ( J 1 ) , and occur in reverse order in ( K 1 ) (K_1) ( K 1 ) . In each case, Lemma 12 shows that only the next change is improving among the changes lower than 1. This proves the base case.
Let k ≥ 2 k\geq2 k ≥ 2 , let i = k − 1 i=k-1 i = k − 1 , and suppose the statements hold for smaller indices. We first consider how a recursive traversal affects the gadget F i F_i F i . Note that F i F_i F i is only connected to lower layers via the A i − 1 A_{i-1} A i − 1 - and B i − 1 B_{i-1} B i − 1 -interfaces. By Lemma 12 (a1)–(b4), among the changes lower than k k k , none affects whether a change in A i A_i A i is improving, and only B i − 1 B_{i-1} B i − 1 affects B i B_i B i and E i E_i E i . While P i P_i P i is executed, B i − 1 B_{i-1} B i − 1 remains 0 until its final change to 1; while Q i Q_i Q i is executed, B i − 1 B_{i-1} B i − 1 remains 1 until its final change to 0. These are also the final changes of any rearrangement of the respective traversals, since by the inductive hypothesis, any E j 4 E_j^4 E j 4 must precede its corresponding E j 0 E_j^0 E j 0 , which occurs before the final B i − 1 B_{i-1} B i − 1 -change.
Indeed, in the first four rows the indicated change has gain 1 after the final change of B i − 1 B_{i-1} B i − 1 , but is not improving before it. In the last row, E i : 3 → 4 E_i:3\to4 E i : 3 → 4 has gain 1 both before and after B i − 1 B_{i-1} B i − 1 changes; once it has occurred, E i : 4 → 0 E_i:4\to0 E i : 4 → 0 has gain 1 when B i − 1 = 0 B_{i-1}=0 B i − 1 = 0 . A direct comparison of all states of D i , E i D_i,E_i D i , E i in Table 6 , subject to Lemma 11 , shows that there is no other improving change of these states during the recursive traversal. For example, E i : 2 → 4 E_i:2\to4 E i : 2 → 4 is forbidden when D i = 2 D_i=2 D i = 2 , E i : 1 → 0 E_i:1\to0 E i : 1 → 0 is forbidden when D i = 1 D_i=1 D i = 1 , and E i : 3 → 0 E_i:3\to0 E i : 3 → 0 is not a 2-swap. The flip rules also exclude a newly improving change of A i A_i A i or B i B_i B i while the recursive traversal is running.
We now prove ( J k ) (J_k) ( J k ) . Initially, A i : 0 → 1 A_i: 0 \to1 A i : 0 → 1 is improving: for k = n k=n k = n this follows from Lemma 12(a1), and for k < n k<n k < n from (a2) and the specified state of F k F_k F k . Further, by Lemma 12, since all lower layers are 0, no other change is improving.
After this change, by Lemma 12, the only potential improving change in F i F_i F i is D i : 0 → 1 D_i: 0 \to1 D i : 0 → 1 , since A i = 1 A_i=1 A i = 1 and D i = 0 D_i=0 D i = 0 . However, by Lemma 11, as long as E i = 0 E_i=0 E i = 0 , this change is not possible. For the layer lower than i i i , since ( A i , B i , D i , E i ) = ( 1 , 0 , 0 , 0 ) (A_i,B_i,D_i,E_i)=(1,0,0,0) ( A i , B i , D i , E i ) = ( 1 , 0 , 0 , 0 ) , so ( J i ) (J_i) ( J i ) applies and we traverse a rearrangement of P i \mathbf{P}_i P i . The first row of Table 7 shows that after this traversal, E i 1 E_i^1 E i 1 is the only improving change.
Table 7. Effect of the final B i − 1 B_{i-1} B i − 1 -change of a recursive traversal.
After this change E i 1 E_i^1 E i 1 , as noted above the improving change D i : 0 → 1 D_i: 0 \to1 D i : 0 → 1 is now possible. Since B i = 0 B_i=0 B i = 0 , there is no improving change for it, and by Lemma 12, there is no improving change newly arising from this change of E i E_i E i . Hence, D i : 0 → 1 D_i: 0 \to1 D i : 0 → 1 is the only improving change.
After this change D i 1 D_i^1 D i 1 , by Lemma 12, the only state that may have improving change is A i − 1 A_{i-1} A i − 1 . By ( J i ) (J_i) ( J i ) , after the previous traversal P i \mathbf{P}_i P i , ( A i − 1 , B i − 1 , D i − 1 , E i − 1 ) (A_{i-1},B_{i-1},D_{i-1},E_{i-1}) ( A i − 1 , B i − 1 , D i − 1 , E i − 1 ) is now ( 1 , 1 , 1 , 2 ) (1,1,1,2) ( 1 , 1 , 1 , 2 ) . Combined with the fact that ( A i , D i ) (A_i,D_i) ( A i , D i ) is now ( 1 , 1 ) (1,1) ( 1 , 1 ) , A i − 1 : 1 → 0 A_{i-1}: 1 \to0 A i − 1 : 1 → 0 is improving.
If k = 2 k=2 k = 2 (i.e., i = 1 i=1 i = 1 ), then by Lemma 12(c2) and (b2), the next two improving changes have to be C 0 : 1 → 0 C_0: 1 \to0 C 0 : 1 → 0 and B 0 : 1 → 0 B_0: 1 \to0 B 0 : 1 → 0 . That is, we have just performed exactly Q 1 \mathbf{Q}_1 Q 1 .
If k > 2 k>2 k > 2 , then after the change A i − 1 : 1 → 0 A_{i-1}: 1 \to0 A i − 1 : 1 → 0 , since D i − 1 = 1 D_{i-1}=1 D i − 1 = 1 , and A i − 2 = 0 A_{i-2}=0 A i − 2 = 0 , by Lemma 12, only state D i − 1 D_{i-1} D i − 1 can potentially have an improving change. As E i − 1 = 2 E_{i-1}=2 E i − 1 = 2 , by Lemma 11, D i − 1 D_{i-1} D i − 1 cannot be 0. Hence, the only improving change is D i − 1 : 1 → 2 D_{i-1}: 1 \to2 D i − 1 : 1 → 2 .
This change of D i − 1 D_{i-1} D i − 1 , by Lemma 12, does not affect any vertex in F i F_i F i . However, we now have ( A i , B i , D i , E i ) = ( 1 , 0 , 1 , 1 ) (A_i,B_i,D_i,E_i)=(1,0,1,1) ( A i , B i , D i , E i ) = ( 1 , 0 , 1 , 1 ) , ( A i − 1 , B i − 1 , D i − 1 , E i − 1 ) = ( 0 , 1 , 2 , 2 ) (A_{i-1},B_{i-1},D_{i-1},E_{i-1})=(0,1,2,2) ( A i − 1 , B i − 1 , D i − 1 , E i − 1 ) = ( 0 , 1 , 2 , 2 ) , and all states below F i − 1 F_{i-1} F i − 1 are 0. Hence, ( K i ) (K_i) ( K i ) applies and we perform a rearrangement of Q i \mathbf{Q}_i Q i .
In both cases (i.e., whether k = 2 k=2 k = 2 or k > 2 k>2 k > 2 ), we can use the third row of Table 7 and obtain that the only improving change after this rearrangement of Q i \mathbf{Q}_i Q i is E i 2 E_i^2 E i 2 . By Lemma 12, this change of E i E_i E i makes the change B i : 0 → 1 B_i: 0 \to1 B i : 0 → 1 improving, and no other states depends on E i E_i E i . Hence, this is the only improving change. We have now exactly all the changes of P k \mathbf{P}_k P k . Note that ( A i , B i , D i , E i ) = ( 1 , 1 , 1 , 2 ) (A_i,B_i,D_i,E_i)=(1,1,1,2) ( A i , B i , D i , E i ) = ( 1 , 1 , 1 , 2 ) , while other states below F i F_i F i are 0, as claimed. Also, checking against Lemma 12 verifies that no change below k k k is improving and we complete the inductive proof of ( J k ) (J_k) ( J k ) .
We use a similar analysis for ( K k ) (K_k) ( K k ) , which we briefly go through as follow. We start with ( A i , B i , D i , E i ) = ( 0 , 1 , 2 , 2 ) (A_i,B_i,D_i,E_i)=(0,1,2,2) ( A i , B i , D i , E i ) = ( 0 , 1 , 2 , 2 ) . By ( J i ) (J_i) ( J i ) the improving ordinary changes first follow a rearrangement of P i \mathbf{P}_i P i . The second row of Table 7 then gives the next change E i 3 E_i^3 E i 3 , which then enables D i 0 D_i^0 D i 0 . At this point A i − 1 : 1 → 0 A_{i-1}: 1 \to0 A i − 1 : 1 → 0 and E i 4 E_i^4 E i 4 are both improving, and no other change is improving. For i ≥ 2 i \ge2 i ≥ 2 , changing A i − 1 A_{i-1} A i − 1 enables D i − 1 : 1 → 2 D_{i-1}: 1 \to2 D i − 1 : 1 → 2 , after which ( K i ) (K_i) ( K i ) applies and we can perform a rearrangement of Q i \mathbf{Q}_i Q i . For i = 1 i=1 i = 1 , A 1 A_1 A 1 is the first change of Q 1 \mathbf{Q}_1 Q 1 , and the rest of the changes of Q 1 Q_1 Q 1 then follow. After that, by the last row of Table 7 and by the argument for the case when ( A i , B i , D i , E i ) = ( 0 , 1 , 0 , 3 ) (A_i,B_i,D_i,E_i)=(0,1,0,3) ( A i , B i , D i , E i ) = ( 0 , 1 , 0 , 3 ) before we apply ( K i ) (K_i) ( K i ) , either E i 0 E_i^0 E i 0 is the only improving change if E i 4 E_i^4 E i 4 has been performed by the end of the rearrangement of Q i \mathbf{Q}_i Q i ; or there is no new change that becomes improving, and we have to perform E i 4 E_i^4 E i 4 , after which, E i 0 E_i^0 E i 0 becomes improving.
We claim that we may perform E i 4 E_i^4 E i 4 at any time before E i 0 E_i^0 E i 0 . Indeed, after the change D i 0 D_i^0 D i 0 that enables E i 4 E_i^4 E i 4 and until E i 0 E_i^0 E i 0 , we have ( A i , B i , D i ) = ( 0 , 1 , 0 ) (A_i,B_i,D_i)=(0,1,0) ( A i , B i , D i ) = ( 0 , 1 , 0 ) . Since D i D_i D i remains 0, by Lemma 11, it does not forbid the change E i 4 E_i^4 E i 4 . Further, by Lemma 12, regardless of whether B i − 1 B_{i-1} B i − 1 is 0 or 1, E i 4 E_i^4 E i 4 remains improving, and it does not depend on any other state.
Moreover, we cannot omit this change E i 4 E_i^4 E i 4 , as by Lemma 12, since D i D_i D i remains 0, E i E_i E i cannot take value 2, and by Lemma 11, the change of E i E_i E i from 3 to 0 does not correspond to a 2-swap. Hence, E i 4 E_i^4 E i 4 is the only improving change of E i E_i E i and remains so until it is performed.
As argued above, after both E i 4 E_i^4 E i 4 and a rearrangement of Q i Q_i Q i are performed, the only improving change is E i 0 E_i^0 E i 0 . After that, we perform the only subsequent improving change B i : 1 → 0 B_i: 1 \to0 B i : 1 → 0 , and all states lower than k k k return to 0. Again, checking against Lemma 12 verifies that no change below k k k is improving, and we complete the induction for ( K k ) (K_k) ( K k ) .
The induction also shows that after every prefix of a rearrangement, all improving changes lower than k k k are exactly those stated in ( J k ) (J_k) ( J k ) and ( K k ) (K_k) ( K k ) : the next unperformed ordinary change, unless blocked by a pending E j 4 E_j^4 E j 4 , and the available changes E j 4 E_j^4 E j 4 . In particular, ( J n ) (J_n) ( J n ) shows that P n P_n P n is improving. Finally, starting from τ 0 \tau_0 τ 0 , induction on the number of performed changes shows that every improving sequence is a prefix of a rearrangement of P n P_n P n : every improving choice is either the next unperformed ordinary change or a currently available E j 4 E_j^4 E j 4 , and either choice preserves the required order. This proves the lemma.
Corollary 14. The canonical sequence P n P_n P n is maximal, and every maximal improving swap sequence from τ 0 \tau_0 τ 0 is obtained from it by moving occurrences of E i 4 E_i^4 E i 4 between their corresponding D i 0 D_i^0 D i 0 and E i 0 E_i^0 E i 0 . All these sequences have length 3 if n = 1 n = 1 n = 1 , and 9 ⋅ 2 n − 1 − 7 9 \cdot2^{n-1} - 7 9 ⋅ 2 n − 1 − 7 if n ≥ 2 n \ge2 n ≥ 2 .
Proof. The first statement follows immediately from Lemma 13. By the recursion of P n P_n P n , we obtain that ∣ P k ∣ = ∣ Q k ∣ |P_k| = |Q_k| ∣ P k ∣ = ∣ Q k ∣ for all applicable k k k , ∣ P 1 ∣ = 3 |P_1| = 3 ∣ P 1 ∣ = 3 , ∣ P 2 ∣ = 11 |P_2| = 11 ∣ P 2 ∣ = 11 , and for k ≥ 3 k \ge3 k ≥ 3 , ∣ P k ∣ = 2 ∣ P k − 1 ∣ + 7 |P_k| = 2|P_{k-1}| + 7 ∣ P k ∣ = 2∣ P k − 1 ∣ + 7 . Hence, ∣ P n ∣ = 9 ⋅ 2 n − 1 − 7 |P_n| = 9 \cdot2^{n-1} - 7 ∣ P n ∣ = 9 ⋅ 2 n − 1 − 7 for n ≥ 2 n \ge2 n ≥ 2 . Since all maximal improving swap sequences have the same length as P n P_n P n , the corollary then follows.
We are now ready to prove the main theorem of this section.
Proof of Theorem 1. Observe that G n G_n G n has O ( n ) O(n) O ( n ) vertices and each weight can be encoded by O ( n ) O(n) O ( n ) bits. Combining this with Corollary 14, we obtain the all-exp property for TSP with the 2-opt neighborhood.
(2,3,2)-MCA has the all-exp property
This section is dedicated to showing the following.
Theorem 3. (2, 3, 2)-MCA with the flip neighborhood has the all-exp property.
Our construction is based on the construction to prove the all-exp property for Max-Cut with the flip neighborhood by Michel and Scott [17 ] . We create one binary variable for each vertex in the Michel-Scott construction and one two-variable constraint for each edge, so that the two local-search problems behave identically at every vertex of degree at most three. The only obstacle is that the Michel-Scott construction has vertices of degree four, namely v i , 1 v_{i,1} v i , 1 and v i , 8 v_{i,8} v i , 8 , which would occur in four constraints and violate the bound q = 3 q = 3 q = 3 . We replace each of them by a small gadget of degree-three variables. The gadget for v i , 1 v_{i,1} v i , 1 consists of two XOR gates; the gadget for v i , 8 v_{i,8} v i , 8 is a chain of copies that broadcasts the value of v i , 8 v_{i,8} v i , 8 to the next layer and prevents one update from overtaking the preceding one.
All gadgets use a common following primitive, formalized in Section 5.2. A vertex x x x follows a Boolean function ϕ \phi ϕ determined by its neighbors if, for every assignment σ \sigma σ of other variables, x x x has a strictly preferred value of ϕ ( σ ) \phi(\sigma) ϕ ( σ ) . Hence, when σ ( x ) ≠ ϕ ( σ ) \sigma(x) \ne\phi(\sigma) σ ( x ) = ϕ ( σ ) , flipping x x x improves the objective.
For brevity, we do not separately recap the Michel-Scott construction. Instead, we directly describe our modified construction and establish the local properties needed for the proof. The relation between our construction and the original Michel-Scott construction is discussed in Remark 18.
Graph representation of binary MCA
We use the standard constraint-graph representation of Max 2-CSP [19 ] , in which variables are represented by vertices, constraints by edges, and values by unary scores on vertices and binary scores on edges. For our construction, it is convenient to use the following weighted graph representation of binary MCA. Specifically, we represent a ( 2 , q , 2 ) (2,q,2) ( 2 , q , 2 ) -MCA instance by a graph G = ( V , E ) G=(V,E) G = ( V , E ) of maximum degree at most q q q , edge weights w : E → Z w:E\to\mathbb{Z} w : E → Z , and vertex weights b : V → Z b:V\to\mathbb{Z} b : V → Z , with objective
Φ ( σ ) = ∑ u v ∈ E w ( u v ) [ σ ( u ) ≠ σ ( v ) ] + ∑ v ∈ V b v σ ( v ) . \Phi(\sigma)=\sum_{uv\in E}w(uv)[\sigma(u)\ne\sigma(v)]+\sum_{v\in V}b_v\sigma(v). Φ ( σ ) = uv ∈ E ∑ w ( uv ) [ σ ( u ) = σ ( v )] + v ∈ V ∑ b v σ ( v ) .
For a vertex x x x we use the signed difference
Δ x ( σ ) : = Φ ( σ [ x ↦ 1 ] ) − Φ ( σ [ x ↦ 0 ] ) = b x + ∑ u x ∈ E w ( x u ) ( 1 − 2 σ ( u ) ) . \Delta_x(\sigma):=\Phi(\sigma[x\mapsto1])-\Phi(\sigma[x\mapsto0])=b_x+\sum_{ux\in E}w(xu)(1-2\sigma(u)). Δ x ( σ ) := Φ ( σ [ x ↦ 1 ]) − Φ ( σ [ x ↦ 0 ]) = b x + ux ∈ E ∑ w ( xu ) ( 1 − 2 σ ( u )) .
Thus flipping x x x from 0 to 1 is improving iff Δ x ( σ ) > 0 \Delta_x(\sigma)>0 Δ x ( σ ) > 0 , and flipping it from 1 to 0 is improving iff Δ x ( σ ) < 0 \Delta_x(\sigma)<0 Δ x ( σ ) < 0 .
The following standard representation allows us to specify our MCA instance entirely by vertex and edge weights.
Lemma 15. Let q ≥ 1 q\ge1 q ≥ 1 . If G G G has maximum degree at most q q q , then any objective Φ \Phi Φ of the above form defines a ( 2 , q , 2 ) (2,q,2) ( 2 , q , 2 ) -MCA instance with the same objective function.
Proof. Associate with every edge u v uv uv the binary constraint C u v ( σ ( u ) , σ ( v ) ) = w u v [ σ ( u ) ≠ σ ( v ) ] C_{uv}(\sigma(u),\sigma(v))=w_{uv}[\sigma(u)\ne\sigma(v)] C uv ( σ ( u ) , σ ( v )) = w uv [ σ ( u ) = σ ( v )] . The unary term b x σ ( x ) b_x\sigma(x) b x σ ( x ) can be incorporated into any binary constraint incident with x x x by adding b x b_x b x to both entries corresponding to σ ( x ) = 1 \sigma(x)=1 σ ( x ) = 1 . If x x x is isolated, use the unary constraint C x ( 0 ) = 0 C_x(0)=0 C x ( 0 ) = 0 and C x ( 1 ) = b x C_x(1)=b_x C x ( 1 ) = b x . Hence every variable occurs in at most deg G ( x ) ≤ q \deg_G(x)\le q deg G ( x ) ≤ q binary constraints, or in one unary constraint if it is isolated.
From this point on, we identify each binary MCA variable with the corresponding vertex in the graph representation and use the terms variable and vertex interchangeably. By Lemma 15, it therefore suffices to construct a graph of maximum degree three with suitable edge and vertex weights.
The “following” primitive
For a vertex x x x , a Boolean function ϕ \phi ϕ of the values of some neighbors of x x x , and a set S S S of assignments, we say x x x follows ϕ \phi ϕ on S S S , denoted by x ← ϕ x\leftarrow\phi x ← ϕ on S S S , if for every assignment σ ∈ S \sigma\in S σ ∈ S we have Δ x ( σ ) > 0 \Delta_x(\sigma)>0 Δ x ( σ ) > 0 when ϕ ( σ ) = 1 \phi(\sigma)=1 ϕ ( σ ) = 1 and Δ x ( σ ) < 0 \Delta_x(\sigma)<0 Δ x ( σ ) < 0 when ϕ ( σ ) = 0 \phi(\sigma)=0 ϕ ( σ ) = 0 . Equivalently, x x x has a unique locally preferred value among the assignments in S S S , namely ϕ ( σ ) \phi(\sigma) ϕ ( σ ) , and if σ ( x ) ≠ ϕ ( σ ) \sigma(x)\ne\phi(\sigma) σ ( x ) = ϕ ( σ ) then flipping x x x is improving. If S S S is the set of all assignments, we simply say x x x follows ϕ \phi ϕ . The most important case is that ϕ \phi ϕ is a literal y y y or y ‾ \overline{y} y of a single neighbor y y y .
For a neighbor y y y of x x x , define the residual incident weight
B x ( y ) : = ∑ u x ∈ E , u ≠ y ∣ w ( x u ) ∣ . B_x(y):=\sum_{\substack{ux\in E,\,u\ne y}}|w(xu)|. B x ( y ) := ux ∈ E , u = y ∑ ∣ w ( xu ) ∣.
The contribution to Δ x \Delta_x Δ x from all neighbors other than y y y lies in [ − B x ( y ) , B x ( y ) ] [-B_x(y), B_x(y)] [ − B x ( y ) , B x ( y )] . Note that when the neighbors’ values can be chosen arbitrarily, both endpoints of this range can be attained.
The following two lemmas list several statements that will be useful in our construction.
Lemma 16 (Following a literal). Let x x x have neighbor y y y and let B = B x ( y ) B = B_x(y) B = B x ( y ) . Then
(a) x ← y x \leftarrow y x ← y holds if and only if b x − w ( x y ) − B > 0 b_x - w(xy) - B > 0 b x − w ( x y ) − B > 0 and b x + w ( x y ) + B < 0 b_x + w(xy) + B < 0 b x + w ( x y ) + B < 0 ;
(b) x ← y ‾ x \leftarrow\overline{y} x ← y holds if and only if b x + w ( x y ) − B > 0 b_x + w(xy) - B > 0 b x + w ( x y ) − B > 0 and b x − w ( x y ) + B < 0 b_x - w(xy) + B < 0 b x − w ( x y ) + B < 0 .
In particular, if b x = 0 b_x = 0 b x = 0 , then x ← y x \leftarrow y x ← y holds if and only if w ( x y ) < − B w(xy) < -B w ( x y ) < − B , and x ← y ‾ x \leftarrow\overline{y} x ← y holds if and only if w ( x y ) > B w(xy) > B w ( x y ) > B .
Proof. We have Δ x = b x + w ( x y ) ( 1 − 2 σ ( y ) ) + r \Delta_x = b_x + w(xy)(1 - 2\sigma(y)) + r Δ x = b x + w ( x y ) ( 1 − 2 σ ( y )) + r with r ∈ [ − B , B ] r \in[-B, B] r ∈ [ − B , B ] . For (a) we need Δ x > 0 \Delta_x > 0 Δ x > 0 whenever σ ( y ) = 1 \sigma(y) = 1 σ ( y ) = 1 , i.e. b x − w ( x y ) + r > 0 b_x - w(xy) + r > 0 b x − w ( x y ) + r > 0 for every admissible r r r , which is equivalent to b x − w ( x y ) − B > 0 b_x - w(xy) - B > 0 b x − w ( x y ) − B > 0 ; and we need Δ x < 0 \Delta_x < 0 Δ x < 0 whenever σ ( y ) = 0 \sigma(y) = 0 σ ( y ) = 0 , which is equivalent to b x + w ( x y ) + B < 0 b_x + w(xy) + B < 0 b x + w ( x y ) + B < 0 . Part (b) is the same with the roles of σ ( y ) = 0 , 1 \sigma(y) = 0, 1 σ ( y ) = 0 , 1 exchanged. The statement for b x = 0 b_x = 0 b x = 0 follows immediately.
Lemma 17. Let D > 0 D > 0 D > 0 , let z z z have neighbors x , y x, y x , y and possibly another neighbor t t t . Let r r r be w ( z t ) ( 1 − 2 σ ( t ) ) w(zt)(1 - 2\sigma(t)) w ( z t ) ( 1 − 2 σ ( t )) , if t t t exists, and 0 0 0 otherwise. Suppose that ∣ r ∣ < D |r| < D ∣ r ∣ < D .
(i) (AND-NOT) If w ( z x ) = − D w(zx) = -D w ( z x ) = − D , w ( z y ) = + D w(zy) = +D w ( z y ) = + D and b z = − D b_z = -D b z = − D , then Δ z = 2 D ( σ ( x ) − σ ( y ) ) − D + r \Delta_z = 2D(\sigma(x) - \sigma(y)) - D + r Δ z = 2 D ( σ ( x ) − σ ( y )) − D + r , which is D + r D + r D + r if ( σ ( x ) , σ ( y ) ) = ( 1 , 0 ) (\sigma(x), \sigma(y)) = (1, 0) ( σ ( x ) , σ ( y )) = ( 1 , 0 ) and at most − D + r -D + r − D + r otherwise; hence z ← x ∧ y ‾ z \leftarrow x \land\overline{y} z ← x ∧ y .
(ii) (OR) If w ( z x ) = w ( z y ) = − D w(zx) = w(zy) = -D w ( z x ) = w ( z y ) = − D and b z = + D b_z = +D b z = + D , then Δ z = 2 D ( σ ( x ) + σ ( y ) ) − D + r \Delta_z = 2D(\sigma(x) + \sigma(y)) - D + r Δ z = 2 D ( σ ( x ) + σ ( y )) − D + r ; hence z ← x ∨ y z \leftarrow x \lor y z ← x ∨ y .
(iii) (tie breaker) Suppose t t t exists. If w ( z x ) = w ( z y ) = − D w(zx) = w(zy) = -D w ( z x ) = w ( z y ) = − D and b z = 0 b_z = 0 b z = 0 , then
Δ z = 2 D ( σ ( x ) + σ ( y ) − 1 ) + r . \Delta_z = 2D(\sigma(x) + \sigma(y) - 1) + r. Δ z = 2 D ( σ ( x ) + σ ( y ) − 1 ) + r . Hence, z ← x z \leftarrow x z ← x on assignments with σ ( x ) = σ ( y ) \sigma(x) = \sigma(y) σ ( x ) = σ ( y ) . On assignments with σ ( x ) ≠ σ ( y ) \sigma(x) \ne\sigma(y) σ ( x ) = σ ( y ) , if w ( z t ) > 0 w(zt) > 0 w ( z t ) > 0 , z ← t ‾ z \leftarrow\overline{t} z ← t ; if w ( z t ) < 0 w(zt) < 0 w ( z t ) < 0 , z ← t z \leftarrow t z ← t .
Proof. Each formula follows by substituting the weights into the definition of Δ z \Delta_z Δ z . The first two items use ∣ r ∣ < D |r| < D ∣ r ∣ < D . For the last item, when σ ( x ) = σ ( y ) \sigma(x) = \sigma(y) σ ( x ) = σ ( y ) , since ∣ r ∣ < D < 2 D |r| < D < 2D ∣ r ∣ < D < 2 D , we have z ← x z \leftarrow x z ← x (or equivalently z ← y z \leftarrow y z ← y ). When σ ( x ) ≠ σ ( y ) \sigma(x) \ne\sigma(y) σ ( x ) = σ ( y ) , we have Δ z = r = w ( z t ) ( 1 − 2 σ ( t ) ) \Delta_z = r = w(zt)(1 - 2\sigma(t)) Δ z = r = w ( z t ) ( 1 − 2 σ ( t )) . This implies that on these assignments, z ← t ‾ z \leftarrow\overline{t} z ← t when w ( z t ) > 0 w(zt) > 0 w ( z t ) > 0 and z ← t z \leftarrow t z ← t when $w(zt) < 0.
The construction
Fix n ≥ 1 n \ge1 n ≥ 1 . Let λ i : = 2 13 i + 4 \lambda_i := 2^{13i+4} λ i := 2 13 i + 4 for 0 ≤ i ≤ n + 1 0 \le i \le n + 1 0 ≤ i ≤ n + 1 . Thus λ i + 1 = 2 13 λ i \lambda_{i+1} = 2^{13}\lambda_i λ i + 1 = 2 13 λ i . The instance I n = ( G , w , b ) I_n = (G, w, b) I n = ( G , w , b ) has the following vertices and edges; all vertex weights are 0 0 0 unless stated otherwise.
Paths. First, we add two new vertices v 0 , 1 v_{0,1} v 0 , 1 and v 0 , 8 v_{0,8} v 0 , 8 and an edge between them with weight − 7 λ 0 -7\lambda_0 − 7 λ 0 . Next, for i ∈ { 1 , … , n } i \in\{1, \ldots, n\} i ∈ { 1 , … , n } , we add a path of eight new vertices v i , 1 , … , v i , 8 v_{i,1}, \ldots, v_{i,8} v i , 1 , … , v i , 8 in that order, with edge weights − 7 λ i -7\lambda_i − 7 λ i , − 5 λ i -5\lambda_i − 5 λ i , − 5 λ i -5\lambda_i − 5 λ i , − 3 λ i -3\lambda_i − 3 λ i , − 3 λ i -3\lambda_i − 3 λ i , − λ i -\lambda_i − λ i , − λ i -\lambda_i − λ i from v i , 1 v_{i,1} v i , 1 to v i , 8 v_{i,8} v i , 8 . Last, we add three further vertices v 0 ′ v'_0 v 0 ′ , v 1 ′ v'_1 v 1 ′ , and v 2 ′ v'_2 v 2 ′ with edges v n , 8 v 0 ′ v_{n,8}v'_0 v n , 8 v 0 ′ , v n , 1 v 1 ′ v_{n,1}v'_1 v n , 1 v 1 ′ , and v 1 ′ v 2 ′ v'_1v'_2 v 1 ′ v 2 ′ with weights − λ n -\lambda_n − λ n , λ n + 1 \lambda_{n+1} λ n + 1 and − 2 λ n + 1 -2\lambda_{n+1} − 2 λ n + 1 . Additionally, v 0 ′ v'_0 v 0 ′ has vertex weight − 2 λ n -2\lambda_n − 2 λ n . Note that this is the only vertex with a nonzero weight among the vertices above.
Gadget for v i − 1 , 1 v_{i-1,1} v i − 1 , 1 (i ∈ [ n ] i \in[n] i ∈ [ n ] ). We want the locally preferred value of v i − 1 , 1 v_{i-1,1} v i − 1 , 1 , after the auxiliary variables have settled, to be v i , 2 ⊕ v i , 4 ⊕ v i , 6 v_{i,2} \oplus v_{i,4} \oplus v_{i,6} v i , 2 ⊕ v i , 4 ⊕ v i , 6 , via the gadget below.
We add nine new vertices f 1 , f 2 , f 3 , f 4 , f z , g 1 , g 2 , g 3 , g 4 f_1, f_2, f_3, f_4, f_z, g_1, g_2, g_3, g_4 f 1 , f 2 , f 3 , f 4 , f z , g 1 , g 2 , g 3 , g 4 (all indexed by i i i ) and edges as shown in Figure 7 . Table 8 specifies each new edge and gives the relation enforced at the vertex in the first column; the correctness of the following relations is shown in Lemma 19.
Table 8. Data for the gadget to connect v i − 1 , 1 v_{i-1,1} v i − 1 , 1 with v i , 2 v_{i,2} v i , 2 , v i , 4 v_{i,4} v i , 4 and v i , 6 v_{i,6} v i , 6 . The f f f and g g g variables are additionally indexed by i i i . Each edge is listed exactly once, in the row where it is introduced.
Figure 7. Gadget for v i − 1 , 1 v_{i-1,1} v i − 1 , 1 . The f f f and g g g variables are additionally indexed by i i i . Once its auxiliary variables are locally stable, v i − 1 , 1 v_{i-1,1} v i − 1 , 1 has preferred value v i , 2 ⊕ v i , 4 ⊕ v i , 6 v_{i,2} \oplus v_{i,4} \oplus v_{i,6} v i , 2 ⊕ v i , 4 ⊕ v i , 6 .
Gadget for v i − 1 , 8 v_{i-1,8} v i − 1 , 8 (i ∈ [ n ] i \in[n] i ∈ [ n ] ). We add five new vertices u 0 , u 1 , u 2 , u 3 , q u_0, u_1, u_2, u_3, q u 0 , u 1 , u 2 , u 3 , q (indexed by i i i ) and edges as shown in Figure 8 .
Figure 8. Gadget for v i − 1 , 8 v_{i-1,8} v i − 1 , 8 . The u u u and q q q variables are additionally indexed by i i i .
The edges u 1 v i , 7 u_1v_{i,7} u 1 v i , 7 , u 2 v i , 5 u_2v_{i,5} u 2 v i , 5 , u 3 v i , 3 u_3v_{i,3} u 3 v i , 3 of weights − 1 -1 − 1 , + 1 +1 + 1 , − 1 -1 − 1 correspond to the incident edges of v i , 8 v_{i,8} v i , 8 in the Michel-Scott construction, now attached to copies of v i , 8 v_{i,8} v i , 8 . The purpose of the other edges is to make sure that the flip of v i − 1 , 8 v_{i-1,8} v i − 1 , 8 gets propagated correctly to these copies.
Initial assignment σ 0 \sigma_0 σ 0 . We use the all-zero assignment (i.e., σ 0 ( x ) = 0 \sigma_0(x)=0 σ 0 ( x ) = 0 for all x x x ).
Layer. For 0 ≤ i ≤ n 0 \le i \le n 0 ≤ i ≤ n , we call the set of all vertices indexed by i i i the layer F i F_i F i of the construction. See Figure 9 for an illustration of F i F_i F i together with some following relations between variables. Note that F i F_i F i contains all vertices of the gadget for v i − 1 , 1 v_{i-1,1} v i − 1 , 1 and the gadget for v i − 1 , 8 v_{i-1,8} v i − 1 , 8 , except for v i − 1 , 1 v_{i-1,1} v i − 1 , 1 and v i − 1 , 8 v_{i-1,8} v i − 1 , 8 themselves.
Figure 9. A layer F i F_i F i of I n \mathcal{I}_n I n for 1 ≤ i < n 1 \le i < n 1 ≤ i < n with the incident vertices of the adjacent layers (gray circles with dashed borders). Directed edges indicate following relations, and ¬ \neg ¬ denotes complementation; on a double-headed edge, ¬ \neg ¬ applies in both directions. At a ringed vertex, filled arrowheads indicate the two main inputs and the open arrowhead indicates the tie-breaker used when they disagree. Unoriented edges record adjacency only; dependencies inside the gadget for v i , 1 v_{i,1} v i , 1 and v i − 1 , 1 v_{i-1,1} v i − 1 , 1 are omitted. For i = n ≥ 1 i=n \ge1 i = n ≥ 1 , the vertex u i + 1 , 0 u_{i+1,0} u i + 1 , 0 is replaced by v 0 ′ v'_0 v 0 ′ , and v i , 1 v_{i,1} v i , 1 is incident to v 1 ′ v'_1 v 1 ′ instead of g i + 1 , 3 g_{i+1,3} g i + 1 , 3 and g i + 1 , 4 g_{i+1,4} g i + 1 , 4 .
Remark 18. Readers familiar with the construction of Michel and Scott [17 ] for Max-Cut with the flip neighborhood will recognize much of its structure in ours, particularly the paths and the recursive pattern of flips along them. In fact, as we show in the next section, the projection of our canonical flip sequence onto the path vertices is
R 0 = ( v 0 , 1 , v 0 , 8 ) , R n = ( v n , 1 , v n , 2 , R n − 1 , v n , 3 , v n , 4 , R n − 1 , v n , 5 , v n , 6 , R n − 1 , v n , 7 , v n , 8 ) , R_0 = (v_{0,1}, v_{0,8}), \qquad R_n = (v_{n,1}, v_{n,2}, R_{n-1}, v_{n,3}, v_{n,4}, R_{n-1}, v_{n,5}, v_{n,6}, R_{n-1}, v_{n,7}, v_{n,8}), R 0 = ( v 0 , 1 , v 0 , 8 ) , R n = ( v n , 1 , v n , 2 , R n − 1 , v n , 3 , v n , 4 , R n − 1 , v n , 5 , v n , 6 , R n − 1 , v n , 7 , v n , 8 ) ,
which is exactly the recursive flip sequence in their construction.
There are two changes in the presentation. First, we use an all-zero initial assignment: relative to the Michel-Scott construction, the odd-indexed path variables and v 1 ′ v'_1 v 1 ′ are complemented. Second, we use larger scales λ i = 2 13 i + 4 \lambda_i = 2^{13i+4} λ i = 2 13 i + 4 at each layer instead of the scales λ i = 8 i \lambda_i = 8^i λ i = 8 i appearing in the original construction. Neither change affects the recursive flip sequence on the path vertices.
The substantive modification is at the two degree-four interfaces. We replace the interaction at v i − 1 , 1 v_{i-1,1} v i − 1 , 1 and v i − 1 , 8 v_{i-1,8} v i − 1 , 8 by the respective gadgets, so that every variable has degree at most three. The additional variable v 0 ′ v'_0 v 0 ′ plays the same role for v n , 8 v_{n,8} v n , 8 as u i + 1 , 0 u_{i+1,0} u i + 1 , 0 does for v i , 8 v_{i,8} v i , 8 at i < n i<n i < n . This allows us to treat all layers uniformly in the correctness proof.
Correctness
The correctness proof has two stages. First, we verify locally that every auxiliary variable has the intended preferred value; these properties hold for every assignment and are summarized in Lemma 19 below. We then characterize all the maximal improving flip sequences by first defining a “canonical” sequence Ω n \Omega_n Ω n and then showing that every maximal improving flip sequence is simply a rearrangement of some flips in Ω n \Omega_n Ω n . More formally, we define a dependency graph D n D_n D n that encodes a partial order of the flips in Ω n \Omega_n Ω n , and the rearrangement above is then simply a linear extension of this dependency graph.
Lemma 19. In I n \mathcal{I}_n I n , the following hold.
(a) (Gadget for v i − 1 , 1 v_{i-1,1} v i − 1 , 1 ) The column “Follows” of Table 8 is correct. Specifically, f 1 ← v i , 2 f_1 \leftarrow v_{i,2} f 1 ← v i , 2 , f 2 ← v i , 4 f_2 \leftarrow v_{i,4} f 2 ← v i , 4 , g 2 ← v i , 6 g_2 \leftarrow v_{i,6} g 2 ← v i , 6 , f 3 ← f 1 ∧ f ˉ 2 f_3 \leftarrow f_1 \land\bar{f}_2 f 3 ← f 1 ∧ f ˉ 2 , f 4 ← f ˉ 1 ∧ f 2 f_4 \leftarrow\bar{f}_1 \land f_2 f 4 ← f ˉ 1 ∧ f 2 , f z ← f 3 ∨ f 4 f_z \leftarrow f_3 \lor f_4 f z ← f 3 ∨ f 4 , g 1 ← f z g_1 \leftarrow f_z g 1 ← f z , g 3 ← g 1 ∧ g ˉ 2 g_3 \leftarrow g_1 \land\bar{g}_2 g 3 ← g 1 ∧ g ˉ 2 , g 4 ← g ˉ 1 ∧ g 2 g_4 \leftarrow\bar{g}_1 \land g_2 g 4 ← g ˉ 1 ∧ g 2 , and v i − 1 , 1 ← g 3 ∨ g 4 v_{i-1,1} \leftarrow g_3 \lor g_4 v i − 1 , 1 ← g 3 ∨ g 4 . Further, this implies that in an assignment σ \sigma σ such that none of the variables above can be flipped to improve the objective, we have σ ( v i − 1 , 1 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) ⊕ σ ( v i , 6 ) \sigma(v_{i-1,1}) = \sigma(v_{i,2}) \oplus\sigma(v_{i,4}) \oplus\sigma(v_{i,6}) σ ( v i − 1 , 1 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) ⊕ σ ( v i , 6 ) .
(b) (Gadget for v i − 1 , 8 v_{i-1,8} v i − 1 , 8 ) The column “Follows” of Table 9 is correct. Specifically, u 1 ← u 0 u_1 \leftarrow u_0 u 1 ← u 0 , u 2 ← u 1 u_2 \leftarrow u_1 u 2 ← u 1 , u 3 ← u 2 u_3 \leftarrow u_2 u 3 ← u 2 , q ← u 3 q \leftarrow u_3 q ← u 3 ; moreover u 0 ← v i − 1 , 8 u_0 \leftarrow v_{i-1,8} u 0 ← v i − 1 , 8 when σ ( v i − 1 , 8 ) = σ ( u 1 ) \sigma(v_{i-1,8}) = \sigma(u_1) σ ( v i − 1 , 8 ) = σ ( u 1 ) , while u 0 ← q ˉ u_0 \leftarrow\bar{q} u 0 ← q ˉ when σ ( v i − 1 , 8 ) ≠ σ ( u 1 ) \sigma(v_{i-1,8}) \ne\sigma(u_1) σ ( v i − 1 , 8 ) = σ ( u 1 ) .
(c) (Even path vertices) For 1 ≤ i ≤ n 1 \le i \le n 1 ≤ i ≤ n and j ∈ { 2 , 4 , 6 } j \in\{2,4,6\} j ∈ { 2 , 4 , 6 } , v i , j ← v i , j − 1 v_{i,j} \leftarrow v_{i,j-1} v i , j ← v i , j − 1 .
(d) (Odd path vertices) For 1 ≤ i ≤ n 1 \le i \le n 1 ≤ i ≤ n and j ∈ { 3 , 5 , 7 } j \in\{3,5,7\} j ∈ { 3 , 5 , 7 } , when σ ( v i , j − 1 ) = σ ( v i , j + 1 ) \sigma(v_{i,j-1}) = \sigma(v_{i,j+1}) σ ( v i , j − 1 ) = σ ( v i , j + 1 ) , v i , j ← v i , j − 1 v_{i,j} \leftarrow v_{i,j-1} v i , j ← v i , j − 1 . When σ ( v i , j − 1 ) ≠ σ ( v i , j + 1 ) \sigma(v_{i,j-1}) \ne\sigma(v_{i,j+1}) σ ( v i , j − 1 ) = σ ( v i , j + 1 ) , v i , 3 ← u i , 3 v_{i,3} \leftarrow u_{i,3} v i , 3 ← u i , 3 , v i , 5 ← u ˉ i , 2 v_{i,5} \leftarrow\bar{u}_{i,2} v i , 5 ← u ˉ i , 2 , and v i , 7 ← u i , 1 v_{i,7} \leftarrow u_{i,1} v i , 7 ← u i , 1 .
(e) v n , 1 ← v ˉ 1 ′ v_{n,1} \leftarrow\bar{v}'_1 v n , 1 ← v ˉ 1 ′ ; v 1 ′ ← v 2 ′ v'_1 \leftarrow v'_2 v 1 ′ ← v 2 ′ ; v 2 ′ ← v ˉ 1 ′ v'_2 \leftarrow\bar{v}'_1 v 2 ′ ← v ˉ 1 ′ ; v 0 , 8 ← v 0 , 1 v_{0,8} \leftarrow v_{0,1} v 0 , 8 ← v 0 , 1 , and v 0 ′ v'_0 v 0 ′ strictly prefers the value 0 0 0 in every assignment.
(f) For 1 ≤ i < n 1 \le i < n 1 ≤ i < n , if σ ( v i , 7 ) = σ ( u i + 1 , 0 ) \sigma(v_{i,7}) = \sigma(u_{i+1,0}) σ ( v i , 7 ) = σ ( u i + 1 , 0 ) , then v i , 8 ← v i , 7 v_{i,8} \leftarrow v_{i,7} v i , 8 ← v i , 7 ; otherwise v i , 8 ← q i v_{i,8} \leftarrow q_i v i , 8 ← q i . For i = n i=n i = n , the same statement holds with v 0 ′ v'_0 v 0 ′ in place of u n + 1 , 0 u_{n+1,0} u n + 1 , 0 .
Table 9. Data for the gadget to connect v i − 1 , 8 v_{i-1,8} v i − 1 , 8 with v i , 3 v_{i,3} v i , 3 , v i , 5 v_{i,5} v i , 5 and v i , 7 v_{i,7} v i , 7 . Each edge is listed exactly once, in the row where it is introduced. All vertex weights are zero.
Proof. (a) We have
w ( f 1 v i , 2 ) = − λ i < − ( λ i 2 2 + λ i 2 2 ) = − ( ∣ w ( f 1 f 3 ) ∣ + ∣ w ( f 1 f 4 ) ∣ ) = − B f 1 ( v i , 2 ) w ( f 2 v i , 4 ) = − λ i < − ( λ i 2 2 + λ i 2 2 ) = − ( ∣ w ( f 2 f 3 ) ∣ + ∣ w ( f 2 f 4 ) ∣ ) = − B f 2 ( v i , 4 ) w ( g 2 v i , 6 ) = − λ i < − ( λ i 2 8 + λ i 2 8 ) = − ( ∣ w ( g 2 g 3 ) ∣ + ∣ w ( g 2 g 4 ) ∣ ) = − B g 2 ( v i , 6 ) w ( g 1 f z ) = − λ i 2 6 < − ( λ i 2 8 + λ i 2 8 ) = − ( ∣ w ( g 1 g 3 ) ∣ + ∣ w ( g 1 g 4 ) ∣ ) = − B g 1 ( f z ) \begin{aligned}
w(f_1v_{i,2}) &= -\lambda_i < -\left(\frac{\lambda_i}{2^2}+\frac{\lambda_i}{2^2}\right) = -\left(\lvert w(f_1f_3)\rvert+\lvert w(f_1f_4)\rvert\right) = -B_{f_1}(v_{i,2}) \\
w(f_2v_{i,4}) &= -\lambda_i < -\left(\frac{\lambda_i}{2^2}+\frac{\lambda_i}{2^2}\right) = -\left(\lvert w(f_2f_3)\rvert+\lvert w(f_2f_4)\rvert\right) = -B_{f_2}(v_{i,4}) \\
w(g_2v_{i,6}) &= -\lambda_i < -\left(\frac{\lambda_i}{2^8}+\frac{\lambda_i}{2^8}\right) = -\left(\lvert w(g_2g_3)\rvert+\lvert w(g_2g_4)\rvert\right) = -B_{g_2}(v_{i,6}) \\
w(g_1f_z) &= -\frac{\lambda_i}{2^6} < -\left(\frac{\lambda_i}{2^8}+\frac{\lambda_i}{2^8}\right) = -\left(\lvert w(g_1g_3)\rvert+\lvert w(g_1g_4)\rvert\right) = -B_{g_1}(f_z)
\end{aligned} w ( f 1 v i , 2 ) w ( f 2 v i , 4 ) w ( g 2 v i , 6 ) w ( g 1 f z ) = − λ i < − ( 2 2 λ i + 2 2 λ i ) = − ( ∣ w ( f 1 f 3 )∣ + ∣ w ( f 1 f 4 )∣ ) = − B f 1 ( v i , 2 ) = − λ i < − ( 2 2 λ i + 2 2 λ i ) = − ( ∣ w ( f 2 f 3 )∣ + ∣ w ( f 2 f 4 )∣ ) = − B f 2 ( v i , 4 ) = − λ i < − ( 2 8 λ i + 2 8 λ i ) = − ( ∣ w ( g 2 g 3 )∣ + ∣ w ( g 2 g 4 )∣ ) = − B g 2 ( v i , 6 ) = − 2 6 λ i < − ( 2 8 λ i + 2 8 λ i ) = − ( ∣ w ( g 1 g 3 )∣ + ∣ w ( g 1 g 4 )∣ ) = − B g 1 ( f z )
Hence, by Lemma 16, we have f 1 ← v i , 2 f_1 \leftarrow v_{i,2} f 1 ← v i , 2 , f 2 ← v i , 4 f_2 \leftarrow v_{i,4} f 2 ← v i , 4 , g 2 ← v i , 6 g_2 \leftarrow v_{i,6} g 2 ← v i , 6 , and g 1 ← f z g_1 \leftarrow f_z g 1 ← f z . For the remaining items in Table 8 , we apply the following:
Lemma 17(i) to f 3 , f 4 f_{3}, f_{4} f 3 , f 4 with D = λ i / 2 2 D = \lambda_i/2^2 D = λ i / 2 2 and residual incident weight λ i / 2 4 \lambda_i/2^4 λ i / 2 4 ;
Lemma 17(ii) to f z f_z f z with D = λ i / 2 4 D = \lambda_i/2^4 D = λ i / 2 4 and residual incident weight λ i / 2 6 \lambda_i/2^6 λ i / 2 6 ;
Lemma 17(i) to g 3 , g 4 g_{3}, g_{4} g 3 , g 4 with D = λ i / 2 8 D = \lambda_i/2^8 D = λ i / 2 8 and residual incident weight λ i / 2 10 \lambda_i/2^{10} λ i / 2 10 ; and
Lemma 17(ii) to v i − 1 , 1 v_{i-1,1} v i − 1 , 1 with D = λ i / 2 10 = 2 3 λ i − 1 > 7 λ i − 1 D = \lambda_i/2^{10} = 2^3\lambda_{i-1} > 7\lambda_{i-1} D = λ i / 2 10 = 2 3 λ i − 1 > 7 λ i − 1 , where 7 λ i − 1 7\lambda_{i-1} 7 λ i − 1 is the absolute weight of v i − 1 , 1 v i − 1 , 2 v_{i-1,1}v_{i-1,2} v i − 1 , 1 v i − 1 , 2 for i > 1 i > 1 i > 1 and of v i − 1 , 1 v i − 1 , 8 v_{i-1,1}v_{i-1,8} v i − 1 , 1 v i − 1 , 8 for i = 1 i = 1 i = 1 .
This proves every following relation in the table. If all variables appearing there cannot be flipped to improve the objective, these relations give
σ ( f i , z ) = σ ( f i , 3 ) ∨ σ ( f i , 4 ) = σ ( f i , 1 ) ⊕ σ ( f i , 2 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) , \sigma(f_{i,z}) = \sigma(f_{i,3}) \lor\sigma(f_{i,4}) = \sigma(f_{i,1}) \oplus\sigma(f_{i,2}) = \sigma(v_{i,2}) \oplus\sigma(v_{i,4}), σ ( f i , z ) = σ ( f i , 3 ) ∨ σ ( f i , 4 ) = σ ( f i , 1 ) ⊕ σ ( f i , 2 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) ,
σ ( v i − 1 , 1 ) = σ ( g i , 3 ) ∨ σ ( g i , 4 ) = σ ( g i , 1 ) ⊕ σ ( g i , 2 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) ⊕ σ ( v i , 6 ) , \sigma(v_{i-1,1}) = \sigma(g_{i,3}) \lor\sigma(g_{i,4}) = \sigma(g_{i,1}) \oplus\sigma(g_{i,2}) = \sigma(v_{i,2}) \oplus\sigma(v_{i,4}) \oplus\sigma(v_{i,6}), σ ( v i − 1 , 1 ) = σ ( g i , 3 ) ∨ σ ( g i , 4 ) = σ ( g i , 1 ) ⊕ σ ( g i , 2 ) = σ ( v i , 2 ) ⊕ σ ( v i , 4 ) ⊕ σ ( v i , 6 ) ,
as claimed.
(b) We have
w ( u 1 u 0 ) = − λ i − 1 ≤ − 2 4 < − ( 1 + 8 ) = − ( ∣ w ( u 1 u 2 ) ∣ + ∣ w ( u 1 v i , 7 ) ∣ ) = − B u 1 ( u 0 ) , w(u_1u_0) = -\lambda_{i-1} \le-2^4 < -(1+8) = -\left(\lvert w(u_1u_2)\rvert+ \lvert w(u_1v_{i,7})\rvert\right) = -B_{u_1}(u_0), w ( u 1 u 0 ) = − λ i − 1 ≤ − 2 4 < − ( 1 + 8 ) = − ( ∣ w ( u 1 u 2 )∣ + ∣ w ( u 1 v i , 7 )∣ ) = − B u 1 ( u 0 ) ,
w ( u 2 u 1 ) = − 8 < − ( 6 + 1 ) = − ( ∣ w ( u 2 u 3 ) ∣ + ∣ w ( u 2 v i , 5 ) ∣ ) = − B u 2 ( u 1 ) , w(u_2u_1) = -8 < -(6+1) = -\left(\lvert w(u_2u_3)\rvert+ \lvert w(u_2v_{i,5})\rvert\right) = -B_{u_2}(u_1), w ( u 2 u 1 ) = − 8 < − ( 6 + 1 ) = − ( ∣ w ( u 2 u 3 )∣ + ∣ w ( u 2 v i , 5 )∣ ) = − B u 2 ( u 1 ) ,
w ( u 3 u 2 ) = − 6 < − ( 4 + 1 ) = − ( ∣ w ( u 3 q ) ∣ + ∣ w ( u 3 v i , 3 ) ∣ ) = − B u 3 ( u 2 ) , w(u_3u_2) = -6 < -(4+1) = -\left(\lvert w(u_3q)\rvert+ \lvert w(u_3v_{i,3})\rvert\right) = -B_{u_3}(u_2), w ( u 3 u 2 ) = − 6 < − ( 4 + 1 ) = − ( ∣ w ( u 3 q )∣ + ∣ w ( u 3 v i , 3 )∣ ) = − B u 3 ( u 2 ) ,
w ( q u 3 ) = − 4 < − ( 1 + 1 ) = − ( ∣ w ( q u 0 ) ∣ + ∣ w ( q v i , 8 ) ∣ ) = − B q ( u 3 ) . w(qu_3) = -4 < -(1+1) = -\left(\lvert w(qu_0)\rvert+ \lvert w(qv_{i,8})\rvert\right) = -B_q(u_3). w ( q u 3 ) = − 4 < − ( 1 + 1 ) = − ( ∣ w ( q u 0 )∣ + ∣ w ( q v i , 8 )∣ ) = − B q ( u 3 ) .
Hence, by Lemma 16, we have u 1 ← u 0 u_1 \leftarrow u_0 u 1 ← u 0 , u 2 ← u 1 u_2 \leftarrow u_1 u 2 ← u 1 , u 3 ← u 2 u_3 \leftarrow u_2 u 3 ← u 2 , q ← u 3 q \leftarrow u_3 q ← u 3 , as claimed. For u 0 u_0 u 0 , applying Lemma 17(iii) with D = λ i − 1 D = \lambda_{i-1} D = λ i − 1 yields the desired relations.
(c) We have
w ( v i , 2 v i , 1 ) = − 7 λ i < − ( 5 λ i + λ i ) = − ( ∣ w ( v i , 2 v i , 3 ) ∣ + ∣ w ( v i , 2 f i , 1 ) ∣ ) = − B v i , 2 ( v i , 1 ) , w(v_{i,2}v_{i,1}) = -7\lambda_i < -(5\lambda_i + \lambda_i) = -\left(\lvert w(v_{i,2}v_{i,3})\rvert+ \lvert w(v_{i,2}f_{i,1})\rvert\right) = -B_{v_{i,2}}(v_{i,1}), w ( v i , 2 v i , 1 ) = − 7 λ i < − ( 5 λ i + λ i ) = − ( ∣ w ( v i , 2 v i , 3 )∣ + ∣ w ( v i , 2 f i , 1 )∣ ) = − B v i , 2 ( v i , 1 ) ,
w ( v i , 4 v i , 3 ) = − 5 λ i < − ( 3 λ i + λ i ) = − ( ∣ w ( v i , 4 v i , 5 ) ∣ + ∣ w ( v i , 4 f i , 2 ) ∣ ) = − B v i , 4 ( v i , 3 ) , w(v_{i,4}v_{i,3}) = -5\lambda_i < -(3\lambda_i + \lambda_i) = -\left(\lvert w(v_{i,4}v_{i,5})\rvert+ \lvert w(v_{i,4}f_{i,2})\rvert\right) = -B_{v_{i,4}}(v_{i,3}), w ( v i , 4 v i , 3 ) = − 5 λ i < − ( 3 λ i + λ i ) = − ( ∣ w ( v i , 4 v i , 5 )∣ + ∣ w ( v i , 4 f i , 2 )∣ ) = − B v i , 4 ( v i , 3 ) ,
w ( v i , 6 v i , 5 ) = − 3 λ i < − ( λ i + λ i ) = − ( ∣ w ( v i , 6 v i , 7 ) ∣ + ∣ w ( v i , 6 g i , 2 ) ∣ ) = − B v i , 6 ( v i , 5 ) . w(v_{i,6}v_{i,5}) = -3\lambda_i < -(\lambda_i + \lambda_i) = -\left(\lvert w(v_{i,6}v_{i,7})\rvert+ \lvert w(v_{i,6}g_{i,2})\rvert\right) = -B_{v_{i,6}}(v_{i,5}). w ( v i , 6 v i , 5 ) = − 3 λ i < − ( λ i + λ i ) = − ( ∣ w ( v i , 6 v i , 7 )∣ + ∣ w ( v i , 6 g i , 2 )∣ ) = − B v i , 6 ( v i , 5 ) .
By Lemma 16, we obtain v i , 2 ← v i , 1 v_{i,2} \leftarrow v_{i,1} v i , 2 ← v i , 1 , v i , 4 ← v i , 3 v_{i,4} \leftarrow v_{i,3} v i , 4 ← v i , 3 , and v i , 6 ← v i , 5 v_{i,6} \leftarrow v_{i,5} v i , 6 ← v i , 5 , as claimed.
(d) The two path edges incident with v i , 3 v_{i,3} v i , 3 have weight − 5 λ i -5\lambda_i − 5 λ i , those incident with v i , 5 v_{i,5} v i , 5 have weight − 3 λ i -3\lambda_i − 3 λ i , and those incident with v i , 7 v_{i,7} v i , 7 have weight − λ i -\lambda_i − λ i . The remaining incident edge has absolute weight 1 1 1 . Thus Lemma 17(iii) applies at each of these vertices. When the path neighbors agree, the vertex follows their common value. When they disagree, the sign of the unit edge gives that v i , 3 ← u i , 3 v_{i,3} \leftarrow u_{i,3} v i , 3 ← u i , 3 , v i , 5 ← u i ˉ , 2 v_{i,5} \leftarrow u_{\bar{i},2} v i , 5 ← u i ˉ , 2 , and v i , 7 ← u i , 1 v_{i,7} \leftarrow u_{i,1} v i , 7 ← u i , 1 , as claimed.
(e) These cases follow from Lemma 16 and the following observations.
w ( v n , 1 v 1 ′ ) = λ n + 1 > 7 λ n = ∣ w ( v n , 1 v n , 2 ) ∣ = B v n , 1 ( v 1 ′ ) , w(v_{n,1}v'_1) = \lambda_{n+1} > 7\lambda_n = \lvert w(v_{n,1}v_{n,2})\rvert= B_{v_{n,1}}(v'_1), w ( v n , 1 v 1 ′ ) = λ n + 1 > 7 λ n = ∣ w ( v n , 1 v n , 2 )∣ = B v n , 1 ( v 1 ′ ) ,
w ( v 1 ′ v 2 ′ ) = − 2 λ n + 1 < − λ n + 1 = − w ( v 1 ′ v n , 1 ) = − B v 1 ′ ( v 2 ′ ) , w(v'_1v'_2) = -2\lambda_{n+1} < -\lambda_{n+1} = -w(v'_1v_{n,1}) = -B_{v'_1}(v'_2), w ( v 1 ′ v 2 ′ ) = − 2 λ n + 1 < − λ n + 1 = − w ( v 1 ′ v n , 1 ) = − B v 1 ′ ( v 2 ′ ) ,
w ( v 2 ′ v 1 ′ ) = − 2 λ n + 1 < 0 = − B v 2 ′ ( v 1 ′ ) , w(v'_2v'_1) = -2\lambda_{n+1} < 0 = -B_{v'_2}(v'_1), w ( v 2 ′ v 1 ′ ) = − 2 λ n + 1 < 0 = − B v 2 ′ ( v 1 ′ ) ,
w ( v 0 , 8 v 0 , 1 ) = − 7 λ 0 < − λ 0 = − ∣ w ( v 0 , 8 u 1 , 0 ) ∣ = − B v 0 , 8 ( v 0 , 1 ) . w(v_{0,8}v_{0,1}) = -7\lambda_0 < -\lambda_0 = -\lvert w(v_{0,8}u_{1,0})\rvert= -B_{v_{0,8}}(v_{0,1}). w ( v 0 , 8 v 0 , 1 ) = − 7 λ 0 < − λ 0 = − ∣ w ( v 0 , 8 u 1 , 0 )∣ = − B v 0 , 8 ( v 0 , 1 ) .
Finally, Δ v 0 ′ = − 2 λ n − λ n ( 1 − 2 σ ( v n , 8 ) ) ∈ { − 3 λ n , − λ n } \Delta_{v'_0} = -2\lambda_n - \lambda_n(1 - 2\sigma(v_{n,8})) \in\{-3\lambda_n, -\lambda_n\} Δ v 0 ′ = − 2 λ n − λ n ( 1 − 2 σ ( v n , 8 )) ∈ { − 3 λ n , − λ n } . So v 0 ′ v'_0 v 0 ′ always strictly prefers 0 0 0 .
(f) when i < n i < n i < n , the two main edges at v i , 8 v_{i,8} v i , 8 , namely v i , 8 v i , 7 v_{i,8}v_{i,7} v i , 8 v i , 7 and v i , 8 u i + 1 , 0 v_{i,8}u_{i+1,0} v i , 8 u i + 1 , 0 , both have weight − λ i -\lambda_i − λ i , while v i , 8 q i v_{i,8}q_i v i , 8 q i has weight − 1 -1 − 1 . Hence the statement follows from Lemma 17(iii). The case i = n i = n i = n is identical because v n , 8 v 0 ′ v_{n,8}v'_0 v n , 8 v 0 ′ has weight − λ n -\lambda_n − λ n .
The canonical flip sequence. Recall the sequence R n R_n R n defined in Remark 18. For i ∈ [ n ] i \in[n] i ∈ [ n ] , we define
ρ i ( 1 ) = f i , 1 f i , 3 f i , z g i , 1 g i , 3 , ρ i ( 2 ) = f i , 2 f i , 3 f i , z g i , 1 g i , 3 , ρ i ( 3 ) = g i , 2 g i , 4 , ρ i ( 4 ) = f i , 1 f i , 4 f i , z g i , 1 g i , 4 , ρ i ( 5 ) = f i , 2 f i , 4 f i , z g i , 1 g i , 4 , ρ i ( 0 ) = g i , 2 g i , 4 . \begin{aligned}
\rho_i^{(1)} &= f_{i,1}\,f_{i,3}\,f_{i,z}\,g_{i,1}\,g_{i,3}, &
\rho_i^{(2)} &= f_{i,2}\,f_{i,3}\,f_{i,z}\,g_{i,1}\,g_{i,3}, &
\rho_i^{(3)} &= g_{i,2}\,g_{i,4}, \\
\rho_i^{(4)} &= f_{i,1}\,f_{i,4}\,f_{i,z}\,g_{i,1}\,g_{i,4}, &
\rho_i^{(5)} &= f_{i,2}\,f_{i,4}\,f_{i,z}\,g_{i,1}\,g_{i,4}, &
\rho_i^{(0)} &= g_{i,2}\,g_{i,4}.
\end{aligned} ρ i ( 1 ) ρ i ( 4 ) = f i , 1 f i , 3 f i , z g i , 1 g i , 3 , = f i , 1 f i , 4 f i , z g i , 1 g i , 4 , ρ i ( 2 ) ρ i ( 5 ) = f i , 2 f i , 3 f i , z g i , 1 g i , 3 , = f i , 2 f i , 4 f i , z g i , 1 g i , 4 , ρ i ( 3 ) ρ i ( 0 ) = g i , 2 g i , 4 , = g i , 2 g i , 4 .
α i = ( u i , 0 , u i , 1 , u i , 2 , u i , 3 , q i ) . \alpha_i = (u_{i,0},u_{i,1},u_{i,2},u_{i,3},q_i). α i = ( u i , 0 , u i , 1 , u i , 2 , u i , 3 , q i ) .
We obtain Ω n \Omega_n Ω n from R n R_n R n as follows: before the m m m -th occurrence of v i − 1 , 1 v_{i-1,1} v i − 1 , 1 , insert ρ i ( m m o d 6 ) \rho_i^{(m \bmod6)} ρ i ( m mod 6 ) , and after every occurrence of v i − 1 , 8 v_{i-1,8} v i − 1 , 8 , insert α i \alpha_i α i . Define Ω ‾ n \overline{\Omega}_n Ω n in the same way, except that the string inserted before the m m m -th occurrence of v i − 1 , 1 v_{i-1,1} v i − 1 , 1 is ρ i ( ( m + 3 ) m o d 6 ) \rho_i^{((m+3) \bmod6)} ρ i (( m + 3 ) mod 6 ) .
Then it is easy to obtain the following explicit recursions.
Observation 20. We have Ω 0 = Ω ‾ 0 = R 0 \Omega_0=\overline{\Omega}_0=R_0 Ω 0 = Ω 0 = R 0 . Further, for n ≥ 1 n\ge1 n ≥ 1 ,
Ω n = ( v n , 1 , v n , 2 , ρ n ( 1 ) , Ω n − 1 , α n , v n , 3 , v n , 4 , ρ n ( 2 ) , Ω ‾ n − 1 , α n , v n , 5 , v n , 6 , ρ n ( 3 ) , Ω n − 1 , α n , v n , 7 , v n , 8 ) \Omega_n=(v_{n,1},v_{n,2},\rho_n^{(1)},\Omega_{n-1},\alpha_n,v_{n,3},v_{n,4},\rho_n^{(2)},\overline{\Omega}_{n-1},\alpha_n,v_{n,5},v_{n,6},\rho_n^{(3)},\Omega_{n-1},\alpha_n,v_{n,7},v_{n,8}) Ω n = ( v n , 1 , v n , 2 , ρ n ( 1 ) , Ω n − 1 , α n , v n , 3 , v n , 4 , ρ n ( 2 ) , Ω n − 1 , α n , v n , 5 , v n , 6 , ρ n ( 3 ) , Ω n − 1 , α n , v n , 7 , v n , 8 )
Ω ‾ n = ( v n , 1 , v n , 2 , ρ n ( 4 ) , Ω ‾ n − 1 , α n , v n , 3 , v n , 4 , ρ n ( 5 ) , Ω n − 1 , α n , v n , 5 , v n , 6 , ρ n ( 0 ) , Ω ‾ n − 1 , α n , v n , 7 , v n , 8 ) \overline{\Omega}_n=(v_{n,1},v_{n,2},\rho_n^{(4)},\overline{\Omega}_{n-1},\alpha_n,v_{n,3},v_{n,4},\rho_n^{(5)},\Omega_{n-1},\alpha_n,v_{n,5},v_{n,6},\rho_n^{(0)},\overline{\Omega}_{n-1},\alpha_n,v_{n,7},v_{n,8}) Ω n = ( v n , 1 , v n , 2 , ρ n ( 4 ) , Ω n − 1 , α n , v n , 3 , v n , 4 , ρ n ( 5 ) , Ω n − 1 , α n , v n , 5 , v n , 6 , ρ n ( 0 ) , Ω n − 1 , α n , v n , 7 , v n , 8 )
Let T n = ∣ Ω n ∣ = ∣ Ω ‾ n ∣ T_n=|\Omega_n|=|\overline{\Omega}_n| T n = ∣ Ω n ∣ = ∣ Ω n ∣ . The recursions above give T 0 = 2 T_0=2 T 0 = 2 and T n = 3 T n − 1 + 35 T_n=3T_{n-1}+35 T n = 3 T n − 1 + 35 . Hence, we obtain the following.
Observation 21. For n ≥ 0 n\ge0 n ≥ 0 , T n = 39 ⋅ 3 n − 35 2 T_n=\frac{39\cdot3^n-35}{2} T n = 2 39 ⋅ 3 n − 35 .
We next describe the two phases used in the induction. Let τ 0 \tau_0 τ 0 be the assignment on F 0 F_0 F 0 that gives value 1 to both of its variables. For i ≥ 1 i\ge1 i ≥ 1 , let τ i \tau_i τ i be the assignment on F i F_i F i that gives value 1 to
{ v i , 1 , … , v i , 8 , f i , 1 , f i , 2 , g i , 2 , g i , 4 , u i , 0 , u i , 1 , u i , 2 , u i , 3 , q i } \{v_{i,1},\ldots,v_{i,8},f_{i,1},f_{i,2},g_{i,2},g_{i,4},u_{i,0},u_{i,1},u_{i,2},u_{i,3},q_i\} { v i , 1 , … , v i , 8 , f i , 1 , f i , 2 , g i , 2 , g i , 4 , u i , 0 , u i , 1 , u i , 2 , u i , 3 , q i }
and value 0 to the remaining variables of F i F_i F i . We say F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m are in phase 0 if all their variables are 0, and in phase 1 if each F i F_i F i is assigned according to τ i \tau_i τ i .
Lemma 22. For every m ≥ 0 m\ge0 m ≥ 0 , Ω m \Omega_m Ω m and Ω ‾ m \overline{\Omega}_m Ω m have the same flip parity on every variable. Starting in either phase on F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m , applying either complete string therefore changes these layers to the other phase.
Proof. We prove by induction. The lemma statement is immediate for m = 0 m=0 m = 0 . For m ≥ 1 m\ge1 m ≥ 1 , each path variable v m , j v_{m,j} v m , j occurs once and each variable of α m \alpha_m α m occurs three times. In both Ω m \Omega_m Ω m and Ω ‾ m \overline{\Omega}_m Ω m , the three ρ m \rho_m ρ m -blocks flip f m , 1 , f m , 2 , g m , 2 , g m , 4 f_{m,1},f_{m,2},g_{m,2},g_{m,4} f m , 1 , f m , 2 , g m , 2 , g m , 4 an odd number of times and every other f f f - or g g g -variable an even number of times. The three recursive substrings have, by induction, the same parity on lower layers. Hence, the net effect of these three is the same as the parity of one substring. The lemma then follows from all of the above together with the inductive hypothesis.
The dependency graph. We now characterize all (not necessarily maximal) improving flip sequences of I n \mathcal{I}_n I n via a directed graph D n D_n D n . Intuitively, the vertices of D n D_n D n represent occurrences of flips in Ω n \Omega_n Ω n , and not the variables, since a variable such as q n q_n q n and u n , j u_{n,j} u n , j may occur several times in Ω n \Omega_n Ω n . An edge ( r , s ) (r,s) ( r , s ) in D n D_n D n then represents that the flip at position r r r must happen before the flip at position s s s . In other words, D n D_n D n encodes a partial order of the flips.
More formally, let Ω n = ( ω 1 , … , ω T n ) \Omega_n=(\omega_1,\ldots,\omega_{T_n}) Ω n = ( ω 1 , … , ω T n ) , and Ω ‾ n = ( ω ‾ 1 , … , ω ‾ T n ) \overline{\Omega}_n=(\overline{\omega}_1,\ldots,\overline{\omega}_{T_n}) Ω n = ( ω 1 , … , ω T n ) . The vertices of D n D_n D n are [ T n ] [T_n] [ T n ] , which we interpret as positions in either Ω n \Omega_n Ω n or Ω ‾ n \overline{\Omega}_n Ω n . For n = 0 n=0 n = 0 , let D 0 D_0 D 0 consist of the edge ( 1 , 2 ) (1,2) ( 1 , 2 ) . For n ≥ 1 n\ge1 n ≥ 1 , we construct D n D_n D n on [ T n ] [T_n] [ T n ] as follows, with t = T n − 1 t=T_{n-1} t = T n − 1 .
For 2 ≤ s ≤ T n 2 \le s \le T_n 2 ≤ s ≤ T n , if ω s − 1 ∈ F n ∖ { q n } \omega_{s-1} \in F_n \setminus\{q_n\} ω s − 1 ∈ F n ∖ { q n } , we add the edge ( s − 1 , s ) (s-1,s) ( s − 1 , s ) .
For j ∈ { 7 , t + 19 , 2 t + 28 } j \in\{7,t+19,2t+28\} j ∈ { 7 , t + 19 , 2 t + 28 } , we add a copy of D n − 1 D_{n-1} D n − 1 shifted by j j j (i.e., for every edge ( r , s ) (r,s) ( r , s ) of D n − 1 D_{n-1} D n − 1 , we add the edge ( r + j , s + j ) (r+j,s+j) ( r + j , s + j ) ).
We add the edges ( t + 7 , t + 8 ) (t+7,t+8) ( t + 7 , t + 8 ) , ( 2 t + 19 , 2 t + 20 ) (2t+19,2t+20) ( 2 t + 19 , 2 t + 20 ) , and ( 3 t + 28 , 3 t + 29 ) (3t+28,3t+29) ( 3 t + 28 , 3 t + 29 ) , which correspond to the three cases from v n − 1 , 8 v_{n-1,8} v n − 1 , 8 to u n , 0 u_{n,0} u n , 0 in the recursion.
We add the edge ( r , s ) (r,s) ( r , s ) for the following r , s r,s r , s :
Table 10.
Here the superscript indicates the first, second, or third occurrence in Ω n \Omega_n Ω n (which is the same as in Ω ‾ n \overline{\Omega}_n Ω n ).
See Figure 10 for an illustration.
Figure 10. Recursive construction of D n D_n D n , where t = T n − 1 t = T_{n-1} t = T n − 1 . The vertices of D n D_n D n are indices in [ T n ] [T_n] [ T n ] ; the symbols inside the circles are the corresponding variables in Ω n \Omega_n Ω n , with the subscript n n n suppressed. Each ellipse represents a shifted copy of D n − 1 D_{n-1} D n − 1 , with only its unique source and sink displayed. The boxes R 1 R_1 R 1 , R 2 R_2 R 2 , R 3 R_3 R 3 are the paths corresponding to ρ n ( 1 ) \rho_n^{(1)} ρ n ( 1 ) , ρ n ( 2 ) \rho_n^{(2)} ρ n ( 2 ) , ρ n ( 3 ) \rho_n^{(3)} ρ n ( 3 ) for Ω n \Omega_n Ω n , and to ρ n ( 4 ) \rho_n^{(4)} ρ n ( 4 ) , ρ n ( 5 ) \rho_n^{(5)} ρ n ( 5 ) , ρ n ( 6 ) \rho_n^{(6)} ρ n ( 6 ) for Ω ‾ n \overline{\Omega}_n Ω n .
Lemma 23. The graph D n D_n D n is acyclic, has unique source 1 1 1 , and every vertex can reach T n T_n T n .
Proof. All edges go from a smaller to a larger index, so D n D_n D n is acyclic. The remainder of the statement follows by an easy induction on n n n from the recursive construction.
All improving sequences. For ε ∈ { 0 , 1 } \varepsilon\in\{0,1\} ε ∈ { 0 , 1 } , define
Ξ m ε = { Ω m , ε = 0 , Ω ‾ m , ε = 1. \Xi_m^\varepsilon=
\begin{cases}
\Omega_m, & \varepsilon=0,\\
\overline{\Omega}_m, & \varepsilon=1.
\end{cases} Ξ m ε = { Ω m , Ω m , ε = 0 , ε = 1.
We use the following statement, which is formulated so that it applies both to the entire construction and to a lower-layer recursive block.
Lemma 24. Fix m ≥ 0 m \ge0 m ≥ 0 and ε ∈ { 0 , 1 } \varepsilon\in\{0,1\} ε ∈ { 0 , 1 } . Suppose F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m are in phase ε \varepsilon ε , and among the variables in these layers only v m , 1 v_{m,1} v m , 1 is improving. Suppose further that the values of all neighbors of F 0 ∪ ⋯ ∪ F m F_0 \cup\cdots\cup F_m F 0 ∪ ⋯ ∪ F m outside these layers remain fixed until v m , 8 v_{m,8} v m , 8 flips. If m ≥ 1 m \ge1 m ≥ 1 , also suppose that the external neighbor of v m , 8 v_{m,8} v m , 8 (i.e., u m + 1 , 0 u_{m+1,0} u m + 1 , 0 when m ≠ n m \ne n m = n , and v 0 ′ v'_0 v 0 ′ when m = n m=n m = n ) has value ε \varepsilon ε and remains fixed until v m , 8 v_{m,8} v m , 8 flips. Then all maximal improving flip sequences restricted to F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m are exactly the strings obtained by labeling the linear extensions of D m D_m D m with the entries of Ξ m ε \Xi_m^\varepsilon Ξ m ε . After all ∣ Ξ m ε ∣ = T m |\Xi_m^\varepsilon|=T_m ∣ Ξ m ε ∣ = T m flips have occurred, the layers F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m are in phase 1 − ε 1-\varepsilon 1 − ε .
Proof. We prove the statement by induction on m m m . For m = 0 m=0 m = 0 , v 0 , 1 v_{0,1} v 0 , 1 is the only improving variable by assumption. After it flips, Lemma 19(e) makes v 0 , 8 v_{0,8} v 0 , 8 improving, and no variable of F 0 F_0 F 0 can improve again. Thus the unique improving sequence is ( v 0 , 1 , v 0 , 8 ) (v_{0,1},v_{0,8}) ( v 0 , 1 , v 0 , 8 ) , which is the unique linear extension of D 0 D_0 D 0 . The phase changes by Lemma 22.
Now let m ≥ 1 m \ge1 m ≥ 1 and assume the statement for m − 1 m-1 m − 1 . We follow the three recursive blocks in the definition of Ξ m ε \Xi_m^\varepsilon Ξ m ε . At three points in the proof, two groups of flips can proceed independently. We call these groups branches : their flips may be interleaved, subject to the dependencies within each branch, but both branches must finish before the next flip outside them can occur. The flips within each branch must still respect the order specified below.
First branching stage. Initially, only v m , 1 v_{m,1} v m , 1 is improving. By Lemma 19(a),(c), the flips v m , 1 v_{m,1} v m , 1 , v m , 2 v_{m,2} v m , 2 , ρ m ( 1 + 3 ε ) \rho_m^{(1+3\varepsilon)} ρ m ( 1 + 3 ε ) are forced (i.e., one must happen right after another as there is no other improving flip). Note that no variable in F 0 ∪ ⋯ ∪ F m − 1 F_0 \cup\cdots\cup F_{m-1} F 0 ∪ ⋯ ∪ F m − 1 has flipped during this flip sequence. Moreover, among the variables in these lower layers, only v m − 1 , 1 v_{m-1,1} v m − 1 , 1 is adjacent to a variable whose value has changed: its preference is controlled by the outputs of the gadget for v m − 1 , 1 v_{m-1,1} v m − 1 , 1 in F m F_m F m . The external neighbor u m , 0 u_{m,0} u m , 0 of v m − 1 , 8 v_{m-1,8} v m − 1 , 8 has not changed, so every other variable in the lower layers retains its previous preference and hence remains non-improving. By Lemma 19(a),
v m − 1 , 1 ← v m , 2 ⊕ v m , 4 ⊕ v m , 6 = ( 1 − ε ) ⊕ ε ⊕ ε = 1 − ε . v_{m-1,1} \leftarrow v_{m,2} \oplus v_{m,4} \oplus v_{m,6} = (1-\varepsilon) \oplus\varepsilon\oplus\varepsilon= 1-\varepsilon. v m − 1 , 1 ← v m , 2 ⊕ v m , 4 ⊕ v m , 6 = ( 1 − ε ) ⊕ ε ⊕ ε = 1 − ε .
Since the lower layers are still in phase ε \varepsilon ε , we have v m − 1 , 1 = ε v_{m-1,1}=\varepsilon v m − 1 , 1 = ε . Thus v m − 1 , 1 v_{m-1,1} v m − 1 , 1 is improving, and it is the only improving variable in F 0 ∪ ⋯ ∪ F m − 1 F_0 \cup\cdots\cup F_{m-1} F 0 ∪ ⋯ ∪ F m − 1 . The external neighbor of v m − 1 , 8 v_{m-1,8} v m − 1 , 8 is u m , 0 u_{m,0} u m , 0 , which still has value ε \varepsilon ε and does not flip before v m − 1 , 8 v_{m-1,8} v m − 1 , 8 . Hence, the inductive hypothesis applies and yields exactly a linear extension of D m − 1 D_{m-1} D m − 1 labeled by Ξ m − 1 ε \Xi_{m-1}^\varepsilon Ξ m − 1 ε . No variable in F m F_m F m becomes improving before the final flip of v m − 1 , 8 v_{m-1,8} v m − 1 , 8 . Indeed, the only vertices of F m F_m F m that are adjacent to the lower layers are u m , 0 u_{m,0} u m , 0 , q m , 3 q_{m,3} q m , 3 , and q m , 4 q_{m,4} q m , 4 . By Lemma 19(a), the last two variables have their preferred values independently of the lower layers. Hence, the only possible new improving move in F m F_m F m caused by flips in the lower layers is u m , 0 u_{m,0} u m , 0 , and the change required at that vertex cannot occur before v m − 1 , 8 v_{m-1,8} v m − 1 , 8 flips.
After the first recursive block, Lemma 19(b) forces u m , 0 u_{m,0} u m , 0 , u m , 1 u_{m,1} u m , 1 , u m , 2 u_{m,2} u m , 2 , u m , 3 u_{m,3} u m , 3 . At this point exactly q m q_m q m and v m , 3 v_{m,3} v m , 3 are improving: q m q_m q m always prefers the value for u m , 3 u_{m,3} u m , 3 , while for v m , 3 v_{m,3} v m , 3 , since its two neighbors v m , 2 v_{m,2} v m , 2 and v m , 4 v_{m,4} v m , 4 disagree, v m , 3 ← u m , 3 v_{m,3} \leftarrow u_{m,3} v m , 3 ← u m , 3 . At this point, sequence splits into two branches. The flip of q m q_m q m affects only the preferences of u m , 0 u_{m,0} u m , 0 and v m , 8 v_{m,8} v m , 8 , and in the present configuration it makes neither of them improving. On the other hand, starting with v m , 3 v_{m,3} v m , 3 forces v m , 3 v_{m,3} v m , 3 , v m , 4 v_{m,4} v m , 4 , ρ m ( 2 + 3 ε ) \rho_m^{(2+3\varepsilon)} ρ m ( 2 + 3 ε ) . At that point the lower layers are in phase 1 − ε 1-\varepsilon 1 − ε , the external neighbor u m , 0 u_{m,0} u m , 0 of v m − 1 , 8 v_{m-1,8} v m − 1 , 8 also has value 1 − ε 1-\varepsilon 1 − ε , and the same XOR argument as above makes v m − 1 , 1 v_{m-1,1} v m − 1 , 1 the only improving variable in the lower layers. Hence, the inductive hypothesis gives a linear extension of D m − 1 D_{m-1} D m − 1 labeled by Ξ m − 1 1 − ε \Xi_{m-1}^{1-\varepsilon} Ξ m − 1 1 − ε . The variable q m q_m q m is adjacent to none of the variables in this branch, so its flip may be interleaved arbitrarily with it. When the second recursive block is complete, the next occurrence of u m , 0 u_{m,0} u m , 0 is improving if and only if q m q_m q m has already flipped; if not, q m q_m q m is the only improving variable and must flip first. Thus, the possible interleavings are exactly those prescribed by the subgraph of D m D_m D m on { T m − 1 + 12 , … , 2 T m − 1 + 20 } \{T_{m-1}+12,\ldots,2T_{m-1}+20\} { T m − 1 + 12 , … , 2 T m − 1 + 20 } (i.e., the vertices on the path between the first occurrence of q q q and the second occurrence of u 0 u_0 u 0 in Figure 10 ).
Second branching stage. Once the second occurrence of u m , 0 u_{m,0} u m , 0 has flipped, Lemma 19 (b) forces u m , 1 u_{m,1} u m , 1 and then u m , 2 u_{m,2} u m , 2 . Now exactly u m , 3 u_{m,3} u m , 3 and v m , 5 v_{m,5} v m , 5 are improving: u m , 3 u_{m,3} u m , 3 , because u m , 3 ← u m , 2 u_{m,3}\leftarrow u_{m,2} u m , 3 ← u m , 2 by Lemma 19 (b); and v m , 5 v_{m,5} v m , 5 , because its two neighbors v m , 4 v_{m,4} v m , 4 and v m , 6 v_{m,6} v m , 6 now disagree and hence v m , 5 ← u ˉ m , 2 v_{m,5}\leftarrow\bar{u}_{m,2} v m , 5 ← u ˉ m , 2 by Lemma 19 (d). Following a similar argument as before, we obtain two resulting branches that start with ( u m , 3 , q m ) (u_{m,3},q_m) ( u m , 3 , q m ) and ( v m , 5 , v m , 6 , ρ m ( 3 + 3 ε ) ) (v_{m,5},v_{m,6},\rho_m^{(3+3\varepsilon)}) ( v m , 5 , v m , 6 , ρ m ( 3 + 3 ε ) ) . After the flips v m , 5 , v m , 6 , ρ m ( 3 + 3 ε ) v_{m,5},v_{m,6},\rho_m^{(3+3\varepsilon)} v m , 5 , v m , 6 , ρ m ( 3 + 3 ε ) have occurred, the lower layers are in phase ε \varepsilon ε and the external neighbor u m , 0 u_{m,0} u m , 0 of v m − 1 , 8 v_{m-1,8} v m − 1 , 8 also has value ε \varepsilon ε . By the same argument as in the first recursive block, v m − 1 , 1 v_{m-1,1} v m − 1 , 1 is then the only improving variable in F 0 ∪ ⋯ ∪ F m − 1 F_0\cup\cdots\cup F_{m-1} F 0 ∪ ⋯ ∪ F m − 1 . Hence, the inductive hypothesis applies and continues this branch with a linear extension of D m − 1 D_{m-1} D m − 1 labeled by Ξ m − 1 ε \Xi_{m-1}^{\varepsilon} Ξ m − 1 ε . The two branches are independent and hence may be interleaved arbitrarily, subject only to the displayed order within each branch and to the internal order of the recursive block. After the third recursive block, the next occurrence of u m , 0 u_{m,0} u m , 0 is improving exactly when the branch ( u m , 3 , q m ) (u_{m,3},q_m) ( u m , 3 , q m ) has been completed; otherwise its unfinished suffix is forced first. Hence, both branches must be completed before the next flip of u m , 0 u_{m,0} u m , 0 , as encoded in D m D_m D m .
Final branching stage. After the third occurrence of u m , 0 u_{m,0} u m , 0 , the flip of u m , 1 u_{m,1} u m , 1 is forced. Then exactly u m , 2 u_{m,2} u m , 2 and v m , 7 v_{m,7} v m , 7 are improving. The resulting independent branches are ( u m , 2 , u m , 3 , q m ) (u_{m,2},u_{m,3},q_m) ( u m , 2 , u m , 3 , q m ) and ( v m , 7 ) (v_{m,7}) ( v m , 7 ) . They may again be interleaved arbitrarily, respecting the order in the first branch. By Lemma 19 (f), v m , 8 v_{m,8} v m , 8 becomes improving exactly after both branches have completed, and it is then the only improving variable. After v m , 8 v_{m,8} v m , 8 flips, no variable in F 0 ∪ ⋯ ∪ F m F_0\cup\cdots\cup F_m F 0 ∪ ⋯ ∪ F m is improving.
The forced portions of the sequence give the consecutive top-layer dependencies in D m D_m D m , while the three applications of the inductive hypothesis give its three copies of D m − 1 D_{m-1} D m − 1 . Finally, the dependencies between branches account for exactly the six additional edges listed in the definition of D m D_m D m . Hence, the possible improving flip sequences are precisely the strings obtained by labeling the linear extensions of D m D_m D m with Ξ m ε \Xi_m^\varepsilon Ξ m ε . Finally, Lemma 22 shows that after all T m T_m T m flips, the layers F 0 , … , F m F_0,\ldots,F_m F 0 , … , F m are in phase 1 − ε 1-\varepsilon 1 − ε . □
Lemma 25. The map ( s 1 , … , s T n ) ⟼ ( ω s 1 , … , ω s T n ) (s_1,\ldots,s_{T_n})\longmapsto(\omega_{s_1},\ldots,\omega_{s_{T_n}}) ( s 1 , … , s T n ) ⟼ ( ω s 1 , … , ω s T n ) is a bijection between all linear extensions of D n D_n D n and all maximal improving flip sequences of I n \mathcal{I}_n I n starting from the initial solution σ 0 \sigma_0 σ 0 .
Proof. At σ 0 \sigma_0 σ 0 , by Lemma 19 , it is easy to check that only v n , 1 v_{n,1} v n , 1 is improving. Moreover, the external second input of v n , 8 v_{n,8} v n , 8 is v 0 ′ = 0 v'_0=0 v 0 ′ = 0 and, by Lemma 19 (e), it remains 0 0 0 forever. Hence, the hypotheses of Lemma 24 hold with m = n m=n m = n and ε = 0 \varepsilon=0 ε = 0 . It follows that all maximal improving flip sequences restricted to F 0 , … , F n F_0,\ldots,F_n F 0 , … , F n are exactly the linear extensions of D n D_n D n labeled by the entries of Ω n \Omega_n Ω n .
By Lemma 19 (e), v 1 ′ v'_1 v 1 ′ and v 2 ′ v'_2 v 2 ′ follow each other, while v 0 ′ v'_0 v 0 ′ strictly prefers 0. Hence, they remain 0 forever. As a result, the maximal improving flip sequences restricted to F 0 , … , F n F_0,\ldots,F_n F 0 , … , F n are exactly the maximal improving flip sequences for I n \mathcal{I}_n I n . The lemma then follows.
Corollary 26. All maximal improving flip sequences of I n \mathcal{I}_n I n from σ 0 \sigma_0 σ 0 have length T n = 39 ⋅ 3 n − 35 2 T_n = \frac{39\cdot3^n-35}{2} T n = 2 39 ⋅ 3 n − 35 and end at the same local optimum, namely the assignment in which every layer F i F_i F i is in phase 1 and $v'_0=v'_1=v'_2=0.
Consequently, we obtain the desired all-exp property.
Theorem 3. ( 2 , 3 , 2 ) (2,3,2) ( 2 , 3 , 2 ) -MCA with the flip neighborhood has the all-exp property.
Proof. The graph for I n \mathcal{I}_n I n has maximum degree three by construction. Hence, by Lemma 15 , the constructed instance is a ( 2 , 3 , 2 ) (2,3,2) ( 2 , 3 , 2 ) -MCA instance. Note that the instance has O ( n ) O(n) O ( n ) variables and each weight can be encoded by O ( n ) O(n) O ( n ) bits. By Corollary 26 , every maximal improving sequence has length Θ ( 3 n ) \Theta(3^n) Θ ( 3 n ) . The theorem then follows.
AI methodology
We obtained our three main results, Theorems 1 to 3, without the use of AI tools. We used ChatGPT 5.6 Sol and Claude Fable 5.1 to generate Python code for optimizing the weights and sizes of the constructions in our proofs; this yielded slightly simpler constructions but did not affect the statements of the results. All proofs were carried out by the authors, who take full responsibility for their correctness.