arXiv Science⌕ Search

arXiv · 2611.31529

A steady-state genetic algorithm with multi-ratio seeding and pair exchange for the quadratic knapsack problem

Abstract

The quadratic knapsack problem (QKP) seeks a subset of items of maximum total linear and pairwise profit whose total weight does not exceed a given capacity. Most QKP heuristics rank items by a profit-to-weight ratio. We show on benchmark instances that this ranking can steer the search away from the best known solutions, and that on an almost full knapsack a local optimum can be separated from a better solution by an exchange where every single swap loses profit. We propose SSGA-P, a steady-state genetic algorithm with pair exchange that addresses both effects. Its initial population contains greedy solutions built with a grid of exponents between 0.5 and 3 applied to the item weights, and its pair exchange move combines an improving swap violating the capacity with a second swap or removal that restores feasibility. Incremental contribution vectors keep the method practical up to 10{,}000 items. SSGA-P finds optimal solutions in every run on the 100 classical instances and reaches all best known values in 99.8\% of the runs on the 80 instances with 1000 and 2000 items and in 99.75\% on the 40 instances with 5000 and 6000 items, significantly above the 87.7\% of the iterated hyperplane exploration algorithm, improving one best known value. On the 144 Large-QKP instances of Hochbaum et al. (2025), with the same 120-second limit, it improves 20 best known values and matches the other 124. An ablation study shows that the multi-ratio seeding and the pair exchange account for most of this performance.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Gaurav Srivastava, Rahul Verma, Alok Singh. 2026-11-23. A steady-state genetic algorithm with multi-ratio seeding and pair exchange for the quadratic knapsack problem. https://arxiv.science/abs/2611.31529

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Green ACO: An Energy-Aware Ant Colony Optimization Framework for MAX-SAT

NP-hard combinatorial optimization problems require substantial computational resources, raising significant environmental concerns, particularly in regions with carbon-intensive electricity grids. This paper presents Green ACO, an energy-aware Ant Colony Optimization framework for the Maximum Satisfiability (MAX-SAT) problem. At its core is an Expected Improvement per Joule (EI/J) scheduler, which selects, at each iteration, the operator that best balances expected solution quality improvement against energy consumption. Three operators feed the scheduler: WalkSAT, Focused Variable Neighbourhood Search, and Clause-Restart Greedy, ranging from inexpensive and targeted to more aggressive and computationally costly. An offline dual-regime profiling phase calibrates these operators before the search begins. Combined with Thompson sampling, this reduces uninformed early operator selections, although online call-count warm-up is still required. A pre-dispatch guard rejects calls when their estimated energy cost, adjusted by a safety multiplier, exceeds the remaining budget. Sparse pheromone updates, pheromone caching across budgets, and stagnation-based early stopping further reduce energy consumption without compromising solution quality. The framework also incorporates a budget predictor to estimate the energy requirements of unseen instances. On four challenging MAX-SAT reference instances, Green ACO achieves an average solution quality of 98.44%. This outperforms standard ACO baselines by nearly three percentage points while consuming only 986 J, compared with 4,171-6,610 J for the strongest competitors, yielding a 6.5-fold improvement in quality per joule. Under the Algerian electricity grid's carbon intensity, this corresponds to an approximately 85% reduction in CO2e emissions compared with the most energy-intensive baseline.

cs.NE↗

SPARC: Task-Free Class-Incremental Learning for Deep Spiking Neural Networks under a Local Rule

On-device continual learning in deep SNNs must address catastrophic forgetting while relying on neuromorphic-compatible local learning rules. We present SPARC, a task-free class-incremental framework that combines one-bit latent replay with TESS local learning algorithm. SPARC aligns per-task partitions of trainable channels and TESS's fixed feedback/readout matrix, protecting prior knowledge while retaining a single global classifier over all observed classes. Layer-local readouts further reduce adaptation to one trainable convolutional layer, allowing the remaining pretrained tail to be discarded. Across four benchmarks with a frozen out-of-distribution VGG-9 backbone, SPARC's peak training memory is constant in the number of timesteps, where BPTT's grows linearly with them, and each update costs 12x fewer synaptic operations than BPTT. The saving against BPTT-based methods is already significant on static images (2.3x at T=6) and decisive on the long event sequences that motivate event-based sensing (15.5x at T=60). Despite that lower cost, SPARC achieves 1.8-3.3 pp higher accuracy than plain Latent Replay (LR), showing the gain is not merely a memory-saving trade-off.

cs.NE↗

Pareto-Optimal Anytime Algorithms via Bayesian Racing

Anytime optimization algorithms return the best solution found so far when stopped, so their performance is a function of the budget, but the budget available at deployment is often unknown during benchmarking. Standard benchmarking fixes the number of instances in advance, normalizes objective values per instance, and leaves readers to infer the trade-off over budgets from plots. We instead compare algorithms by their win probability at each budget, the probability that one is ahead on a random instance of interest, which needs no normalization. The result is the anytime Pareto set, the algorithms that no other beats at every budget, from which the best algorithm under a preference over budgets can be selected once the preference is known. We propose PolarBear, a Bayesian racing procedure that identifies this set, running only the algorithms whose comparisons are still open and stopping once the evidence suffices. It takes its model as a plug-in and, if the model is exactly specified, comes with a guarantee on false statements. On seven benchmarks with known win probabilities, models that estimate each pair make no more false statements than their posterior probabilities imply unless their prior is certain too early. Models with one rating per algorithm make more. Repeated races on the same benchmark need severalfold different numbers of instances, depending on which instances they draw. A fixed sample size therefore leaves some comparisons unresolved and keeps running every algorithm in others after the evidence suffices.

cs.NE↗