betaFeedback

WorksComputer Science

Exponential Local Search in Bounded-Occurrence MAX-CSP

Abstract

We study the number of improving steps that local search may require for (2,2,r)(2,2,r)-MCA (Maximum Constraint Assignment), a bounded-occurrence version of MAX-CSP with valued constraints in which every constraint involves at most two variables, every variable occurs in at most two constraints, and every variable takes one of rr values. We consider the flip neighborhood, where two assignments are neighbors if they differ in the value of exactly one variable; moving to such a neighbor is called a flip. Local search repeatedly performs improving flips, that is, flips that strictly increase the objective value, until a local optimum is reached. Our main result is that (2,2,5)(2,2,5)-MCA has the all-exp property: there is an infinite family of instances with initial assignments for which every sequence of improving flips ending in a local optimum has length exponential in the number of variables. Thus, on these instances, local search requires exponentially many steps regardless of which improving flip is chosen at each step. This is the first all-exp result for (2,2,r)(2,2,r)-MCA for any value of rr, and our result extends to every r≥5r\ge 5. In contrast, for (2,2,2)(2,2,2)-MCA every sequence of improving flips has length at most quadratic in the number of variables~\cite{Kaz2020,KCJ2020}. We give a short, direct proof of this result.

2012 ACM Subject Classification Theory of computation

Keywords and phrases Bounded-Occurrence MAX-CSP, Maximum Constraint Assignment, Local Search, all-exp property

Funding Hung P. Hoang: funded by the Austrian Science Fund (FWF, project 10.55776/ESP1136425)

Stefan Hougardy: funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC-2047/1 – 390685813

Introduction

Improving a solution step by step through small changes is perhaps the most natural way to approach a hard optimization problem. Local search algorithms are built on exactly this principle, and they are among the most widely used methods in combinatorial optimization. The same principle also appears in processes that were never designed as algorithms. For example, the convergence of Hopfield networks to stable states [13] and the adaptation of populations on fitness landscapes in evolutionary biology [5, 6] can both be viewed as local search, in which a system repeatedly makes a small change that improves an objective. Understanding how local search behaves is therefore relevant well beyond algorithm design.

A local search algorithm moves in each iteration from the current solution to an improving solution in its neighborhood until it reaches a local optimum; that is, a solution without an improving neighbor. A basic question about local search algorithms is how many iterations are needed to reach a local optimum. Following [10], we say that improving sequences are exponentially long if their length is at least 2∣I∣k2^{\sqrt[k]{|I|}} for some fixed k∈Nk \in\mathbb{N} that is independent of the instance II. A local search problem has the is-exp property if there are infinitely many instances, each with an initial solution, from which some sequence of improving steps ending in a local optimum is exponentially long. It has the all-exp property if there are infinitely many such instances and initial solutions from which every sequence of improving steps ending in a local optimum is exponentially long. The all-exp property thus means that local search needs exponentially many iterations on these instances, no matter which improving neighbor is chosen in each iteration.

In this paper, we ask how simple an optimization problem can be while local search still has the all-exp property. We study this question for maximum constraint satisfaction (MAX-CSP), one of the most general frameworks for combinatorial optimization, with its natural neighborhood. More precisely, we consider (2,2,r)(2, 2, r)-MCA (Maximum Constraint Assignment), the version of MAX-CSP with valued constraints in which every constraint involves at most two variables, every variable occurs in at most two constraints, and every variable takes one of rr values. This is about as restricted as a constraint problem can be while still allowing variables to interact. We use the flip neighborhood, in which two assignments are neighbors if they differ in the value of exactly one variable; thus, a local search step changes the value of a single variable while leaving all others unchanged.

For binary variables, that is, for domain size r=2r = 2, local search reaches a local optimum after a number of iterations that is at most quadratic in the number of variables, regardless of the weights, as follows from the more general results of [5, 6]. It is natural to ask whether this remains true for larger domains. Our main result shows that it does not: already with five values per variable, there are instances and initial assignments from which every sequence of improving steps leading to a local optimum has exponential length. Previously, no all-exp result was known for (2,2,r)(2, 2, r)-MCA with the flip neighborhood for any value of rr.

Theorem 1. (2,2,r)(2, 2, r)-MCA with the flip neighborhood has the all-exp property for r≥5r \ge5.

A standard way to establish the all-exp property for a local search problem is to prove its PLS-completeness via a tight PLS-reduction. The complexity class PLS was introduced by Johnson, Papadimitriou, and Yannakakis to formalize the complexity of finding locally optimal solutions [4]. Schäffer and Yannakakis subsequently introduced tight PLS-reductions and showed that such reductions preserve the all-exp property; hence a problem that is PLS-complete under tight reductions has the all-exp property [13]. In our setting, this route to proving the all-exp property is not available, as Dumrauf and Monien [2] observed that for (2,2,r)(2, 2, r)-MCA even a globally optimal solution can be found in polynomial time; indeed, the constraint graph of such an instance has maximum degree two, so it is a disjoint union of paths and cycles, and an optimal assignment can be computed in polynomial time by dynamic programming. Since a global optimum is in particular a local optimum, a local optimum of (2,2,r)(2, 2, r)-MCA can be found in polynomial time. If (2,2,r)(2, 2, r)-MCA were PLS-complete, this would yield polynomial-time algorithms for all problems in PLS. Hence, unless all problems in PLS can be solved in polynomial time, (2,2,r)(2, 2, r)-MCA is not PLS-complete, and Theorem 1 must be proved by a different approach.

We therefore prove Theorem 1 directly from the definition of the all-exp property. For every n≥1n \ge1 we construct an instance of (2,2,5)(2, 2, 5)-MCA with 2n+12n + 1 variables and 2n+12n + 1 constraints, together with an initial assignment, such that every maximal sequence of improving flips has length exactly 2n+3−72^{n+3} - 7; the case r>5r > 5 then follows by adding values that are never used. Since (2,2,r)(2, 2, r)-MCA can be solved in polynomial time, Theorem 1 also shows that the all-exp property is a statement about local search itself: these instances are easy for other algorithms, yet local search with the flip neighborhood, started at the given initial assignment, needs exponentially many steps, regardless of which improving flip it chooses in each step.

Previous work

MCA provides a natural extension of weighted satisfiability problems and was studied systematically by Dumrauf and Monien [2]. Building on techniques introduced by Krentel [8], they proved the PLS-completeness of (3,2,3)(3, 2, 3)-MCA and (2,3,6)(2, 3, 6)-MCA via a tight reduction, and hence the all-exp property for both problems. They also obtained PLS-completeness via a tight reduction for the binary problem (6,2,2)(6, 2, 2)-MCA. On the positive side, Dumrauf and Monien [2] proved that (2,2,r)(2, 2, r)-MCA can be solved in polynomial time for all values of rr. Moreover, Kaznatcheev, Cohen, and Jeavons [6] proved that for binary variables, constraints of arity at most two, and a constraint graph that is a tree, every sequence of improving flips has length at most quadratic in the number of variables, independently of the weights; for constraint graphs of maximum degree two, which also include cycles, they sketch the same bound and refer to Kaznatcheev [5] for the full analysis. In particular, every sequence of improving flips for (2,2,2)(2, 2, 2)-MCA has at most quadratic length. For (2,2,3)(2, 2, 3)-MCA, Kaznatcheev, Cohen, and Jeavons [6] proved the is-exp property by an explicit family of instances whose constraint graphs are paths.

Recently, Kaznatcheev and Volgering [7] constructed instances with binary variables and with constraints of arity at most three whose constraint graphs have pathwidth three and from which all sequences of improving flips are exponentially long. They conjectured that for binary variables and constraint graphs of treewidth two, there is always a sequence of improving flips of polynomial length from any initial assignment. Our construction shows that no such statement holds once the domain has five values: there, a constraint graph that is a path already admits the all-exp property.

