Manuscript Offprint
arXiv:2610.27329On the Support Geometry and Complexity of LABS
Abstract
LABS are a fundamental combinatorial optimization problem arising in sequence design and statistical physics, yet the formal complexity of the standard fixed-geometry problem remains unresolved. We study how zero-energy complexity changes when support geometry is included as part of the input and then progressively restricted. For unary standard LABS, we establish membership in NP and a sparsity/Mahaney consequence: Karp NP-hardness would imply P = NP. For Pair-Set-LABS and Masked-LABS, zero-energy feasibility is polynomial-time decidable when every pair group or masked row has at most three terms and is NP-complete when four terms are allowed. NP-completeness persists when active supports are restricted to contiguous intervals.
Keywords Low autocorrelation binary sequences · Computational complexity · NP-completeness · Combinatorial optimization
1 Introduction
The Low Autocorrelation Binary Sequences (LABS) problem seeks binary spin sequences that minimize the sum of squared aperiodic autocorrelations. The objective, which appears as the energy of the Bernasconi model [3], has long been studied in sequence design, combinatorial optimization, and statistical physics. Exact optimization is computationally demanding: Packebusch and Mertens give an exact algorithm with running time and compute all optimal sequences through [17], while larger lengths have been approached mainly by heuristic and restricted-space methods such as warning propagation and parallel GPU-based search [16,5,24,18].
These computational results extend the range of LABS instances that can be studied, but they do not establish the complexity of a different question: whether
Tecnológico Nacional de México Campus Querétaro, Av Tecnológico S/N, Centro Histórico, 76000 Santiago de Querétaro, Qro. México
E-mail: williamdelacruz@gmail.com, william.dd@queretaro.tecnm.mx
William Cruz-Santos
there exists a binary sequence whose energy does not exceed a given bound. This is the decision problem considered here for standard LABS. An important feature of this problem is that the sequence length completely determines which products contribute to the autocorrelations. These contributions cannot be independently selected or removed. Furthermore, zero energy is impossible for sequences of length at least two, since one of the autocorrelations always consists of a single nonzero product. The standard decision problem therefore requires a general energy bound. We also investigate variants in which the input can specify how pair products are grouped, which terms within a correlation are retained, or which complete correlations are included. In these variants, zero energy may become attainable, and the selected terms determine the constraints that a sequence must satisfy. These observations motivate the central question of the paper: how does the complexity of zero-energy feasibility change as input-dependent support patterns are subjected to progressively stronger restrictions on their cardinality and geometry?
Another line of research concerns the selection and evaluation of autocorrelation terms. Song, Babu, and Palomar study weighted integrated sidelobe-level objectives, assigning weights to complete aperiodic autocorrelations at individual lags [21]. Choosing binary weights provides a direct comparison with complete-lag selection in terms of which lag correlations are retained, although their work addresses sequence optimization rather than the corresponding zero-energy decision problem. Klapper and Goresky analyze autocorrelation sums of periodic binary sequences over finite windows at specified shifts [12]. These windowed correlations are structurally related to the contiguous supports of single-window Masked-LABS, but differ in their periodic setting and mathematical objectives.
Other relevant research addresses the representation and computational treatment of LABS. Walter studies binary linearization complexity and evaluates corresponding integer linear programming formulations for LABS [23]. Computational approaches include QAOA [20], quantum imaginary-time evolution applied to a PUBO formulation [2], and comparisons between direct PUBO
Table 1 Complexity landscape across the support geometries considered in this paper.
| Formulation | Geometry | Result | Limit |
|---|---|---|---|
| Standard LABS | Support fixed by N | In NP | Karp NP-hardness would imply P = NP. |
| Pair-Set-LABS | Arbitrary pair groups | At most 3 terms: P | Allowing 4 terms: NP-complete. |
| Masked-LABS | One lag diagonal per row | At most 3 terms: P | Allowing 4 terms: NP-complete. |
| Single-window | One contiguous interval per active lag | Length at most 3: P | Allowing length 4: NP-complete. |
| Complete-lag | Full correlation at each active lag | Odd N: exact parity classification | Even N: odd active lags are infeasible; otherwise equivalent to SLCP. |
and QUBO formulations [11]. General Ising/QUBO modeling and quadratization methods provide the relevant representation background [14,7,1,6]. These studies address representation and computational methods rather than Karp decision complexity.
1.2 Contributions and organization
In this paper, we first formalize unary standard LABS and derive the sparsity/Mahaney barrier for Karp NP-hardness. We then study input-dependent support under progressively stronger geometric restrictions.
For the Pair-Set-LABS and Masked-LABS variants, zero-energy feasibility is polynomial-time decidable when every pair group or masked row has at most three terms and NP-complete when four terms are allowed. For the Masked-LABS variant, the NP-hardness construction respects the lag-diagonal restriction. Requiring each active support to be one contiguous interval preserves the corresponding classification: windows of length at most three are polynomial-time decidable, while allowing length four gives NP-completeness.
When every active lag retains its full LABS correlation, odd sequence lengths admit an exact parity classification. For even sequence length, any active odd lag makes zero energy impossible, while the remaining case with only even active lags is exactly equivalent to the selected-lag complementary-pair feasibility problem (SLCP), defined in Section 6. Its general complexity remains open. Table 1 summarizes the main complexity results across the support geometries considered in this paper.
The organization of this paper is as follows. Section 2 fixes notation, the objective, and the encoding and complexity conventions. Section 3 treats standard LABS. Section 4 studies pair groups and masked lag-diagonal supports, and Section 5 imposes the additional requirement of contiguous support. Section 6 analyzes the case in which every active lag retains its full correlation. Section 7 summarizes the conclusions.
William Cruz-Santos
2 Preliminaries
Let be the set of Boolean values, and let be the set of spins. We write
for the field with two elements; its addition and multiplication are taken modulo 2. Unless stated otherwise, sequence and vertex indices are positive integers.
For integers , define
Thus when . Whenever a maximum of support cardinalities is taken over an empty index set, we use the convention .
This interval notation is reserved for integer indices and vertex labels. The positions of a sequence of length N are indexed by
An edge on a finite vertex set is written as an unordered pair , where and . Whenever a coefficient is indexed by the endpoints of an edge , we order the indices so that .
For a sequence
define the aperiodic autocorrelation at lag by
and define the LABS energy by
The optimization problem is to compute a sequence minimizing . For a fixed lag k, define the support
Eq. (5) can then be written as
Figure 1 gives a pair-index-matrix view of standard LABS and of the support geometries considered later in the paper. We call the lag-k diagonal, or simply the kth diagonal; for fixed N, each such support is completely determined.
(a) Standard LABS

