WorksComputer Science
Exponential Local Search in Bounded-Occurrence MAX-CSP
Abstract
We study the number of improving steps that local search may require for -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 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 -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 -MCA for any value of , and our result extends to every . In contrast, for -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 for some fixed that is independent of the instance . 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 -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 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 , 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 -MCA with the flip neighborhood for any value of .
Theorem 1. -MCA with the flip neighborhood has the all-exp property for .
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 -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 -MCA can be found in polynomial time. If -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, -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 we construct an instance of -MCA with variables and constraints, together with an initial assignment, such that every maximal sequence of improving flips has length exactly ; the case then follows by adding values that are never used. Since -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 -MCA and -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 -MCA. On the positive side, Dumrauf and Monien [2] proved that -MCA can be solved in polynomial time for all values of . 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 -MCA has at most quadratic length. For -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 , which is a special case of -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 , where 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 -MCA with the flip neighborhood has the all-exp property for (Theorem 1 above). Our instances for have variables, 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 . 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 -MCA instance on variables has length . In particular, -MCA does not have the is-exp property, and hence not the all-exp property.
The quadratic length bound for -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 and . The is-exp property is known for [6], and hence also for ; whether the all-exp property holds is open in both cases.
Preliminaries
An instance of -MCA, the Maximum Constraint Assignment problem with parameters , , and , consists of variables with a common domain of values and a collection of constraints. Each constraint involves at most variables and assigns a weight to every combination of values of these variables. The parameter 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, -MCA is a weighted MAX-CSP over a domain of size , restricted to instances in which every constraint has arity at most and every variable occurs in at most 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, -MCA corresponds, after negating the weights, to finite-valued VCSPs [15] of arity at most in which every variable occurs in at most 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 , , and 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 becomes a constraint on its two endpoints that contributes if the endpoints receive different values and 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 , a flip may assign any of the other 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. -MCA with the flip neighborhood has the all-exp property for .
It suffices to prove this result for . Indeed, an instance of -MCA with nonnegative constraint values can be turned into an instance of -MCA for any by adding new values to the domain of every variable and assigning the value 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. -MCA with the flip neighborhood has the all-exp property.
Proof. We will prove this result by showing that for every there is a -MCA instance with 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 . 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 variables of are as follows: for we have two variables , , and we additionally have a variable . All variables have the domain .
Our instance contains one unary constraint on the variable , and, for every , two binary constraints and . The constraint contains the two variables and , while the constraint contains the two variables and . Hence, the constraint graph is a path . Thus, every constraint contains at most two variables, and every variable occurs in at most two constraints, so the resulting instance is a -MCA instance.
We group the variables and constraints into levels: level 0 consists of the variable , and for , level consists of the two variables and . The constraint is the constraint of level 0, and and are the constraints of level ; involves only the variables of level , whereas connects level to level . Figure 1 shows a visualization of the instance . For let be the set of variables of levels . When level is considered, we refer to the variables in as the lower levels.