For Max-Cut in graphs of maximum degree dd, which is a special case of (2,d,2)(2, d, 2)-MCA (see § 2), the complexity of local search with the flip neighborhood is well studied. Schäffer and Yannakakis [13] proved that Max-Cut with the flip neighborhood is PLS-complete under tight reductions and hence has the all-exp property. Poljak [12] showed that on graphs of maximum degree three, every sequence of improving flips has length O(n2)O(n^2), where nn is the number of vertices, and asked whether the all-exp property holds for maximum degree four. Monien and Tscheuschner [11] answered this question affirmatively, and Michel and Scott [9] later provided a considerably simpler construction. Elsässer and Tscheuschner [3] proved PLS-completeness for graphs of maximum degree five via a tight reduction; for maximum degree four, PLS-completeness is still open.

Our contributions

As our main result, we prove that (2,2,r)(2,2,r)-MCA with the flip neighborhood has the all-exp property for r≥5r \ge5 (Theorem 1 above). Our instances for r=5r = 5 have 2n+12n + 1 variables, 2n+12n + 1 constraints with nonnegative integer values, and a constraint graph that is a path; from the initial assignment, the unique maximal sequence of improving flips has length 2n+3−72^{n+3} - 7. In fact, at every assignment along this sequence except the last one, exactly one flip is improving. We present this proof in Section 3.

In addition, in Section 4, we provide a simpler proof of the following result.

Theorem 2. Every strictly improving flip sequence for a (2,2,2)(2,2,2)-MCA instance on nn variables has length O(n2)O(n^2). In particular, (2,2,2)(2,2,2)-MCA does not have the is-exp property, and hence not the all-exp property.

The quadratic length bound for (2,2,2)(2,2,2)-MCA follows from a more general result proven in [5, 6]. We give a more direct and much shorter proof of this statement.

From the two results above, the remaining cases are r=3r = 3 and r=4r = 4. The is-exp property is known for r=3r = 3 [6], and hence also for r=4r = 4; whether the all-exp property holds is open in both cases.

Preliminaries

An instance of (p,q,r)(p,q,r)-MCA, the Maximum Constraint Assignment problem with parameters pp, qq, and rr, consists of variables with a common domain of rr values and a collection of constraints. Each constraint involves at most pp variables and assigns a weight to every combination of values of these variables. The parameter qq bounds the number of constraints in which each variable occurs. An assignment of values to all variables thus receives one weight from each constraint, and its objective value, the sum of these weights, is to be maximized.

In the terminology of constraint satisfaction, (p,q,r)(p,q,r)-MCA is a weighted MAX-CSP over a domain of size rr, restricted to instances in which every constraint has arity at most pp and every variable occurs in at most qq constraints. The constraints are arbitrary: each is given by an explicit table of weights and need not be derived from a predicate of a particular type. A weighted constraint that is either satisfied or violated is the special case in which this table takes only two values, the weight of the constraint and zero. Problems of this form are also studied under the name valued constraint satisfaction problems (VCSPs) [14, 1, 16], which are usually formulated as minimization problems. Since all weights in MCA are finite, (p,q,r)(p,q,r)-MCA corresponds, after negating the weights, to finite-valued VCSPs [15] of arity at most pp in which every variable occurs in at most qq constraints. This terminology is also used in the work of Kaznatcheev et al. [5, 6] on local search, discussed above. We keep the name MCA used by Dumrauf and Monien [2], since our results build on their work and since the parameters pp, qq, and rr make the three restrictions explicit.

Many classical optimization problems, such as weighted MAX-SAT and Max-Cut, are special cases of MCA. In an instance of Max-Cut, the vertices of the graph become binary variables, and an edge of weight ww becomes a constraint on its two endpoints that contributes ww if the endpoints receive different values and 00 otherwise.

We consider local search with the flip neighborhood: two assignments are neighbors if they differ in the value of exactly one variable, and moving to such a neighbor is called a flip. The name comes from the binary case, where the only possible change is to flip a variable to its other value; for r>2r > 2, a flip may assign any of the other r−1r - 1 values. A flip is improving if it strictly increases the objective value, and an assignment is a local optimum if no improving flip exists.

The all-exp property for (2,2,5)-MCA

In this section, we prove our main result:

Theorem 1. (2,2,r)(2,2,r)-MCA with the flip neighborhood has the all-exp property for r≥5r \ge5.

It suffices to prove this result for r=5r = 5. Indeed, an instance of (2,2,5)(2,2,5)-MCA with nonnegative constraint values can be turned into an instance of (2,2,r)(2,2,r)-MCA for any r>5r > 5 by adding r−5r - 5 new values to the domain of every variable and assigning the value 00 to every entry of a constraint that involves a new value. Since all constraint values are nonnegative, a flip to a new value never increases the objective value, so the improving sequences starting from an assignment without new values do not change. Hence, it is enough to prove the following statement:

Theorem 3. (2,2,5)(2,2,5)-MCA with the flip neighborhood has the all-exp property.

Proof. We will prove this result by showing that for every n≥1n \ge1 there is a (2,2,5)(2,2,5)-MCA instance QnQ_n with 2n+12n + 1 variables and nonnegative integer constraint values, and an initial assignment such that every maximal sequence of strictly improving flips starting from this assignment has length exactly 2n+3−72^{n+3} - 7. Moreover, we will see that at every assignment occurring in this sequence, except the last one, there is a unique strictly improving flip, and that it increases the objective value by exactly one.

The 2n+12n + 1 variables of QnQ_n are as follows: for i∈{1,…,n}i \in\{1,\ldots,n\} we have two variables aia_i, bib_i, and we additionally have a variable b0b_0. All variables have the domain D={0,1,2,3,4}D = \{0,1,2,3,4\}.

Our instance QnQ_n contains one unary constraint K0K_0 on the variable b0b_0, and, for every i∈{1,…,n}i \in\{1,\ldots,n\}, two binary constraints JiJ_i and KiK_i. The constraint JiJ_i contains the two variables bi−1b_{i-1} and aia_i, while the constraint KiK_i contains the two variables aia_i and bib_i. Hence, the constraint graph is a path (b0,a1,b1,…,an,bn)(b_0,a_1,b_1,\ldots,a_n,b_n). Thus, every constraint contains at most two variables, and every variable occurs in at most two constraints, so the resulting instance QnQ_n is a (2,2,5)(2,2,5)-MCA instance.

We group the variables and constraints into levels: level 0 consists of the variable b0b_0, and for 1≤i≤n1 \le i \le n, level ii consists of the two variables aia_i and bib_i. The constraint K0K_0 is the constraint of level 0, and JiJ_i and KiK_i are the constraints of level ii; KiK_i involves only the variables of level ii, whereas JiJ_i connects level ii to level i−1i - 1. Figure 1 shows a visualization of the instance Q4Q_4. For 0≤i≤n0 \le i \le n let Vi:={b0,a1,b1,…,ai,bi}V_i := \{b_0,a_1,b_1,\ldots,a_i,b_i\} be the set of variables of levels 0,…,i0,\ldots,i. When level ii is considered, we refer to the variables in Vi−1V_{i-1} as the lower levels.

Visualization of the instance $Q_4$ showing its path-like structure

Figure 1. Visualization of the instance Q4Q_4 showing its path-like structure. The variables bib_i are shown as circles, the variables aia_i as squares. An edge between two variables represents a constraint containing these two variables. The constraint K0K_0 only contains the variable b0b_0.

b0b_001234
K0(b0)K_0(b_0)100101000

Table 1. Definition of the values for the constraint K0K_0 depending on the value of the variable b0b_0.

For readability, we denote the five values of an aia_i-variable by

A=0,B=1,C=2,D=3,E=4.A=0,\qquad B=1,\qquad C=2,\qquad D=3,\qquad E=4.

The constraint values depend on two sequences of integer parameters