(b) Pair-Set-LABS
(c) Masked-LABS
(d) Single-window

(e) Complete-lag selection
active pair term
highlighted example
lag diagonal
cells on a lag diagonal
satisfy
Fig. 1 Pair-index-matrix view of the support geometries considered in this paper. Each cell with represents the pair term , and cells on a common superdiagonal satisfy and therefore correspond to a fixed lag . (a) Standard LABS contains all such pair terms; one complete lag diagonal is highlighted. (b) A Pair-Set-LABS group may contain arbitrary explicit pairs. (c) A Masked-LABS row may select an arbitrary subset of one lag diagonal. (d) Single-window support further requires the selected subset on each active lag to be one contiguous interval. (e) Complete-lag selection activates or deactivates whole lag diagonals. The matrices are illustrative.
2.1 Encoding and complexity
Let be a fixed finite alphabet containing the symbols 0 and 1, and let denote the set of all finite strings over .
A decision problem consists of a set of admissible instances and a YES/NO predicate on . For , let denote a fixed canonical string representation of that can be parsed in polynomial time. A string is malformed if it is not the canonical representation of any instance in ; malformed strings are rejected.
William Cruz-Santos
A positive integer n is represented in unary by the string . A nonnegative integer b is represented in binary by its shortest base-2 representation, with 0 represented by the single symbol 0.
The language associated with X is
A witness, or certificate, for a YES-instance is auxiliary data that certifies membership in the associated language. A language belongs to if membership in can be decided in polynomial time. It belongs to if there is a polynomial-time verifier such that every YES-instance has a certificate of length polynomial in that the verifier accepts, while no certificate is accepted for a NO-instance. Here denotes the length of the string .
A polynomial-time many-one, or Karp, reduction from a language L to a language is a polynomial-time computable map f such that
A language is NP-hard if for every . It is NP-complete if, in addition, . All NP-hardness and NP-completeness statements in this paper use Karp reductions.
An optimization problem consists of a set of admissible instances, a set of feasible solutions for each , and an objective function to be minimized.
The associated threshold decision problem asks, for an instance I and threshold B, whether there exists such that . The case B = 0 is called zero-energy feasibility.
3 Standard LABS
An instance of the standard LABS decision problem consists of a sequence length N, encoded in unary, and a nonnegative energy threshold B, encoded in binary. We denote its canonical representation by . The corresponding decision language is
The exact-search literature does not determine the Karp complexity of this language. Although Kotsireas et al. describe LABS as NP-hard in their introduction [16], they do not state an explicit polynomial-time many-one reduction for the standard one-parameter family.
Proposition 3.1 The language belongs to NP.
Proof A certificate is the spin vector . Given , compute every autocorrelation by evaluating products and additions. There are pair products in total.
Each has magnitude at most , so the arithmetic uses -bit integers. Squaring and summing the correlations therefore takes polynomial time in and in the bit length of . The verifier then compares the computed energy with the threshold , accepting exactly when and rejecting otherwise.
3.1 Normalization and sparsity
To examine the implications of unary encoding for NP-hardness, we first establish a sparse normalized form of the LABS language. This allows us to apply Mahaney's theorem [15]. A language is called sparse if there exists a polynomial such that, for every ,
Thus sparsity is a statement about the density of YES-strings as a function of encoding length; it does not by itself provide an algorithm for deciding membership. The following lemmas establish the normalization and sparsity properties of the unary LABS language.
Lemma 3.2 (Energy bound) For every and every ,
Proof For lag , the autocorrelation is a sum of signs, hence . Therefore
Since for every , any well-formed instance with is a YES-instance. For the normalization below, thresholds with are therefore redundant, whereas remains admissible.
We define
The superscript “cap” refers to the restriction . Malformed encodings and well-formed instances with are not members of .
Lemma 3.3 (Threshold normalization) There is a polynomial-time many-one reduction
William Cruz-Santos
Proof On a well-formed input , compute using Eq. (13). If , output unchanged. If , output the fixed YES-instance . Since every length-two sequence has energy one, . By Lemma 3.2, every well-formed input with belongs to , so the map preserves membership. Malformed inputs may be sent to the fixed NO-instance . The normalization is polynomial-time because is explicitly unary and has bits.
Lemma 3.4 (Sparsity) The normalized language is sparse. More precisely, the number of strings in of length at most is under any fixed canonical self-delimiting encoding.
Proof Any normalized string of total length at most has because it contains . For a fixed , the allowed thresholds satisfy , so there are at most corresponding encoded instances. Therefore
3.2 Karp-hardness barrier
Mahaney’s theorem states that if a sparse language is NP-hard under polynomial-time many-one reductions, then [15]. Equivalently, assuming , no sparse language in NP can be NP-hard under Karp reductions. Modern expositions often state this form directly [9].
Theorem 3.5 (Unary LABS hardness barrier) If is NP-hard under polynomial-time many-one reductions, then .
Equivalently, if , then is not NP-hard under polynomial-time many-one reductions.
Proof Assume is NP-hard under polynomial-time many-one reductions. By Lemma 3.3, every language in NP reduces to by composing its reduction to with the reduction of Lemma 3.3. Hence is NP-hard.
Moreover, : the verifier of Proposition 3.1 applies unchanged, with the additional condition checked in polynomial time. Therefore is NP-complete.
By Lemma 3.4, is sparse, so Mahaney's theorem yields under the assumed NP-hardness.
Theorem 3.5 applies to standard LABS with unary encoding and polynomial-time many-one reductions; it establishes neither a polynomial-time algorithm nor a corresponding hardness barrier for other encodings or reduction notions. Furthermore, NP-completeness of the input-dependent support variants does not imply NP-hardness of standard LABS without an explicit reduction.
4 Support cardinality
4.1 Pair-Set-LABS
Pair-Set-LABS allows arbitrary explicit groups of pair interactions. This unrestricted pair-support geometry is illustrated in Fig. 1(b). Let be the vertex set. A structural instance is an ordered family
Its canonical threshold-instance encoding is
where is represented in unary, every is stored as a canonical explicit edge list, and is represented in binary. Writing , its bit length is .
For and a group index , define
The total energy is
The optimization problem minimizes over . Under the encoding in Eq. (19), the corresponding threshold decision language is
Define the maximum group cardinality
Because the energy is a sum of squares, if and only if for every .
Proposition 4.1 The language belongs to NP.
Proof A certificate is . Its length is , hence polynomial because the input contains . For each edge , compute the product and add it to the corresponding group correlation. This requires products and additions. Each , so the integer arithmetic has polynomial bit length. Squaring the correlations, summing them, and comparing the result with the binary threshold are therefore polynomial-time operations in the bit length of the input.
William Cruz-Santos
4.2 Pair-Set cardinality
To analyze zero-energy feasibility, we first examine how group cardinality affects the correlation constraints. Every group correlation must vanish; odd-cardinality groups cannot satisfy this condition by parity, while two-pair groups yield affine constraints over .
Lemma 4.2 (Odd-cardinality) If is odd, then for every assignment .
Proof Every product belongs to S. A sum of an odd number of odd integers is odd, so is an odd integer and cannot equal zero.
Consequently, under the bound , groups of cardinality one and three are excluded from every zero-energy YES-instance. Only cardinality-two groups require further analysis.
Lemma 4.3 (Two-pair parity) Let . Under the Boolean encoding with , the equation is equivalent to , with any repeated vertex cancelling modulo two.
Proof The zero equation is equivalent to . Substituting gives , equivalently . If a vertex occurs twice among the two pairs, its exponent occurs twice and therefore cancels modulo two in .
Proposition 4.4 (Tractability at cardinality three) The zero-energy decision version of Pair-Set-LABS is polynomial-time decidable on instances satisfying .
Proof If any nonempty group has cardinality one or three, Lemma 4.2 gives an immediate NO answer. After removing empty groups, every remaining group must therefore have cardinality two. Lemma 4.3 converts every remaining zero equation into one affine linear equation over . The instance is feasible exactly when the resulting affine system is consistent; Gaussian elimination on its augmented matrix over decides this in polynomial time.
At cardinality four, a group can encode an exact-one constraint on three logical variables; a reduction from Distinct Positive 1-in-3-SAT from Appendix A then yields NP-completeness.
Theorem 4.5 (Cardinality-four NP-completeness) Under the encoding in Eq. (19), zero-energy feasibility for Pair-Set-LABS restricted to is NP-complete.
Proof Membership in NP follows from Proposition 4.1, so it remains to prove NP-hardness. We reduce from Distinct Positive 1-in-3-SAT, which is NP-complete by Lemma A.3.
Clause construction. Let the source variables be , with clauses in which are pairwise distinct. Construct one Pair-Set vertex for every source variable and two additional vertices , distinct from all source-variable vertices. For each clause , create the four-edge set
whose edges are distinct because are pairwise distinct and are new vertices.
The correlation term for can be written as
where .
Interpreting as Boolean true and as false, suppose exactly of equal +1. Then , so the bracket in Eq. (25) equals . Therefore
Thus the correlation associated with vanishes exactly when the corresponding source clause has one true variable under the induced Boolean interpretation.
Completeness. Given a satisfying source assignment, set , set for true source variables and for false source variables, and choose either sign for . Every source clause has exactly one true variable, so Eq. (26) gives zero correlation for every target group and hence zero total energy.
Soundness. Given a zero-energy target assignment, every group correlation vanishes. Define the source truth assignment by declaring true exactly when . Eq. (26) then implies that every source clause contains exactly one true variable.
Polynomial size. If the source has variables and clauses, the target has vertices and groups, each containing four edges. Since is encoded in unary, its representation has length , and every edge endpoint requires bits. Thus the target encoding has polynomial length and the construction is computable in polynomial time. This proves NP-hardness, and membership in NP gives NP-completeness.
4.3 Masked-LABS
Masked-LABS allows the input to select, for each lag , a subset of the pair products , that contribute to the autocorrelation . The selected terms retain the defining lag- relation between their endpoints, while the complete lag diagonal need not be present. This geometry is illustrated in Fig. 1(c).
William Cruz-Santos
For a length-N instance, define
A mask is the explicit sparse support set , represented as a canonical lexicographically sorted list with no duplicates. For each lag , define
The canonical threshold-instance encoding is
where N is represented in unary, M by its sparse canonical support list, and B in binary. Its bit length is .
The masked autocorrelation at lag k is
and the Masked-LABS energy is
Thus the superscript M on means “correlation under mask M,” and the subscript M on records that the objective is determined by the entire mask.
The Masked-LABS optimization problem minimizes over .
Definition 4.6 (Masked-LABS decision) Under the encoding in Eq. (29), define the language
Since is a sum of squares, if and only if for every with .
Define the masked-row cardinality at lag k as , the number of retained pair terms in that row, and define
Each masked row is itself a set of pair products. Therefore the parity arguments from Pair-Set-LABS apply row by row, with the additional restriction that all pairs in row k have the same difference k.
Proposition 4.7 (Tractability at cardinality three) The zero-energy decision version of Masked-LABS is in P on instances satisfying .
Proof If some nonempty masked row has cardinality one or three, its correlation is a sum of an odd number of terms and cannot be zero. Otherwise every nonempty masked row has cardinality two. Writing , the zero condition for a cardinality-two masked row, , is equivalent to the affine constraint .
Collecting these constraints yields an affine linear system over , with one variable for each spin position and one constraint for each nonempty masked row. Applying Gaussian elimination over to the augmented matrix determines whether the system is consistent: a row gives a contradiction, while otherwise the system has a solution and hence a zero-energy spin assignment. Since the system has polynomially many variables and constraints in the input size, the procedure runs in polynomial time.
4.4 Cardinality-four hardness
Here we establish NP-hardness for Masked-LABS using cardinality-two equality rows and cardinality-four clause rows consisting of disjoint parallel edges.
Lemma 4.8 (NOT row) For spin positions , the zero equation is equivalent to .
Proof Factoring the left-hand side gives . Since , this holds if and only if , equivalently .
If two NOT rows share the same newly introduced endpoint z, their zero equations enforce and , and therefore . Lemma 4.9 formalizes this construction while assigning distinct lags, avoiding collisions among newly introduced spin positions, and keeping the sequence length polynomially bounded.
Lemma 4.9 (Unique-lag equality embedding) Let be a nonempty finite set of spin positions, all having the same parity, and let be a finite set of lags that the new rows are not allowed to use. Given pairs specifying constraints , trivial constraints with may be discarded. Every remaining constraint can be implemented by two cardinality-two masked rows of the form in Lemma 4.8 such that:
-
every new row uses a lag outside , and all new lags are distinct;
-
all newly introduced spin positions are distinct from previously used spin positions, except that the two rows implementing the same constraint share the endpoint ;
-
has the same parity as and , so the required midpoint positions are integral; and
-
the largest spin position introduced is bounded by a polynomial in .
William Cruz-Santos
The proof is given in Appendix B.
We now specify the positions used in the reduction from 2-2 Set Splitting [10, 22]. Let the source instance have universe and four-element sets , each containing four distinct elements. Since an instance with no sets is trivially satisfiable, we assume for the construction. Assign the global reference spin position and the representative spin position to each , so all representative positions are even. For each , set the even clause lag ; these lags are pairwise distinct and satisfy . Let
Writing , define for
Lemma 4.10 (Clause placement) The spin positions and lags defined above satisfy:
-
all designated coordinates are even;
-
the four edges , are pairwise vertex-disjoint and all have lag ;
-
different clause blocks are vertex-disjoint;
-
all clause lags are pairwise distinct; and
-
the largest designated coordinate is .
The proof is given in Appendix B.
Theorem 4.11 (Cardinality-four NP-completeness) Zero-energy feasibility for Masked-LABS is NP-complete when every nonempty masked row has cardinality at most four. Hardness holds even when every cardinality-four row consists of four disjoint parallel equal-lag edges and every cardinality-two row is a consecutive-edge NOT row.
Proof Membership in NP follows from the unary-length support-list encoding: a certificate is a spin sequence , and all selected pair products can be evaluated in polynomial time.
For NP-hardness, reduce from 2-2 Set Splitting [10,22]. Let the source instance have universe and sets , each containing four distinct elements. A source assignment associates a sign in S with every element of U, and a set is satisfied exactly when its four signs split two-plus/two-minus.
Construction. Use the reference spin position , the representative spin positions , the clause lags , and the clause positions defined above. By Lemma 4.10, all these positions have the required parity, the four edges , form a matching for each source set, the clause lags are pairwise distinct, and the largest position is .
For a source set , include the four edges , in the masked row at lag . Impose the equality constraints and for every and .
Let be the set consisting of , all representative positions , and all clause positions . Let . The set contains spin positions, all of the same parity, while and . Apply Lemma 4.9 to the equality constraints. Each constraint is implemented by two cardinality-two masked rows whose lags are distinct from one another and from all clause lags. The lemma also guarantees that every newly introduced spin position and the final sequence length remain polynomially bounded in .
After all equality constraints have been implemented, let be the largest spin position introduced and let be the resulting mask. The target instance is . Every nonempty masked row has cardinality two or four, so .
If the equality constraints associated with source set hold, then its four-term correlation is
Hence the clause row has zero correlation exactly when the four representative spins associated with split two-plus/two-minus.
Completeness. Suppose the source instance has a valid 2-2 splitting. Assign each representative spin its source sign and choose either sign for the reference spin . Set every clause position so that and . For each equality constraint , the construction of Lemma 4.9 allows the shared spin to be set to ; the two intermediate spins may be chosen arbitrarily. Thus every cardinality-two row has zero correlation. Since every source set is 2-2 split, Eq. (34) also gives zero correlation for every cardinality-four clause row. Therefore the target instance has zero energy.
Soundness. Suppose the target instance has zero energy. Every cardinality-two row introduced by Lemma 4.9 has zero correlation, so all equality constraints are satisfied. Consequently, for every source set and , and . Each clause row also has zero correlation, and Eq. (34) therefore implies . Thus exactly two representative spins in every source set equal +1 and exactly two equal -1. The assignment is therefore a valid 2-2 splitting of the source instance.
Polynomial size. There is one cardinality-four row for each source set and two cardinality-two rows for each of the 8m equality constraints. Lemma 4.9 bounds the largest introduced spin position by a polynomial in , so the unary encoding of N has polynomial length. The mask contains only polynomially many explicitly listed pair terms, and all positions and lags are constructed using polynomially many arithmetic operations. Hence the target instance has polynomial size and can be constructed in polynomial time. This proves NP-hardness, and membership in NP gives NP-completeness.
William Cruz-Santos
5 Contiguous supports
A single-window Masked-LABS instance is a mask with the additional property that every nonempty support is one interval of consecutive start positions. For each active lag , there are integers and satisfying
such that
The masked row is therefore
where the window length is .
Figure 1(d) illustrates this support geometry. The optimization and threshold decision problems are the restrictions of Masked-LABS to such masks, under the same canonical encoding as in Eq. (29). Since single-window instances form a subclass of Masked-LABS, Proposition 4.7 immediately gives polynomial-time zero-energy feasibility when every window has length at most three.
5.1 Bond-copy constraints
To construct equality constraints using length-two windows, we express consecutive correlation terms through nearest-neighbor bond variables. For a spin sequence , define for . Every assignment is realized by a spin sequence: choose arbitrarily and set recursively. For lag , write . Then
Lemma 5.1 (Bond NOT) For a length-two window of lag k beginning at a, if and only if . If , its two selected lag-k edges form a matching.
Proof By Eq. (38), , and therefore . Since , the correlation vanishes if and only if , equivalently . The selected spin edges are and ; when , their four endpoints are distinct.
Two Bond-NOT rows sharing an intermediate bond can enforce equality between two bond variables. Lemma 5.2 next shows how these copy constraints can be implemented while preserving the required geometric restrictions.
Lemma 5.2 (Unique-lag bond copy) Let be a nonempty finite set of bond positions, let be a finite set of lags unavailable to the new windows, and let specify equality constraints with for every . Write . There is a polynomial-time construction of distinct intermediate bond positions , all greater than , such that each equality constraint is implemented by two length-two windows whose boundary-bond position pairs are and , respectively, and such that:
-
the 2R new lags and are pairwise distinct and lie outside ;
-
every new lag is at least 2, so the two selected edges in each new window form a matching;
-
each new lag supports exactly one contiguous length-two window; and
-
the largest intermediate position satisfies
The proof is given in Appendix C.
5.2 Length-four windows
The length-four windows are used to encode constraints requiring two positive and two negative signs. We first establish the corresponding identity and then specify the window positions used in the reduction.
Consider a length-four window with start and lag , and write for . Suppose its six boundary bonds satisfy
By Eq. (38), , , and . Hence
Thus the window has zero correlation exactly when contain two +1 signs and two -1 signs.
We use this equivalence to construct a reduction from the NP-hard all-split decision version of 2-2 Set Splitting [10,22]. Let the source instance have universe and four-element sets , with .
To realize the required boundary-bond configuration, assign the representative bond position to each . For each , define the clause lag , so and the clause lags are pairwise distinct. Let
Write in an arbitrary fixed order. Define the six boundary-bond positions by
William Cruz-Santos
Associate these positions, respectively, with . Thus and each have two boundary-bond copies, as required by Eq. (40).
Lemma 5.3 (Clause geometry) The bond positions and clause lags defined above satisfy the following properties.
-
The six boundary positions associated with each source set are pairwise distinct, and the corresponding position sets for distinct source sets are disjoint.
-
The length-four row at start and lag is a matching.
-
All clause lags are pairwise distinct.
-
The largest bond position defined before adding the copy windows is .
Proof For each , , so the boundary-bond intervals and are disjoint. Hence the six boundary positions associated with are pairwise distinct. All these positions lie between and , an interval of width . Since , the boundary-position sets associated with distinct source sets are disjoint.
The length-four row associated with selects the four spin edges for . Because , their eight endpoints are distinct, so the row is a matching. The clause lags are pairwise distinct because . Finally, the largest boundary-bond position is
☐
5.3 Single-window NP-completeness
Theorem 5.4 (Window-length-four NP-completeness) Zero-energy feasibility for single-window Masked-LABS is NP-complete when every nonempty window has length at most four. The problem remains NP-complete even under the simultaneous restrictions that every nonempty window has length exactly two or four, every active lag is used by exactly one window, and every selected lag row is a matching.
Proof Membership in NP follows from the unary-length support-list encoding: a certificate is a spin sequence in , and all selected pair products can be evaluated in polynomial time.
Construction. For NP-hardness, take a 2-2 Set Splitting instance with universe and four-element sets . Use the representative bond positions, clause lags, starts, and boundary-bond positions defined above, and include for each the length-four window at start and lag .
Set to reserve the lags used by the length-four clause windows; the length-two copy windows must use lags outside . Write for the representative bond position of each source variable . For every boundary-bond position , impose an equality constraint between and the representative bond of its assigned variable, as specified above. Although and each label two boundary positions, every position requires a separate equality constraint. Thus each of the m source sets contributes six constraints, giving .
Let consist of all representative and boundary-bond positions, and let . Apply Lemma 5.2 to all 6m equality constraints. It introduces two length-two copy windows for each constraint, with pairwise distinct lags lying outside .
After all copy windows have been added, let Z be the largest bond position used, set , and let M be the mask consisting of all clause and copy windows. The target instance is .
Polynomial size and geometry. By Lemma 5.3, . Since and , Lemma 5.2 gives . Since the target sequence length is , this bound also guarantees that its unary encoding has polynomial length. Moreover, the construction uses clause windows and copy windows, each containing at most four pair terms. Thus the mask has polynomially many explicitly specified terms, and the complete target instance has polynomial encoding length.
Having established the polynomial size of the target instance, we verify that it also satisfies the required geometric restrictions. All clause lags are distinct, all copy lags are distinct, and the copy lags lie outside ; therefore every active lag supports exactly one window. Clause windows have length four and are matchings by Lemma 5.3; copy windows have length two and are matchings by Lemma 5.1.
Completeness. Suppose the source instance has a 2-2 splitting. Assign each representative bond its source sign and set every boundary-bond copy equal to its associated representative. For each equality constraint , set the intermediate bond introduced by Lemma 5.2 to . Then both copy rows have zero correlation by Lemma 5.1. Assign all remaining bonds arbitrarily.
For every source set, the six boundary bonds then have the pattern in Eq. (40), and the four representative signs are 2-2 split. Eq. (41) therefore gives zero correlation for every clause row. Since every bond assignment is realizable by a spin sequence, the target instance has zero energy.
Soundness. Suppose the target instance has zero energy. Every length-two copy row has zero correlation. For each equality constraint, its two copy rows therefore force the boundary-bond copy to equal the corresponding representative. Thus the six boundary bonds of every source set have the pattern in Eq. (40) for its four representative signs.
Each length-four clause row also has zero correlation, so Eq. (41) implies that the four representative signs contain two +1 signs and two -1 signs. The representative bonds therefore define a valid 2-2 splitting of the source instance.
The construction is a polynomial-time many-one reduction. Hence the problem is NP-hard, and membership in NP gives NP-completeness.
William Cruz-Santos
6 Complete-lag selection
Definition 6.1 (Complete-lag selection) A complete-lag selection instance consists of a sequence length and an active-lag set . Each active lag retains its full LABS autocorrelation, so for the energy is
Figure 1(e) illustrates this restriction to complete lag diagonals. The optimization problem minimizes over . A threshold instance is represented canonically by , where is encoded in unary, as a canonical explicit list, and the nonnegative threshold in binary. The corresponding decision language is
In Masked-LABS notation, complete-lag selection corresponds to the restriction for and otherwise. Standard LABS is recovered when every lag is active. This restriction also imposes a parity condition: each active correlation contains terms and therefore cannot vanish when is odd. Consequently, zero-energy feasibility requires to be even for every active lag. In particular, when is odd, every active lag must be odd.
6.1 Odd lengths
For odd sequence lengths, the classical skew-symmetric construction of Golay [8] provides binary sequences whose aperiodic autocorrelations vanish at every odd lag. Combined with the parity obstruction above, this result yields the following classification for complete-lag selection.
Theorem 6.2 (Odd-length classification) Let . There exists a sequence such that for every odd . Consequently, a complete-lag-selection instance of odd length has zero energy if and only if every active lag is odd.
Proof Necessity follows from the parity observation above: when N is odd and k is even, is odd, so .
For sufficiency, set and define the remaining entries by for . Let . A direct check from the mirror rule gives for every .
Fix an odd lag . For each term , pair it with the term beginning at . Since is even, this pairing has no fixed points. Moreover, . Thus every paired pair of terms has opposite signs, and all terms in cancel. Hence for every odd .
6.2 Even lengths
Let and separate the odd and even spin positions by setting and for . For , splitting the start indices by parity gives
For even N, the parity condition excludes every instance containing an active odd lag. It therefore remains only to analyze active even lags, for which Eq. (43) gives the following exact reformulation.
Definition 6.3 (SLCP) Let and . The selected-lag complementary-pair feasibility problem, abbreviated SLCP( ), asks whether there exist such that for every .
Proposition 6.4 (Even-lag equivalence) Let and suppose the active-lag set is for some . The complete-lag instance has zero energy if and only if SLCP is feasible.
Proof By Eq. (43), the condition for every is exactly for the odd- and even-position subsequences and . Conversely, any feasible pair can be interleaved uniquely by setting and . Thus the two feasibility conditions are equivalent.
7 Conclusions
This paper analyzes standard LABS, in which the sequence length fixes all correlation supports, and the input-dependent variants Pair-Set-LABS and Masked-LABS, in which the selected pair interactions are explicitly specified. For the unary standard-LABS decision language, membership in NP and the sparsity of its normalized form imply that Karp NP-hardness would force P = NP. This consequence does not establish a polynomial-time algorithm for standard LABS, whose general decision complexity remains unresolved.
For the input-dependent support models, zero-energy feasibility exhibits a sharp complexity threshold. Odd-cardinality rows cannot have zero correlation, while the zero conditions for two-term rows reduce to affine equations over . Consequently, instances with at most three terms per group or row are polynomial-time decidable. In contrast, allowing four terms yields NP-completeness for both Pair-Set-LABS and Masked-LABS.
NP-completeness also persists for single-window Masked-LABS, where each active lag has a single contiguous support interval. The reduction remains valid using only length-two and length-four windows, with distinct active lags and matching rows. Thus the hardness does not depend on arbitrary pair groups or disconnected supports within a lag.
A different situation arises when every active lag retains its full LABS correlation. For odd sequence lengths, zero-energy feasibility admits an exact parity classification. For even lengths, active odd lags preclude zero energy,
William Cruz-Santos
while the remaining case is equivalent to SLCP. Its general complexity remains open. This identifies a boundary not resolved by the present reductions: the effect of requiring complete lag correlations rather than allowing the input to select individual terms within each lag.
Declarations During the preparation of this work, the author used Claude 3.5 Sonnet to improve English phrasing and readability. The author reviewed and edited the content as needed and takes full responsibility for the content of the publication.
Data availability There exists no data associated with this manuscript.
Conflict of Interest The author declares no conflict of interest.
Appendix
A Distinct Positive 1-in-3-SAT
The Boolean relation is defined by if and only if exactly one of equals 1, equivalently over the integers. In the associated satisfiability problem, each constraint has the form , and variables may be repeated among its argument positions. This problem belongs to the Boolean constraint framework studied by Schaefer [19].
Repeated variables are inconvenient for the Pair-Set-LABS clause construction, because two prescribed edges may then coincide and duplicate edges are identified in the set . We therefore consider the restriction in which every constraint contains three pairwise distinct variables and all variables occur positively.
Definition A.1 (Distinct Positive 1-in-3-SAT) An instance consists of a finite set X of Boolean variables and a conjunction of constraints , where are pairwise distinct. The question is whether there exists an assignment of the variables in X to such that every constraint evaluates to 1.
Lemma A.2 (Forcing gadgets) For pairwise distinct Boolean variables x, p, q, r, define
(44)
Every relation in these formulas contains three pairwise distinct variables. Moreover, is satisfiable over if and only if , while is satisfiable over if and only if . The respective satisfying assignments are uniquely and .
Proof For , the first two constraints imply . The third then gives , which forces and . Substituting into either of the first two constraints gives . Conversely, satisfies all three constraints.
For , the first two constraints again imply . The third gives , which forces and . Substituting into either of the first two constraints gives . Conversely, satisfies all three constraints.
Lemma A.3 (NP completeness) Distinct Positive 1-in-3-SAT is NP-complete.
Proof Membership in NP follows by using a Boolean assignment as a certificate. Each constraint has three argument positions and can be checked in constant time, so all constraints can be verified in polynomial time.
For NP-hardness, reduce from Schaefer's one-in-three satisfiability problem. Let be an arbitrary instance. Construct an instance by replacing each constraint independently according to the number of distinct variables among its three argument positions.
a) Three distinct variables. If the three arguments are pairwise distinct, include the same constraint in .
b) Exactly two distinct variables. Since is symmetric in its arguments, such a constraint can be written as with . It is satisfied if and only if over the integers, which occurs exactly when and . Replace it by , using six auxiliary variables that are pairwise distinct, distinct from , and used in no other replacement. By Lemma A.2, for fixed this conjunction can be satisfied by the auxiliary variables if and only if and . Hence the replacement is equivalent to the original constraint.
c) One distinct variable. Such a constraint has the form and is unsatisfiable, since 3x is either 0 or 3, never 1. Replace it by , using six auxiliary variables that are pairwise distinct, distinct from x, and used in no other replacement. By Lemma A.2, the first formula requires x = 0 while the second requires x = 1; therefore the replacement is also unsatisfiable.
Every constraint of contains three pairwise distinct unnegated variables. Moreover, the local replacements above preserve satisfiability. Because the auxiliary variables introduced for different constraints are disjoint, any satisfying assignment of can be extended independently to a satisfying assignment of . Conversely, restricting any satisfying assignment of to the original variables satisfies every constraint of . Hence is satisfiable if and only if is satisfiable.
Each constraint of produces at most six constraints and six auxiliary variables in . Thus the number of variables and constraints increases by only a constant factor, and the transformation is computable in polynomial time. Therefore is a polynomial-time many-one reduction. Since the source problem is NP-complete, Distinct Positive 1-in-3-SAT is NP-hard; together with membership in NP, it is NP-complete.
B Masked-LABS embedding
Proof (Lemma 4.9) We implement the equality constraints sequentially, introducing two masked rows for each constraint. Initially, set and . At each step, contains the original spin positions together with the auxiliary positions introduced so far, while contains the initially forbidden lags together with those assigned to earlier rows. New positions and lags must avoid these respective sets. For the next constraint with , we seek an auxiliary position with the same parity as and .
Once has been chosen, define the midpoint positions and . Since have the same parity, both midpoints are integers and lie strictly between their respective endpoints. The first cardinality-two masked row consists of the edges and , which share the lag . Similarly, the second row consists of and , with lag . By Lemma 4.8, zero correlation in these rows gives and , and therefore .
Because , the lags and are distinct. We choose so that and . For each , a conflict or can occur only when or , so lag conflicts exclude at most candidate values of . Likewise, for each , a collision or can occur only when or , so collisions with previously used spin positions exclude at most candidates. Since , the position itself is not already in . Hence among successive candidates of the required parity above , at least one is admissible.
Once an admissible has been found, update the sets of used spin positions and unavailable lags by setting and . Each equality constraint introduces at most three spin positions and two lags. Consequently, after processing equality constraints, and .
For each new constraint, candidate positions are examined in increasing order, with the required parity, until an admissible position is found. The number of candidates
William Cruz-Santos
examined at each step is . Therefore, the increase in the largest used spin position at each step is polynomially bounded. Summing these increases over the equality constraints yields the polynomial bound on the largest spin position stated in the lemma. The total number of candidate tests is also polynomial, so the construction can be carried out in polynomial time.
Proof (Lemma 4.10) All spin positions associated with clause are even by construction. The four positions , , are pairwise distinct, and so are the positions . Since while , every lies strictly to the right of every . Hence the eight endpoints are distinct, and the four edges form a matching.
The spin positions associated with clause lie between and . Since and consecutive bases differ by , the position sets associated with distinct clauses are disjoint. Moreover, , so the clause lags are pairwise distinct.
Finally, the largest spin position is . Since and , the largest spin position is .
C Single-window embedding
Proof (Lemma 5.2) Set and let . Before each equality constraint is processed, contains the lags unavailable to subsequent windows, and denotes the largest bond position assigned by the preceding steps (initially ).
Consider an equality constraint with . Choose an intermediate bond position and use two length-two windows whose boundary-bond position pairs are and . Their lags are and , which are distinct because .
To ensure that neither new lag belongs to , examine candidate values of beginning at . For each , a conflict can occur only when or , so at most candidates are excluded. Hence among consecutive candidates, at least one is admissible. Because and , both new lags are at least 2, and the corresponding rows are matchings by Lemma 5.1.
Choose the first admissible , add the lags and to , and replace by . By Lemma 5.1, the two rows have zero correlation exactly when and . The two equalities are simultaneously satisfied if and only if , so the two windows implement the required copy constraint.
Before processing the th equality constraint, . Since at most candidates are examined starting from , the increase in is at most . Summing these increases over all constraints gives , which is the bound stated in the lemma. The same estimate shows that only polynomially many candidate positions are examined, so the construction is computable in polynomial time.
References
-
Anthony, M., Boros, E., Crama, Y., Gruber, A.: Quadratization of symmetric pseudo-boolean functions. Discrete Applied Mathematics 203, 1–12 (2016). DOI 10.1016/j.dam.2016.01.001
-
Bauer, N.M., Alam, R., Siopsis, G., Ostrowski, J.: Combinatorial optimization with quantum imaginary time evolution. Physical Review A 109(5), 052430 (2024). DOI 10.1103/PhysRevA.109.052430
-
Bernasconi, J.: Low autocorrelation binary sequences: Statistical mechanics and configuration space analysis. Journal de Physique 48(4), 559–567 (1987). DOI 10.1051/jphys:01987004804055900
-
Bouchaud, J.P., Mézard, M.: Self induced quenched disorder: A model for the glass transition. Journal de Physique I 4(8), 1109–1114 (1994). DOI 10.1051/jp1:1994240
-
Bošković, B., Herzog, J., Brest, J.: Parallel self-avoiding walks for a low-autocorrelation binary sequences problem. Journal of Computational Science 77, 102260 (2024). DOI 10.1016/j.jocs.2024.102260
-
Drágoi, S., Baiardi, A., Egger, D.J.: Approximate quadratization of high-order hamiltonians for combinatorial quantum optimization. Physical Review Research 8(2), 023159 (2026). DOI 10.1103/9rc4-vj11
-
Glover, F., Kochenberger, G., Du, Y.: Quantum bridge analytics i: A tutorial on formulating and using qubo models. 4OR 17(4), 335–371 (2019). DOI 10.1007/s10288-019-00424-y
-
Golay, M.J.E.: A class of finite binary sequences with alternate autocorrelation values equal to zero. IEEE Transactions on Information Theory 18(3), 449–450 (1972). DOI 10.1109/TIT.1972.1054797
-
Grochow, J.A.: Np-hard sets are not sparse unless p=np: An exposition of a simple proof of mahaney's theorem, with applications. Tech. Rep. TR16-162, Electronic Colloquium on Computational Complexity (ECCC) (2016). URL https://eccc.weizmann.ac.il/report/2016/162/
-
Guruswami, V.: Inapproximability results for set splitting and satisfiability problems with no mixed clauses. Algorithmica 38(3), 451–469 (2004). DOI 10.1007/s00453-003-1072-z
-
Ikeuchi, K., Matsuda, Y., Tanaka, S.: Evaluating the performance of direct higher-order formulations in combinatorial optimization under simulated annealing. IEEE Access 14, 65043–65055 (2026). DOI 10.1109/ACCESS.2026.3688497
-
Klapper, A.M., Goresky, M.: Partial period autocorrelations of geometric sequences. IEEE Transactions on Information Theory 40(2), 494–502 (1994). DOI 10.1109/18.312172
-
Liers, F., Marinari, E., Pagacz, U., Ricci-Tersenghi, F., Schmitz, V.: A non-disordered glassy model with a tunable interaction range. Journal of Statistical Mechanics: Theory and Experiment 2010(05), L05003 (2010). DOI 10.1088/1742-5468/2010/05/L05003
-
Lucas, A.: Ising formulations of many np problems. Frontiers in Physics 2, 5 (2014). DOI 10.3389/fphy.2014.00005
-
Mahaney, S.R.: Sparse complete sets for np: Solution of a conjecture of berman and hartmanis. Journal of Computer and System Sciences 25(2), 130–143 (1982). DOI 10.1016/0022-0000(82)90002-2
-
Martínez-Durive, O.E., Kotsireas, I., Mulet, R., Lage-Castellanos, A.: Low autocorrelation binary sequences explored using warning propagation. Revista Cubana de Física 38(1), 25–31 (2021)
-
Packebusch, T., Mertens, S.: Low autocorrelation binary sequences. Journal of Physics A: Mathematical and Theoretical 49(16), 165001 (2016). DOI 10.1088/1751-8113/49/16/165001
-
Pšeničnik, B., Bošković, B., Popić, J., Brest, J.: Prioritizing search space regions in the low autocorrelation binary sequences problem. arXiv preprint (2026). ArXiv:2607.09688
-
Schaefer, T.J.: The complexity of satisfiability problems. In: Proceedings of the Tenth Annual ACM Symposium on Theory of Computing (STOC), pp. 216–226. Association for Computing Machinery (1978). DOI 10.1145/800133.804350
-
Shaydulin, R., et al.: Evidence of scaling advantage for the quantum approximate optimization algorithm on a classically intractable problem. Science Advances 10(22), eadm6761 (2024). DOI 10.1126/sciadv.adm6761
-
Song, J., Babu, P., Palomar, D.P.: Sequence design to minimize the weighted integrated and peak sidelobe levels. IEEE Transactions on Signal Processing 64(8), 2051–2064 (2016). DOI 10.1109/TSP.2015.2510982
-
Spielman, D.A., Zhang, P.: Hardness results for weaver's discrepancy problem. In: Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2022), Leibniz International Proceedings in Informatics (LIPIcs), vol. 245, pp. 40:1–40:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik (2022). DOI 10.4230/LIPIcs.APPROX/RANDOM.2022.40
-
Walter, M.: Short paper - the binary linearization complexity of pseudo-boolean functions. Open Journal of Mathematical Optimization 5, 6 (2024). DOI 10.5802/ojmo.34
-
Zhang, Z., Shen, J., Kumar, N., Pistoia, M.: New improvements in solving large LABS instances using massively parallelizable memetic tabu search. arXiv preprint (2025). ArXiv:2504.00987