Figure 1. Visualization of the instance showing its path-like structure. The variables are shown as circles, the variables as squares. An edge between two variables represents a constraint containing these two variables. The constraint only contains the variable .
| 0 | 1 | 2 | 3 | 4 | |
| 100 | 101 | 0 | 0 | 0 |
Table 1. Definition of the values for the constraint depending on the value of the variable .
For readability, we denote the five values of an -variable by
The constraint values depend on two sequences of integer parameters
Note that all are even, that for , and that for all .
The values of the constraints , , and are given in Tables 1, 2, and 3.
The initial assignment assigns 0 to all -variables and A to all -variables; since A = 0, it is the all-zero assignment.
We write for the flip that changes the value of the variable from to . 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 is determined by and , through and ;
the gain of a flip of , , is determined by and , through and ;
the gain of a flip of is determined by , through alone;
the gain of a flip of is determined by , through and .
By the state of level we mean the pair of values currently assigned to ; we write “level is at ” or simply “at ”. Let
be the set of pairs of values at which the table of has a nonzero entry; this set is the same for every . We call the pairs in admissible. Every entry with is at least , whereas for . A flip of or of that changes the state of level from an admissible to a non-admissible pair therefore loses at least in .
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 ). Let . For each of the following combinations of the state of level and the value of , the improving flips of are as stated, and each flip listed is the only improving flip of and has gain 1.
(a) If level is at or at , then for every value of the variable has no improving flip.
(b) If level is at , then has an improving flip if and only if , namely .
(c) If level is at , then has an improving flip if and only if , namely .
(d) If level is at , then has an improving flip if and only if , namely .
(e) Let . If level is at or at , then has the improving flip or , respectively. If level is at or at , then has no improving flip.
(f) Let . If level is at or at , then has the improving flip . If level is at , then has no improving flip.
Proof of Claim 4. A flip of changes only the constraints and . For fixed values of and and a value of let
Then the flip is improving if and only if , and its gain is . Since is even, all values of are integers.
From any of the admissible states, a flip to a non-admissible pair loses at least in and gains at most in ; since , it is not improving.
It therefore suffices to compare the admissible alternatives. Using Table 2 and Table 3, we obtain:
| 0 | |||||
| 0 | 0 | ||||
| 0 | |||||
| 0 | 0 | 0 | |||
| 0 |
Table 2. Definition of the values for the constraints for depending on the values of the variables and .
| 0 | 0 | ||||
| 0 | 0 | 0 | 0 | ||
| 0 | 0 | ||||
| 0 | 0 | 0 | |||
| 0 | 0 |
Table 3. Definition of the values for the constraints for depending on the values of the variables and .
| improving target for | gain | ||
| (A, 0) | any | none | − |
| (E, 1) | any | none | − |
| (B, 2) | 1 | C | 1 |
| (B, 2) | none | − | |
| (D, 3) | 0 | E | 1 |
| (D, 3) | none | − | |
| (D, 4) | 0 | A | 1 |
| (D, 4) | none | − | |
| (A, 2) | 0 | B | 1 |
| (E, 2) | 0 | B | 1 |
| (E, 3) | 0 | none | − |
| (A, 4) | 0 | none | − |
| (C, 3) | 1 | D | 1 |
| (C, 4) | 1 | D | 1 |
| (C, 2) | 1 | none | − |
Table 4.
Here “none” means that every admissible alternative has value at most . 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 ). Let . For each of the following combinations of the state of level and, if , the value of , the improving flips of are as stated, and each flip listed is the only improving flip of and has gain 1.
(a) Let or . If level is at (A, 0), (C, 2), or (E, 3), then has the improving flip : 0 2, : 2 3, or : 3 1, respectively. If level is at (A, 2), (B, 2), (C, 3), (D, 3), or (E, 1), then has no improving flip.
(b) Let and . If level is at (E, 1), (C, 2), or (A, 4), then has the improving flip : 1 2, : 2 4, or : 4 0, respectively. If level is at (E, 2), (B, 2), (C, 4), (D, 4), or (A, 0), then has no improving flip.
(c) Let . If level is at (A, 0) and , or if level is at (E, 1) and , then has no improving flip.
Proof of Claim 5. A flip of changes only the constraint and, if , the constraint . For fixed values of and, if , of , and a value of let
Then the flip : is improving if and only if , and its gain is . The values of are given by Table 2 with replaced by ; its entries involve and .
Let or . Since for all , in both cases differs from by a constant. The relevant comparisons are therefore:
| relevant ordering of values | |
| A | |
| B | |
| C | |
| D | |
| E |
Table 5 (PDF p. 9).
Hence, at (A, 0), (C, 2), and (E, 3) the only improving flips are : 0 2, : 2 3, and : 3 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 and . By Table 2, the values for are , 0, , 0, . Adding the entries of the table for , and noting that , we obtain the following values of :
| 0 | 0 | ||||
| 0 | 0 | ||||
| 0 | |||||
| 0 | |||||
Table 6 (PDF p. 9).
Since , we then obtain the following comparisons:
| relevant ordering of values | |
| A | |
| B | |
| C | |
| D | |
| E |
Table 7 (PDF p. 9).
Claim 5(b) then immediately follows.
Let . If level is at (A, 0) and , then by Table 2 we have and for . Hence every flip of loses at least in , while it gains at most 1 in . If level is at (E, 1) and , then and for . Hence every flip of loses in , while is the largest entry of row E. In both cases no flip of is improving. This proves Claim 5(c). ◀
Claim 6 (Flips of ). Each flip listed below is the only improving flip of and has gain 1.
(a) If , then at the variable has the improving flip : 0 1, and at it has no improving flip.
(b) If , then at the variable has the improving flip : 1 0, and at it has no improving flip.
(c) If and , or if and , then has no improving flip.
Proof of Claim 6. A flip of changes only . By Table 2 with , where , the values of this sum for are if , which proves Claim 6(a), and if , which proves Claim 6(b). If , they are , and if , they are ; in both cases the value at the current value of exceeds every other value by more than . 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 we define two assignments of :
assigns the value 0 to every -variable and the value A to every -variable in ; since A = 0, this is the all-zero assignment of ;
coincides with , except that and, if , .
For , both restrict to on ; level is at (A, 0) in and at (E, 1) in .
We define two sequences of flips of variables in recursively: , , and for
By induction on , transforms into and transforms into .
Length of the sequences. The concatenation is one full cycle of level . During it, runs once through the values
and returns to A, while runs through 0, 2, 3, 1, 2, 4 and returns to 0. The lower levels perform in each of the two phases with , and in each of the two phases with ; that is, they complete two full cycles of level during one full cycle of level . This doubling is the source of the exponential length. Precisely, for each of and consists of seven flips of level , one copy of , and one copy of . Hence, by induction on , the sequences and have the same length , where and for . Consequently,
We also note the following consequence of the definitions:
(*) along , the variable has the value 1 only at the final assignment ; along , it has the value 0 only at the final assignment .
Indeed, along the variable runs through 0, 2, 3, 1, and along through 1, 2, 4, 0 (for through 0, 1 and 1, 0).
Uniqueness of the improving sequence. We now show that is the unique maximal improving sequence starting at the initial assignment.
Since the gains of variables in depend only on the values of the variables in , where is omitted for , the following statements are well defined. We prove them simultaneously by induction on .
, for : Assume that if . Start at an assignment that restricts to on and perform . Then at every assignment before the last one, the next flip of is the unique improving flip of a variable in , and it has gain 1; at the last assignment, which restricts to on , no variable of has an improving flip.
, for : Assume that . Start at an assignment that restricts to on and perform . Then at every assignment before the last one, the next flip of is the unique improving flip of a variable in , and it has gain 1; at the last assignment, which restricts to on , no variable of has an improving flip.
In other words, is the same as , except that we assume , start at , and perform , which ends at . We now derive a consequence that we use repeatedly.
, for : If the variables of are in and , or if they are in and , then no variable of has an improving flip.
Indeed, assume and . By , applied at its first assignment, the only improving flip in at with is the first flip of , which is a flip of . The gains of the variables in do not depend on , so none of them has an improving flip at , regardless of the value of . The same argument with applies at , since the first flip of is also a flip of . The remaining variable has no improving flip in both situations of , by Claim 5(c) if and by Claim 6(c) if .
Base case . Here , and and are Claims 6(a) and 6(b).
Induction step. Let and assume and , and hence . We prove ; for this, we assume or . The assignments occurring along are listed in the following table, together with the state of the lower levels and the improving flip.
| lower levels | improving flip | |
| : | ||
| : | ||
| is performed | the flips of , then : | |
| : | ||
| : | ||
| is performed | the flips of , then : | |
| : | ||
| none |
Table 8.
We verify each row; in every case, all variables of other than the one indicated have no improving flip, and the indicated flip has gain 1.
Rows with the lower levels in or . In the rows , , , and , the lower levels are in and ; in the rows and , they are in and . By , no variable of has an improving flip. The flips of are given by Claims 4(a) and 4(e) with in the rows , , , , and by Claim 4(f) with in the rows , . The flips of are given by Claim 5(a). Together they yield exactly the flips in the table.
The forward traversal. In the row we have , so applies to : at each assignment, the next flip of is the unique improving flip in , and at the final assignment there is none. By Claim 5(a), has no improving flip. By Claim 4(b), has an improving flip exactly when , which by (*) happens only at ; the flip is then : .
The reverse traversal. In the row we have , so applies to . By Claim 5(a), has no improving flip. By Claim 4(c), has an improving flip exactly when , which by (*) happens only at the final assignment of ; the flip is then : .
This proves . For we prove in the same way; now , and the assignments along are
| lower levels | improving flip | |
| : | ||
| : | ||
| is performed | the flips of , then : | |
| : | ||
| : | ||
| is performed | the flips of , then : | |
| : | ||
| 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 , we have , the set of all variables, and holds without any assumptions on further variables. The assignment is the initial assignment. By , at every assignment along except the last one, there is exactly one improving flip, namely the next flip of , and the final assignment is a local optimum. Hence is the unique maximal strictly improving sequence starting at , and its length is
The instance has variables and constraints, and all its constraint values are integers with bits. However, is exponential in . This shows that -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 -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 , which bounds the length of every strictly improving sequence. The same conclusion, with the better constant for tree-structured instances, also follows from the more general results of [5, 6].
Theorem 2. Every strictly improving flip sequence for a -MCA instance on variables has length . In particular, -MCA does not have the is-exp property, and hence not the all-exp property.
Proof. Let be the Boolean variables of a -MCA instance and let 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
where is the set of pairs with .
Let . A term can only arise from a constraint containing both and . Since every variable occurs in at most two constraints, has maximum degree at most two. Hence, writing , we have .
For , let be its neighbors in and define . Flipping from its current value to changes the objective value by . Thus, to preserve which flips are improving, it is enough to preserve the sign of for every and every .
We first replace the coefficients 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 can be replaced independently for each .
Compressing the quadratic coefficients. For an edge , write . Let be the distinct values among . For each , let be the index for which , and set . Thus, the replacement of by preserves the sign of every coefficient, and for any it also preserves whether , , or . Define (i.e., is the same as except that we replace every by ).
▷ Claim 7. For every and all ,
Proof of Claim 7. We have
where and . Since , 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 has two neighbors and with and , so these absolute values are and in the first sum and and in the second. Since the replacement preserves the comparison of absolute values, both sums have the same sign. ◀
Compressing the unary coefficients. Fix , and let . Since depends only on the at most two variables with , we have . Define analogously for . By Claim 7, the correspondence is well defined and preserves the order of all values; denote it by .
We choose an integer so that has the same sign as for every . There are four cases:
if , set ;
if , set ;
if , set ;
otherwise, let be consecutive elements of with , and set .
Every element of is even, since every is even. Thus, in the last case, , so lies strictly between and . It follows in all four cases that
for every assignment . Moreover, .
Bounding the length of an improving sequence
Define
Equation (1) implies that for every assignment and every variable, flipping that variable increases if and only if it increases . Thus and have exactly the same strictly improving flips. Since is integer-valued, every improving flip increases its value by at least 1, and therefore every improving flip sequence has length at most .
We have . The preceding bound on , summed over all , yields , since every edge has two endpoints. Consequently, .
Finally, we have . Using , we obtain
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]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]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]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]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]Artem Kaznatcheev. Algorithmic Biology of Evolution and Ecology. PhD thesis, Oriel College, University of Oxford, 2020.DOI
- [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]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]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]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]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]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]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]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]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]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]Stanislav Živný. The Complexity of Valued Constraint Satisfaction Problems. Cognitive Technologies. Springer, 2012. doi:10.1007/978-3-642-33974-5.DOI