Hi:=16⋅2i−14andMi:=100i+1for i=0,…,n.H_i:=16\cdot2^i-14\qquad\text{and}\qquad M_i:=100^{i+1}\qquad\text{for }i=0,\ldots,n.

Note that all HiH_i are even, that Hi=2Hi−1+14H_i=2H_{i-1}+14 for i≥1i\ge1, and that Hi−1<Hi<MiH_{i-1}<H_i<M_i for all i≥1i\ge1.

The values of the constraints K0K_0, JiJ_i, and KiK_i are given in Tables 1, 2, and 3.

The initial assignment assigns 0 to all bib_i-variables and A to all aia_i-variables; since A = 0, it is the all-zero assignment.

We write x ⁣:u⇝vx\colon u\leadsto v for the flip that changes the value of the variable xx from uu to vv. Recall that a flip is improving if it strictly increases the objective value; we call the increase its gain. Since every variable occurs in at most two constraints, the gain of a flip of a variable depends only on the values of that variable and of its (at most two) neighbors on the path. Explicitly:

  • the gain of a flip of aia_i is determined by bi−1b_{i-1} and bib_i, through JiJ_i and KiK_i;

  • the gain of a flip of bib_i, 1≤i<n1\le i<n, is determined by aia_i and ai+1a_{i+1}, through KiK_i and Ji+1J_{i+1};

  • the gain of a flip of bnb_n is determined by ana_n, through KnK_n alone;

  • the gain of a flip of b0b_0 is determined by a1a_1, through K0K_0 and J1J_1.

By the state of level i≥1i \ge1 we mean the pair of values (x,y)(x,y) currently assigned to (ai,bi)(a_i,b_i); we write “level ii is at (x,y)(x,y)” or simply “at (x,y)(x,y)”. Let

A={(A,0),(A,2),(A,4),(B,2),(C,2),(C,3),(C,4),(D,3),(D,4),(E,1),(E,2),(E,3)}\mathcal{A}=\{(\mathrm{A},0),(\mathrm{A},2),(\mathrm{A},4),(\mathrm{B},2),(\mathrm{C},2),(\mathrm{C},3),(\mathrm{C},4),(\mathrm{D},3),(\mathrm{D},4),(\mathrm{E},1),(\mathrm{E},2),(\mathrm{E},3)\}

be the set of pairs of values at which the table of KiK_i has a nonzero entry; this set is the same for every ii. We call the pairs in A\mathcal{A} admissible. Every entry Ki(x,y)K_i(x,y) with (x,y)∈A(x,y)\in\mathcal{A} is at least 9Mi−39M_i-3, whereas Ki(x,y)=0K_i(x,y)=0 for (x,y)∉A(x,y)\notin\mathcal{A}. A flip of aia_i or of bib_i that changes the state of level ii from an admissible to a non-admissible pair therefore loses at least 9Mi−39M_i-3 in KiK_i.

In the following three claims, we analyze those combinations of states and variable values that occur in the improving sequence described afterwards. Note that we are only concerned with admissible pairs, since as argued above, starting from admissible pairs, we will not encounter inadmissible pairs in an improving flip sequence.

Claim 4 (Flips of aia_i). Let 1≤i≤n1\le i\le n. For each of the following combinations of the state of level ii and the value of bi−1b_{i-1}, the improving flips of aia_i are as stated, and each flip listed is the only improving flip of aia_i and has gain 1.

(a) If level ii is at (A,0)(\mathrm{A},0) or at (E,1)(\mathrm{E},1), then for every value of bi−1b_{i-1} the variable aia_i has no improving flip.

(b) If level ii is at (B,2)(\mathrm{B},2), then aia_i has an improving flip if and only if bi−1=1b_{i-1}=1, namely ai:B⇝Ca_i:\mathrm{B}\leadsto\mathrm{C}.

(c) If level ii is at (D,3)(\mathrm{D},3), then aia_i has an improving flip if and only if bi−1=0b_{i-1}=0, namely ai:D⇝Ea_i:\mathrm{D}\leadsto\mathrm{E}.

(d) If level ii is at (D,4)(\mathrm{D},4), then aia_i has an improving flip if and only if bi−1=0b_{i-1}=0, namely ai:D⇝Aa_i:\mathrm{D}\leadsto\mathrm{A}.

(e) Let bi−1=0b_{i-1}=0. If level ii is at (A,2)(\mathrm{A},2) or at (E,2)(\mathrm{E},2), then aia_i has the improving flip ai:A⇝Ba_i:\mathrm{A}\leadsto\mathrm{B} or ai:E⇝Ba_i:\mathrm{E}\leadsto\mathrm{B}, respectively. If level ii is at (E,3)(\mathrm{E},3) or at (A,4)(\mathrm{A},4), then aia_i has no improving flip.

(f) Let bi−1=1b_{i-1}=1. If level ii is at (C,3)(\mathrm{C},3) or at (C,4)(\mathrm{C},4), then aia_i has the improving flip ai:C⇝Da_i:\mathrm{C}\leadsto\mathrm{D}. If level ii is at (C,2)(\mathrm{C},2), then aia_i has no improving flip.

Proof of Claim 4. A flip of aia_i changes only the constraints JiJ_i and KiK_i. For fixed values of bi−1b_{i-1} and bib_i and a value y∈Dy\in D of aia_i let

Φ(y):=Ji(bi−1,y)+Ki(y,bi).\Phi(y):=J_i(b_{i-1},y)+K_i(y,b_i).

Then the flip ai:x⇝ya_i:x\leadsto y is improving if and only if Φ(y)>Φ(x)\Phi(y)>\Phi(x), and its gain is Φ(y)−Φ(x)\Phi(y)-\Phi(x). Since Hi−1H_{i-1} is even, all values of Φ\Phi are integers.

From any of the admissible states, a flip to a non-admissible pair loses at least 9Mi−39M_i-3 in KiK_i and gains at most 2Mi+Hi−12M_i+H_{i-1} in JiJ_i; since Hi−1<MiH_{i-1}<M_i, it is not improving.

It therefore suffices to compare the admissible alternatives. Using Table 2 and Table 3, we obtain:

Ji(bi−1,ai)J_i(b_{i-1},a_i)ai=Aa_i=Aai=Ba_i=Bai=Ca_i=Cai=Da_i=Dai=Ea_i=E
bi−1=0b_{i-1}=02Mi+Hi−12M_i+H_{i-1}MiM_i0Mi+Hi−1M_i+H_{i-1}2Mi+Hi−12M_i+H_{i-1}
bi−1=1b_{i-1}=10MiM_i2Mi2M_iMiM_i0
bi−1=2b_{i-1}=212Hi−1\frac{1}{2}H_{i-1}MiM_i0Mi+12Hi−1M_i+\frac{1}{2}H_{i-1}12Hi−1\frac{1}{2}H_{i-1}
bi−1=3b_{i-1}=30MiM_i0MiM_i0
bi−1=4b_{i-1}=4Hi−1H_{i-1}MiM_i0Mi+Hi−1M_i+H_{i-1}Hi−1H_{i-1}

Table 2. Definition of the values for the constraints JiJ_i for i=1,…,ni=1,\ldots,n depending on the values of the variables bi−1b_{i-1} and aia_i.

Ki(ai,bi)K_i(a_i,b_i)bi=0b_i=0bi=1b_i=1bi=2b_i=2bi=3b_i=3bi=4b_i=4
ai=Aa_i=A9Mi9M_i09Mi+19M_i+109Mi−19M_i-1
ai=Ba_i=B0010Mi+Hi−1+210M_i+H_{i-1}+200
ai=Ca_i=C009Mi+Hi−1+39M_i+H_{i-1}+39Mi+Hi−1+49M_i+H_{i-1}+49Mi−39M_i-3
ai=Da_i=D00010Mi+Hi−1+510M_i+H_{i-1}+510Mi−210M_i-2
ai=Ea_i=E09Mi+Hi−1+79M_i+H_{i-1}+79Mi+19M_i+19Mi+Hi−1+69M_i+H_{i-1}+60

