Abstract
This paper presents the first tight runtime analysis for the (1+1) Evolutionary Algorithm (EA) on the LeadingOnes problem under a cardinality constraint. We prove a runtime bound of $\Theta(nB + n(n-B)\log B)$, highlighting how constraints can significantly impede the progress of single-individual EAs. The study further explores stochastic constraints and demonstrates that incorporating a small population or employing lexicographic optimization can restore efficiency and provide robustness against noise.
Introduction
In evolutionary computation, benchmark functions like OneMax and LeadingOnes serve as essential tools for understanding algorithmic behavior. While the unconstrained versions of these problems are well-documented, real-world engineering often imposes resource limits. This research addresses the impact of a cardinality constraint—limiting the total number of 1-bits to a budget $B$—on the optimization timeline of the LeadingOnes problem. The authors employ rigorous mathematical tools, including the additive drift theorem and fitness level methods, alongside a novel potential function to track the algorithm's progress as it navigates the boundary of the constraint.
The "Constraint Wall" and Runtime Complexity
The core theoretical result of this work is the derivation of a tight expected runtime for the (1+1) EA: $\Theta(nB + n(n-B)\log B)$. This bound reveals a phenomenon termed the "constraint wall." As the search approaches the limit $B$, the algorithm faces a significant slowdown.
When the current solution has nearly $B$ ones, most mutations that would increase the LeadingOnes count (by flipping a 0 to a 1) also increase the total bit count, violating the constraint. Consequently, these mutations are rejected. To progress, the algorithm must wait for a specific mutation that flips a "tail" bit (a bit beyond the leading ones) from 1 to 0 while simultaneously flipping the first 0 to a 1. This necessity for coordinated bit flips results in the logarithmic penalty term $n(n-B)\log B$, representing a random walk along the constraint boundary.
Enhancing Efficiency via Lexicographic Optimization
To mitigate the slowdown caused by the constraint, the authors investigate lexicographic optimization. By introducing a secondary objective—minimizing the total number of ones—the algorithm is encouraged to stay away from the constraint boundary. The researchers prove that this simple multi-objective "trick" reduces the expected runtime back to $O(n^2)$, the natural complexity of unconstrained LeadingOnes. This suggests that providing the algorithm with a direction to move away from the constraint can drastically improve performance, effectively bypassing the constraint-induced bottleneck.
Robustness in Stochastic Environments
The paper also examines "chance-constrained" scenarios where the constraint boundary is subject to random noise, such as weights drawn from Normal or Uniform distributions. In these settings, the (1+1) EA is remarkably fragile; a single noisy sample can make a feasible solution appear illegal, causing the algorithm to lose significant progress immediately.
Experimental simulations compare the (1+1) EA against the ($\mu$+1) EA, which maintains a population of $\mu$ parents. The results show that even a small population (e.g., $\mu=10$) acts as a critical buffer. By keeping multiple candidates, the population-based EA ensures that a single bad random sample does not reset the entire search, allowing for stable convergence where the (1+1) EA fails to converge or fluctuates wildly.
Conclusion
This study provides a rigorous mathematical foundation for understanding how constraints alter the landscape of evolutionary search. While simple constraints can create significant bottlenecks for single-individual algorithms, the use of populations and secondary objectives offers effective strategies for maintaining efficiency and robustness. Future work may extend these analyses to more complex, non-linear constraints and provide a full theoretical treatment of population dynamics in stochastic environments.
Summary updated