Table 3. Definition of the values for the constraints KiK_i for i=1,…,ni=1,\ldots,n depending on the values of the variables aia_i and bib_i.

(ai,bi)(a_i,b_i)bi−1b_{i-1}improving target for aia_igain
(A, 0)anynone−
(E, 1)anynone−
(B, 2)1C1
(B, 2)≠1\ne1none−
(D, 3)0E1
(D, 3)≠0\ne0none−
(D, 4)0A1
(D, 4)≠0\ne0none−
(A, 2)0B1
(E, 2)0B1
(E, 3)0none−
(A, 4)0none−
(C, 3)1D1
(C, 4)1D1
(C, 2)1none−

Table 4.

Here “none” means that every admissible alternative has value at most Φ(ai)\Phi(a_i). The first two rows are immediate because (A, 0) and (E, 1) are the only admissible pairs with second component 0 and 1, respectively. The remaining entries follow by direct comparison of the corresponding entries in Table 2 and Table 3. This proves all parts of the claim. ◀

Claim 5 (Flips of bib_i). Let 1≤i≤n1 \le i \le n. For each of the following combinations of the state of level ii and, if i<ni < n, the value of ai+1a_{i+1}, the improving flips of bib_i are as stated, and each flip listed is the only improving flip of bib_i and has gain 1.

(a) Let i=ni = n or ai+1=Ba_{i+1} = \mathrm{B}. If level ii is at (A, 0), (C, 2), or (E, 3), then bib_i has the improving flip bib_i: 0 ⇝\rightsquigarrow 2, bib_i: 2 ⇝\rightsquigarrow 3, or bib_i: 3 ⇝\rightsquigarrow 1, respectively. If level ii is at (A, 2), (B, 2), (C, 3), (D, 3), or (E, 1), then bib_i has no improving flip.

(b) Let i<ni < n and ai+1=Da_{i+1} = \mathrm{D}. If level ii is at (E, 1), (C, 2), or (A, 4), then bib_i has the improving flip bib_i: 1 ⇝\rightsquigarrow 2, bib_i: 2 ⇝\rightsquigarrow 4, or bib_i: 4 ⇝\rightsquigarrow 0, respectively. If level ii is at (E, 2), (B, 2), (C, 4), (D, 4), or (A, 0), then bib_i has no improving flip.

(c) Let i<ni < n. If level ii is at (A, 0) and ai+1∈{A,E}a_{i+1} \in\{\mathrm{A}, \mathrm{E}\}, or if level ii is at (E, 1) and ai+1=Ca_{i+1} = \mathrm{C}, then bib_i has no improving flip.

Proof of Claim 5. A flip of bib_i changes only the constraint KiK_i and, if i<ni < n, the constraint Ji+1J_{i+1}. For fixed values of aia_i and, if i<ni < n, of ai+1a_{i+1}, and a value y∈Dy \in D of bib_i let

Ψ(y):={Ki(ai,y)+Ji+1(y,ai+1),i<n,Ki(ai,y),i=n.\Psi(y) := \begin{cases} K_i(a_i,y) + J_{i+1}(y,a_{i+1}), & i < n,\\ K_i(a_i,y), & i = n. \end{cases}

Then the flip bib_i: x⇝yx \rightsquigarrow y is improving if and only if Ψ(y)>Ψ(x)\Psi(y) > \Psi(x), and its gain is Ψ(y)−Ψ(x)\Psi(y) - \Psi(x). The values of Ji+1J_{i+1} are given by Table 2 with ii replaced by i+1i+1; its entries involve Mi+1M_{i+1} and Hi=2Hi−1+14H_i = 2H_{i-1} + 14.

Let i=ni = n or ai+1=Ba_{i+1} = \mathrm{B}. Since Ji+1(y,B)=Mi+1J_{i+1}(y,\mathrm{B}) = M_{i+1} for all y∈Dy \in D, in both cases Ψ(y)\Psi(y) differs from Ki(ai,y)K_i(a_i,y) by a constant. The relevant comparisons are therefore:

aia_irelevant ordering of values
AΨ(2)=Ψ(0)+1>Ψ(y)(y∉{0,2})\Psi(2)=\Psi(0)+1>\Psi(y)\quad(y\notin\{0,2\})
BΨ(2)>Ψ(y)(y≠2)\Psi(2)>\Psi(y)\quad(y\ne2)
CΨ(3)=Ψ(2)+1>Ψ(y)(y∉{2,3})\Psi(3)=\Psi(2)+1>\Psi(y)\quad(y\notin\{2,3\})
DΨ(3)>Ψ(y)(y≠3)\Psi(3)>\Psi(y)\quad(y\ne3)
EΨ(1)=Ψ(3)+1>Ψ(y)(y∉{1,3})\Psi(1)=\Psi(3)+1>\Psi(y)\quad(y\notin\{1,3\})

Table 5 (PDF p. 9).

Hence, at (A, 0), (C, 2), and (E, 3) the only improving flips are bib_i: 0 ⇝\leadsto 2, bib_i: 2 ⇝\leadsto 3, and bib_i: 3 ⇝\leadsto 1, respectively, and each has gain 1. At (A, 2), (B, 2), (C, 3), (D, 3), and (E, 1) there is no improving flip. This proves Claim 5(a).

Let i<ni<n and ai+1=Da_{i+1}=D. By Table 2, the values Ji+1(y,D)−Mi+1J_{i+1}(y,D)-M_{i+1} for y=0,1,2,3,4y=0,1,2,3,4 are HiH_i, 0, 12Hi\frac{1}{2}H_i, 0, HiH_i. Adding the entries of the table for KiK_i, and noting that Hi−1=12Hi−7H_{i-1}=\frac{1}{2}H_i-7, we obtain the following values of Ψ(y)−Mi+1\Psi(y)-M_{i+1}:

Ψ(y)−Mi+1\Psi(y)-M_{i+1}y=0y=0y=1y=1y=2y=2y=3y=3y=4y=4
ai=Aa_i=A9Mi+Hi9M_i+H_i09Mi+12Hi+19M_i+\frac{1}{2}H_i+109Mi+Hi−19M_i+H_i-1
ai=Ba_i=BHiH_i010Mi+Hi−510M_i+H_i-50HiH_i
ai=Ca_i=CHiH_i09Mi+Hi−49M_i+H_i-49Mi+12Hi−39M_i+\frac{1}{2}H_i-39Mi+Hi−39M_i+H_i-3
ai=Da_i=DHiH_i012Hi\frac{1}{2}H_i10Mi+12Hi−210M_i+\frac{1}{2}H_i-210Mi+Hi−210M_i+H_i-2
ai=Ea_i=EHiH_i9Mi+12Hi9M_i+\frac{1}{2}H_i9Mi+12Hi+19M_i+\frac{1}{2}H_i+19Mi+12Hi−19M_i+\frac{1}{2}H_i-1HiH_i

Table 6 (PDF p. 9).

Since Hi<MiH_i<M_i, we then obtain the following comparisons:

aia_irelevant ordering of values
AΨ(0)=Ψ(4)+1>Ψ(y)(y∉{0,4})\Psi(0)=\Psi(4)+1>\Psi(y)\quad(y\notin\{0,4\})
BΨ(2)>Ψ(y)(y≠2)\Psi(2)>\Psi(y)\quad(y\ne2)
CΨ(4)=Ψ(2)+1>Ψ(y)(y∉{2,4})\Psi(4)=\Psi(2)+1>\Psi(y)\quad(y\notin\{2,4\})
DΨ(4)>Ψ(y)(y≠4)\Psi(4)>\Psi(y)\quad(y\ne4)
EΨ(2)=Ψ(1)+1>Ψ(y)(y∉{1,2})\Psi(2)=\Psi(1)+1>\Psi(y)\quad(y\notin\{1,2\})

Table 7 (PDF p. 9).

Claim 5(b) then immediately follows.

Let i<ni<n. If level ii is at (A, 0) and ai+1∈{A,E}a_{i+1}\in\{A,E\}, then by Table 2 we have Ji+1(0,ai+1)=2Mi+1+HiJ_{i+1}(0,a_{i+1})=2M_{i+1}+H_i and Ji+1(y,ai+1)≤HiJ_{i+1}(y,a_{i+1})\le H_i for y≠0y\ne0. Hence every flip of bib_i loses at least 2Mi+12M_{i+1} in Ji+1J_{i+1}, while it gains at most 1 in KiK_i. If level ii is at (E, 1) and ai+1=Ca_{i+1}=C, then Ji+1(1,C)=2Mi+1J_{i+1}(1,C)=2M_{i+1} and Ji+1(y,C)=0J_{i+1}(y,C)=0 for y≠1y\ne1. Hence every flip of bib_i loses 2Mi+12M_{i+1} in Ji+1J_{i+1}, while Ki(E,1)K_i(E,1) is the largest entry of row E. In both cases no flip of bib_i is improving. This proves Claim 5(c). ◀

Claim 6 (Flips of b0b_0). Each flip listed below is the only improving flip of b0b_0 and has gain 1.

(a) If a1=Ba_1=B, then at b0=0b_0=0 the variable b0b_0 has the improving flip b0b_0: 0 ⇝\leadsto 1, and at b0=1b_0=1 it has no improving flip.

(b) If a1=Da_1=D, then at b0=1b_0=1 the variable b0b_0 has the improving flip b0b_0: 1 ⇝\leadsto 0, and at b0=0b_0=0 it has no improving flip.

(c) If a1∈{A,E}a_1\in\{A,E\} and b0=0b_0=0, or if a1=Ca_1=C and b0=1b_0=1, then b0b_0 has no improving flip.

Proof of Claim 6. A flip of b0b_0 changes only K0(b0)+J1(b0,a1)K_0(b_0)+J_1(b_0,a_1). By Table 2 with i=1i=1, where H0=2H_0=2, the values of this sum for b0=0,1,2,3,4b_0=0,1,2,3,4 are M1+(100,101,0,0,0)M_1+(100,101,0,0,0) if a1=Ba_1=B, which proves Claim 6(a), and M1+(102,101,1,0,2)M_1+(102,101,1,0,2) if a1=Da_1=D, which proves Claim 6(b). If a1∈{A,E}a_1\in\{A,E\}, they are (102+2M1,101,1,0,2)(102+2M_1,101,1,0,2), and if a1=Ca_1=C, they are (100,101+2M1,0,0,0)(100,101+2M_1,0,0,0); in both cases the value at the current value of b0b_0 exceeds every other value by more than 2M12M_1. This proves Claim 6(c). ◀

The recursive flip sequences. We now describe a sequence of flips and show afterwards that it is the unique maximal improving sequence starting at the initial assignment.

For 0≤i≤n0 \leq i \leq n we define two assignments of ViV_i:

  • GiG_i assigns the value 0 to every bb-variable and the value A to every aa-variable in ViV_i; since A = 0, this is the all-zero assignment of ViV_i;

  • RiR_i coincides with GiG_i, except that bi=1b_i = 1 and, if i≥1i \geq1, ai=Ea_i = \mathrm{E}.

For i≥1i \geq1, both restrict to Gi−1G_{i-1} on Vi−1V_{i-1}; level ii is at (A, 0) in GiG_i and at (E, 1) in RiR_i.

We define two sequences of flips of variables in ViV_i recursively: α0=(b0:0⇝1)\alpha_0 = (b_0: 0 \leadsto1), β0=(b0:1⇝0)\beta_0 = (b_0: 1 \leadsto0), and for i≥1i \geq1

αi=(bi:0⇝2, ai:A⇝B, αi−1, ai:B⇝C, bi:2⇝3, ai:C⇝D,βi−1, ai:D⇝E, bi:3⇝1),βi=(bi:1⇝2, ai:E⇝B, αi−1, ai:B⇝C, bi:2⇝4, ai:C⇝D,βi−1, ai:D⇝A, bi:4⇝0).\begin{aligned} \alpha_i ={}& (b_i: 0 \leadsto2,\ a_i: \mathrm{A} \leadsto\mathrm{B},\ \alpha_{i-1},\ a_i: \mathrm{B} \leadsto\mathrm{C},\ b_i: 2 \leadsto3,\ a_i: \mathrm{C} \leadsto\mathrm{D},\\ &\beta_{i-1},\ a_i: \mathrm{D} \leadsto\mathrm{E},\ b_i: 3 \leadsto1),\\ \beta_i ={}& (b_i: 1 \leadsto2,\ a_i: \mathrm{E} \leadsto\mathrm{B},\ \alpha_{i-1},\ a_i: \mathrm{B} \leadsto\mathrm{C},\ b_i: 2 \leadsto4,\ a_i: \mathrm{C} \leadsto\mathrm{D},\\ &\beta_{i-1},\ a_i: \mathrm{D} \leadsto\mathrm{A},\ b_i: 4 \leadsto0). \end{aligned}

By induction on ii, αi\alpha_i transforms GiG_i into RiR_i and βi\beta_i transforms RiR_i into GiG_i.

Length of the sequences. The concatenation αiβi\alpha_i\beta_i is one full cycle of level ii. During it, aia_i runs once through the values

A, B, C, D, E, B, C, D\mathrm{A},\ \mathrm{B},\ \mathrm{C},\ \mathrm{D},\ \mathrm{E},\ \mathrm{B},\ \mathrm{C},\ \mathrm{D}

and returns to A, while bib_i runs through 0, 2, 3, 1, 2, 4 and returns to 0. The lower levels perform αi−1\alpha_{i-1} in each of the two phases with ai=Ba_i = \mathrm{B}, and βi−1\beta_{i-1} in each of the two phases with ai=Da_i = \mathrm{D}; that is, they complete two full cycles of level i−1i - 1 during one full cycle of level ii. This doubling is the source of the exponential length. Precisely, for i≥1i \geq1 each of αi\alpha_i and βi\beta_i consists of seven flips of level ii, one copy of αi−1\alpha_{i-1}, and one copy of βi−1\beta_{i-1}. Hence, by induction on ii, the sequences αi\alpha_i and βi\beta_i have the same length LiL_i, where L0=1L_0 = 1 and Li=2Li−1+7L_i = 2L_{i-1} + 7 for i≥1i \geq1. Consequently,

Li=2i+3−7.L_i = 2^{i+3} - 7.

We also note the following consequence of the definitions:

(*) along αi\alpha_i, the variable bib_i has the value 1 only at the final assignment RiR_i; along βi\beta_i, it has the value 0 only at the final assignment GiG_i.

Indeed, along αi\alpha_i the variable bib_i runs through 0, 2, 3, 1, and along βi\beta_i through 1, 2, 4, 0 (for i=0i = 0 through 0, 1 and 1, 0).

Uniqueness of the improving sequence. We now show that αn\alpha_n is the unique maximal improving sequence starting at the initial assignment.

Since the gains of variables in ViV_i depend only on the values of the variables in Vi∪{ai+1}V_i \cup\{a_{i+1}\}, where an+1a_{n+1} is omitted for i=ni = n, the following statements are well defined. We prove them simultaneously by induction on ii.

(Ai)(A_i), for 0≤i≤n0 \leq i \leq n: Assume that ai+1=Ba_{i+1} = \mathrm{B} if i<ni < n. Start at an assignment that restricts to GiG_i on ViV_i and perform αi\alpha_i. Then at every assignment before the last one, the next flip of αi\alpha_i is the unique improving flip of a variable in ViV_i, and it has gain 1; at the last assignment, which restricts to RiR_i on ViV_i, no variable of ViV_i has an improving flip.

(Bi)(B_i), for 0≤i<n0 \le i < n: Assume that ai+1=Da_{i+1} = \mathrm{D}. Start at an assignment that restricts to Ri\mathbf{R}_i on ViV_i and perform βi\beta_i. Then at every assignment before the last one, the next flip of βi\beta_i is the unique improving flip of a variable in ViV_i, and it has gain 1; at the last assignment, which restricts to Gi\mathbf{G}_i on ViV_i, no variable of ViV_i has an improving flip.

In other words, (Bi)(B_i) is the same as (Ai)(A_i), except that we assume ai+1=Da_{i+1} = \mathrm{D}, start at Ri\mathbf{R}_i, and perform βi\beta_i, which ends at Gi\mathbf{G}_i. We now derive a consequence that we use repeatedly.

(Pi)(P_i), for 0≤i<n0 \le i < n: If the variables of ViV_i are in Gi\mathbf{G}_i and ai+1∈{A,E}a_{i+1} \in\{\mathrm{A}, \mathrm{E}\}, or if they are in Ri\mathbf{R}_i and ai+1=Ca_{i+1} = \mathrm{C}, then no variable of ViV_i has an improving flip.

Indeed, assume (Ai)(A_i) and (Bi)(B_i). By (Ai)(A_i), applied at its first assignment, the only improving flip in ViV_i at Gi\mathbf{G}_i with ai+1=Ba_{i+1} = \mathrm{B} is the first flip of αi\alpha_i, which is a flip of bib_i. The gains of the variables in Vi∖{bi}V_i \setminus\{b_i\} do not depend on ai+1a_{i+1}, so none of them has an improving flip at Gi\mathbf{G}_i, regardless of the value of ai+1a_{i+1}. The same argument with (Bi)(B_i) applies at Ri\mathbf{R}_i, since the first flip of βi\beta_i is also a flip of bib_i. The remaining variable bib_i has no improving flip in both situations of (Pi)(P_i), by Claim 5(c) if i≥1i \ge1 and by Claim 6(c) if i=0i = 0.

Base case i=0i = 0. Here V0={b0}V_0 = \{b_0\}, and (A0)(A_0) and (B0)(B_0) are Claims 6(a) and 6(b).

Induction step. Let 1≤i≤n1 \le i \le n and assume (Ai−1)(A_{i-1}) and (Bi−1)(B_{i-1}), and hence (Pi−1)(P_{i-1}). We prove (Ai)(A_i); for this, we assume i=ni = n or ai+1=Ba_{i+1} = \mathrm{B}. The assignments occurring along αi\alpha_i are listed in the following table, together with the state of the lower levels Vi−1V_{i-1} and the improving flip.

(ai,bi)(a_i,b_i)lower levelsimproving flip
(A,0)(\mathrm{A},0)Gi−1\mathbf{G}_{i-1}bib_i: 0⇝20 \leadsto2
(A,2)(\mathrm{A},2)Gi−1\mathbf{G}_{i-1}aia_i: A⇝B\mathrm{A} \leadsto\mathrm{B}
(B,2)(\mathrm{B},2)αi−1\alpha_{i-1} is performedthe flips of αi−1\alpha_{i-1}, then aia_i: B⇝C\mathrm{B} \leadsto\mathrm{C}
(C,2)(\mathrm{C},2)Ri−1\mathbf{R}_{i-1}bib_i: 2⇝32 \leadsto3
(C,3)(\mathrm{C},3)Ri−1\mathbf{R}_{i-1}aia_i: C⇝D\mathrm{C} \leadsto\mathrm{D}
(D,3)(\mathrm{D},3)βi−1\beta_{i-1} is performedthe flips of βi−1\beta_{i-1}, then aia_i: D⇝E\mathrm{D} \leadsto\mathrm{E}
(E,3)(\mathrm{E},3)Gi−1\mathbf{G}_{i-1}bib_i: 3⇝13 \leadsto1
(E,1)(\mathrm{E},1)Gi−1\mathbf{G}_{i-1}none

Table 8.

We verify each row; in every case, all variables of ViV_i other than the one indicated have no improving flip, and the indicated flip has gain 1.

Rows with the lower levels in Gi−1\mathbf{G}_{i-1} or Ri−1\mathbf{R}_{i-1}. In the rows (A,0)(\mathrm{A},0), (A,2)(\mathrm{A},2), (E,3)(\mathrm{E},3), and (E,1)(\mathrm{E},1), the lower levels are in Gi−1\mathbf{G}_{i-1} and ai∈{A,E}a_i \in\{\mathrm{A}, \mathrm{E}\}; in the rows (C,2)(\mathrm{C},2) and (C,3)(\mathrm{C},3), they are in Ri−1\mathbf{R}_{i-1} and ai=Ca_i = \mathrm{C}. By (Pi−1)(P_{i-1}), no variable of Vi−1V_{i-1} has an improving flip. The flips of aia_i are given by Claims 4(a) and 4(e) with bi−1=0b_{i-1} = 0 in the rows (A,0)(\mathrm{A},0), (A,2)(\mathrm{A},2), (E,3)(\mathrm{E},3), (E,1)(\mathrm{E},1), and by Claim 4(f) with bi−1=1b_{i-1} = 1 in the rows (C,2)(\mathrm{C},2), (C,3)(\mathrm{C},3). The flips of bib_i are given by Claim 5(a). Together they yield exactly the flips in the table.

The forward traversal. In the row (B,2)(\mathrm{B},2) we have ai=Ba_i = \mathrm{B}, so (Ai−1)(A_{i-1}) applies to Vi−1V_{i-1}: at each assignment, the next flip of αi−1\alpha_{i-1} is the unique improving flip in Vi−1V_{i-1}, and at the final assignment Ri−1\mathbf{R}_{i-1} there is none. By Claim 5(a), bib_i has no improving flip. By Claim 4(b), aia_i has an improving flip exactly when bi−1=1b_{i-1} = 1, which by (*) happens only at Ri−1\mathbf{R}_{i-1}; the flip is then aia_i: B⇝C\mathrm{B} \leadsto\mathrm{C}.

The reverse traversal. In the row (D,3)(\mathrm{D},3) we have ai=Da_i = \mathrm{D}, so (Bi−1)(B_{i-1}) applies to Vi−1V_{i-1}. By Claim 5(a), bib_i has no improving flip. By Claim 4(c), aia_i has an improving flip exactly when bi−1=0b_{i-1} = 0, which by (*) happens only at the final assignment Gi−1\mathbf{G}_{i-1} of βi−1\beta_{i-1}; the flip is then aia_i: D⇝E\mathrm{D} \leadsto\mathrm{E}.

This proves (Ai)(A_i). For i<ni<n we prove (Bi)(B_i) in the same way; now ai+1=Da_{i+1}=\mathrm{D}, and the assignments along βi\beta_i are

(ai,bi)(a_i,b_i)lower levelsimproving flip
(E,1)(\mathrm{E},1)Gi−1\mathbf{G}_{i-1}bib_i: 1⇝21\rightsquigarrow2
(E,2)(\mathrm{E},2)Gi−1\mathbf{G}_{i-1}aia_i: E⇝B\mathrm{E}\rightsquigarrow\mathrm{B}
(B,2)(\mathrm{B},2)αi−1\alpha_{i-1} is performedthe flips of αi−1\alpha_{i-1}, then aia_i: B⇝C\mathrm{B}\rightsquigarrow\mathrm{C}
(C,2)(\mathrm{C},2)Ri−1\mathbf{R}_{i-1}bib_i: 2⇝42\rightsquigarrow4
(C,4)(\mathrm{C},4)Ri−1\mathbf{R}_{i-1}aia_i: C⇝D\mathrm{C}\rightsquigarrow\mathrm{D}
(D,4)(\mathrm{D},4)βi−1\beta_{i-1} is performedthe flips of βi−1\beta_{i-1}, then aia_i: D⇝A\mathrm{D}\rightsquigarrow\mathrm{A}
(A,4)(\mathrm{A},4)Gi−1\mathbf{G}_{i-1}bib_i: 4⇝04\rightsquigarrow0
(A,0)(\mathrm{A},0)Gi−1\mathbf{G}_{i-1}none

Table 9 (PDF p. 12).

The verification is identical, using Claim 5(b) instead of Claim 5(a), and Claim 4(d) instead of Claim 4(c) in the reverse traversal. This completes the induction.

We are now able to conclude the proof. For i=ni=n, we have Vn={b0,a1,b1,…,an,bn}V_n=\{b_0,a_1,b_1,\ldots,a_n,b_n\}, the set of all variables, and (An)(A_n) holds without any assumptions on further variables. The assignment Gn\mathbf{G}_n is the initial assignment. By (An)(A_n), at every assignment along αn\alpha_n except the last one, there is exactly one improving flip, namely the next flip of αn\alpha_n, and the final assignment Rn\mathbf{R}_n is a local optimum. Hence αn\alpha_n is the unique maximal strictly improving sequence starting at Gn\mathbf{G}_n, and its length is

Ln=2n+3−7.L_n=2^{n+3}-7.

The instance QnQ_n has 2n+12n+1 variables and 2n+12n+1 constraints, and all its constraint values are integers with O(n)O(n) bits. However, LnL_n is exponential in nn. This shows that (2,2,5)(2,2,5)-MCA with the flip neighborhood has the all-exp property.

(2,2,2)-MCA flip sequences have at most quadratic length

In this section, we give a direct proof of the at most quadratic length of all (2,2,2)(2,2,2)-MCA flip sequences by compressing the coefficients without changing which flips are improving. The key point is that the constraint graph has maximum degree two. Thus, for each variable, the gain of a flip depends on at most two neighboring variables, and preserving the signs and relative magnitudes of the corresponding coefficients is enough to preserve all improving flips. We replace the original coefficients by small integers with this property. The resulting integer-valued objective has range O(n2)O(n^2), which bounds the length of every strictly improving sequence. The same conclusion, with the better constant (n+12)\binom{n+1}{2} for tree-structured instances, also follows from the more general results of [5, 6].

Theorem 2. Every strictly improving flip sequence for a (2,2,2)(2,2,2)-MCA instance on nn variables has length O(n2)O(n^2). In particular, (2,2,2)(2,2,2)-MCA does not have the is-exp property, and hence not the all-exp property.

Proof. Let x=(x1,…,xn)\mathbf{x}=(x_1,\ldots,x_n) be the nn Boolean variables of a (2,2,2)(2,2,2)-MCA instance and let FF be the objective function. Every function of one or two Boolean variables can be written as a multilinear polynomial of degree at most two. Since every constraint involves at most two variables, collecting the terms of all constraints gives

F(x)=K+∑i=1nhixi+∑{i,j}∈EcijxixjF(\mathbf{x})=K+\sum_{i=1}^{n}h_i x_i+\sum_{\{i,j\}\in E}c_{ij}x_i x_j

where EE is the set of pairs with cij≠0c_{ij} \ne0.

Let G=({1,…,n},E)G = (\{1,\ldots,n\}, E). A term xixjx_i x_j can only arise from a constraint containing both xix_i and xjx_j. Since every variable occurs in at most two constraints, GG has maximum degree at most two. Hence, writing m:=∣E∣m := |E|, we have m≤nm \le n.

For i∈{1,…,n}i \in\{1,\ldots,n\}, let N(i)N(i) be its neighbors in GG and define qi(x):=∑j∈N(i)cijxjq_i(x) := \sum_{j \in N(i)} c_{ij}x_j. Flipping xix_i from its current value to 1−xi1-x_i changes the objective value by (1−2xi)(hi+qi(x))(1-2x_i)(h_i+q_i(x)). Thus, to preserve which flips are improving, it is enough to preserve the sign of hi+qi(x)h_i+q_i(x) for every ii and every x∈{0,1}nx \in\{0,1\}^n.

We first replace the coefficients cijc_{ij} by small integers. These coefficients are shared by the flips of both endpoints of an edge and therefore have to be replaced consistently. Once they have been fixed, the coefficient hih_i can be replaced independently for each ii.

Compressing the quadratic coefficients. For an edge e=ije=ij, write ce:=cijc_e := c_{ij}. Let 0<α1<⋯<αs0 < \alpha_1 < \cdots< \alpha_s be the distinct values among {∣ce∣:e∈E}\{|c_e| : e \in E\}. For each e∈Ee \in E, let rer_e be the index for which ∣ce∣=αre|c_e| = \alpha_{r_e}, and set de:=2sgn⁡(ce)red_e := 2\operatorname{sgn}(c_e)r_e. Thus, the replacement of cec_e by ded_e preserves the sign of every coefficient, and for any e,f∈Ee,f \in E it also preserves whether ∣ce∣<∣cf∣|c_e| < |c_f|, ∣ce∣=∣cf∣|c_e| = |c_f|, or ∣ce∣>∣cf∣|c_e| > |c_f|. Define qi′(x):=∑j∈N(i)dijxjq_i'(x) := \sum_{j \in N(i)} d_{ij}x_j (i.e., qi′q_i' is the same as qiq_i except that we replace every cijc_{ij} by dijd_{ij}).

▷ Claim 7. For every ii and all x,x′∈{0,1}nx,x' \in\{0,1\}^n,

sgn⁡(qi(x)−qi(x′))=sgn⁡(qi′(x)−qi′(x′)).\operatorname{sgn}\left(q_i(x)-q_i(x')\right)=\operatorname{sgn}\left(q_i'(x)-q_i'(x')\right).

Proof of Claim 7. We have

qi(x)−qi(x′)=∑j∈N(i)cij(xj−xj′)andqi′(x)−qi′(x′)=∑j∈N(i)dij(xj−xj′).q_i(x)-q_i(x')=\sum_{j\in N(i)}c_{ij}(x_j-x'_j) \qquad\text{and}\qquad q_i'(x)-q_i'(x')=\sum_{j\in N(i)}d_{ij}(x_j-x'_j).

where xj−xj′∈{−1,0,1}x_j-x'_j \in\{-1,0,1\} and ∣N(i)∣≤2|N(i)| \le2. Since sgn⁡(dij)=sgn⁡(cij)\operatorname{sgn}(d_{ij})=\operatorname{sgn}(c_{ij}), corresponding terms of the two sums have the same sign. The sign of a sum of at most two terms is determined by the signs of the terms and, if these are opposite, by the comparison of their absolute values. If two terms have opposite signs, then ii has two neighbors jj and kk with xj≠xj′x_j \ne x'_j and xk≠xk′x_k \ne x'_k, so these absolute values are ∣cij∣|c_{ij}| and ∣cik∣|c_{ik}| in the first sum and ∣dij∣|d_{ij}| and ∣dik∣|d_{ik}| in the second. Since the replacement preserves the comparison of absolute values, both sums have the same sign. ◀

Compressing the unary coefficients. Fix ii, and let Si:={qi(x):x∈{0,1}n}S_i := \{q_i(x) : x \in\{0,1\}^n\}. Since qiq_i depends only on the at most two variables xjx_j with j∈N(i)j \in N(i), we have ∣Si∣≤4|S_i| \le4. Define Si′S_i' analogously for qi′q_i'. By Claim 7, the correspondence qi(x)↦qi′(x)q_i(x) \mapsto q_i'(x) is well defined and preserves the order of all values; denote it by φi:Si→Si′\varphi_i : S_i \to S_i'.

We choose an integer hi′h_i' so that hi′+φi(s)h_i' + \varphi_i(s) has the same sign as hi+sh_i+s for every s∈Sis \in S_i. There are four cases:

  • if −hi∈Si-h_i \in S_i, set hi′:=−φi(−hi)h_i' := -\varphi_i(-h_i);

  • if −hi<min⁡Si-h_i < \min S_i, set hi′:=1−min⁡Si′h_i' := 1-\min S_i';

  • if −hi>max⁡Si-h_i > \max S_i, set hi′:=−1−max⁡Si′h_i' := -1-\max S_i';

  • otherwise, let a<ba < b be consecutive elements of SiS_i with a<−hi<ba < -h_i < b, and set hi′:=−φi(a)−1h_i' := -\varphi_i(a)-1.

Every element of Si′S_i' is even, since every ded_e is even. Thus, in the last case, φi(b)≥φi(a)+2\varphi_i(b) \ge\varphi_i(a)+2, so −hi′-h_i' lies strictly between φi(a)\varphi_i(a) and φi(b)\varphi_i(b). It follows in all four cases that

sgn⁡(hi+qi(x))=sgn⁡(hi′+qi′(x))(1)\operatorname{sgn}(h_i+q_i(x))=\operatorname{sgn}(h_i'+q_i'(x)) \tag*{(1)}

for every assignment xx. Moreover, ∣hi′∣≤max⁡s′∈Si′∣s′∣+1≤∑e∋i∣de∣+1|h_i'| \le\max_{s' \in S_i'} |s'| + 1 \le\sum_{e \ni i} |d_e| + 1.

Bounding the length of an improving sequence

Define

F~(x):=∑i=1nhi′xi+∑e={i,j}∈Edexixj\widetilde{F}(x) := \sum_{i=1}^{n} h_i'x_i + \sum_{e=\{i,j\}\in E} d_ex_ix_j

Equation (1) implies that for every assignment and every variable, flipping that variable increases FF if and only if it increases F~\widetilde{F}. Thus FF and F~\widetilde{F} have exactly the same strictly improving flips. Since F~\widetilde{F} is integer-valued, every improving flip increases its value by at least 1, and therefore every improving flip sequence has length at most max⁡F~−min⁡F~\max\widetilde{F} - \min\widetilde{F}.

We have max⁡F~−min⁡F~≤∑i∣hi′∣+∑e∣de∣\max\widetilde{F} - \min\widetilde{F} \le\sum_i |h_i'| + \sum_e |d_e|. The preceding bound on ∣hi′∣|h_i'|, summed over all ii, yields ∑i∣hi′∣≤2∑e∣de∣+n\sum_i |h_i'| \le2\sum_e |d_e| + n, since every edge has two endpoints. Consequently, max⁡F~−min⁡F~≤3∑e∣de∣+n\max\widetilde{F} - \min\widetilde{F} \le3\sum_e |d_e| + n.

Finally, we have ∑e∣de∣=2∑ere≤2((m−s)s+∑i=1si)≤2∑i=1mi≤m(m+1)\sum_e |d_e| = 2\sum_e r_e \le2((m-s)s+\sum_{i=1}^{s}i) \le2\sum_{i=1}^{m}i \le m(m+1). Using m≤nm \le n, we obtain

max⁡F~−min⁡F~≤3m(m+1)+n≤3n(n+1)+n=3n2+4n.\max\widetilde{F} - \min\widetilde{F} \le3m(m+1)+n \le3n(n+1)+n = 3n^2+4n.

This proves the theorem.

Statement on usage of generative AI

We first developed a construction showing that (2, 2, 6)-MCA has the all-exp property. We then gave this construction to ChatGPT-5.6 Sol and asked whether the same underlying idea could be adapted to use at most five values per variable. This interaction led to the (2, 2, 5)-MCA construction presented in this paper. The proof originally suggested by ChatGPT-5.6 Sol was considerably more involved; the proof presented here was developed independently by the authors and is several pages shorter.

References

  1. [1]David A. Cohen, Martin C. Cooper, Peter G. Jeavons, and Andrei A. Krokhin. The complexity of soft constraint satisfaction. Artificial Intelligence, 170(11):983–1016, 2006. doi:10.1016/j.artint.2006.04.002.DOI
  2. [2]Dominic Dumrauf and Burkhard Monien. On the PLS-complexity of maximum constraint assignment. Theoretical Computer Science, 469:24–52, 2013. doi:10.1016/j.tcs.2012.10.044.DOI
  3. [3]Robert Elsässer and Tobias Tscheuschner. Settling the complexity of local max-cut (almost) completely. In Automata, languages and programming. Part I, volume 6755 of Lecture Notes in Computer. Sci., pages 171–182. Springer, Heidelberg, 2011. doi:10.1007/978-3-642-22006-7_15.DOI
  4. [4]David S. Johnson, Christos H. Papadimitriou, and Mihalis Yannakakis. How easy is local search? Journal of Computer and System Sciences, 37(1):79–100, 1988. doi:10.1016/0022-0000(88)90046–3.
  5. [5]Artem Kaznatcheev. Algorithmic Biology of Evolution and Ecology. PhD thesis, Oriel College, University of Oxford, 2020.DOI
  6. [6]Artem Kaznatcheev, David A. Cohen, and Peter G. Jeavons. Representing fitness landscapes by valued constraints to understand the complexity of local search. Journal of Artificial Intelligence Research, 69:1077–1102, 2020. doi:10.1613/jair.1.12156.DOI
  7. [7]Artem Kaznatcheev and Willi Wemmleijn Volgering. All ascents exponential from valued constraint graphs of pathwidth three. arXiv:2601.16156 [cs.DM], 2026. URL: https://arxiv.org/abs/2601.16156, arXiv:2601.16156.
  8. [8]Mark W. Krentel. Structure in locally optimal solutions. In 30th Annual Symposium on Foundations of Computer Science (FOCS 1989), pages 216–221. IEEE Computer Society, 1989. doi:10.1109/SFCS.1989.63481.DOI
  9. [9]Lukas Michel and Alex Scott. Superpolynomial smoothed complexity of 3-FLIP in Local Max-Cut. arXiv:2310.19594v3 [cs.DS], 2023. arXiv:2310.19594.arxiv.org/abs/2310.19594
  10. [10]Burkhard Monien, Dominic Dumrauf, and Tobias Tscheuschner. Local search: simple, successful, but sometimes sluggish. In Automata, languages and programming. Part I, volume 6198 of Lecture Notes in Comput. Sci., pages 1–17. Springer, Berlin, 2010. doi: 10.1007/978-3-642-14165-2\_1.DOI
  11. [11]Burkhard Monien and Tobias Tscheuschner. On the power of nodes of degree four in the local max-cut problem. In Tiziana Calamoneri and Josep Diaz, editors, Algorithms and Complexity, volume 6078 of Lecture Notes in Comput. Sci., pages 264–275. Springer Berlin Heidelberg, 2010. doi: 10.1007/978-3-642-13073-1\_24.DOI
  12. [12]Svatopluk Poljak. Integer linear programs and local search for max-cut. SIAM Journal on Computing, 24(4):822–839, 1995. doi:10.1137/S009753973425350.DOI
  13. [13]Alejandro A. Schäffer and Mihalis Yannakakis. Simple local search problems that are hard to solve. SIAM Journal on Computing, 20(1):56–87, 1991.DOI
  14. [14]Thomas Schiex, Hélène Fargier, and Gérard Verfaillie. Valued constraint satisfaction problems: Hard and easy problems. In Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI’95), pages 631–637, 1995.
  15. [15]Johan Thapper and Stanislav Živný. The complexity of finite-valued CSPs. Journal of the ACM, 63(4):37:1–37:33, 2016. doi:10.1145/2974019.DOI
  16. [16]Stanislav Živný. The Complexity of Valued Constraint Satisfaction Problems. Cognitive Technologies. Springer, 2012. doi:10.1007/978-3-642-33974-5.DOI

Paper details

vlnc:W_egbfbw87
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

GPT-5.6 Sol (bare)

View statement
Looking for related papers…
Contents