A new fully polynomial time approximation scheme for the interval subset sum problem

Rui Diao, Ya-Feng Liu, Yu-Hong Dai

Abstract

The Interval Subset Sum Problem (ISSP) is a generalization of the classic Subset Sum Problem where each item is represented by a range of possible values. While ISSP is NP-hard, this paper introduces a highly efficient Fully Polynomial Time Approximation Scheme (FPTAS) that significantly improves upon previous state-of-the-art methods. By exploiting a novel structural property of optimal solutions and utilizing a relaxed dynamic programming approach, the proposed algorithm reduces space complexity from $O(n/\epsilon)$ to $O(n + 1/\epsilon)$. Empirical evaluations show that the scheme can process instances with 100,000 intervals in less than a second, making it highly suitable for large-scale industrial applications.

Introduction

The Subset Sum Problem (SSP) is a fundamental problem in combinatorial optimization: given a set of $n$ numbers and a target $T$, find a subset whose sum is as close to $T$ as possible without exceeding it. The Interval Subset Sum Problem (ISSP) extends this by allowing each item $i$ to take any integer value within a specified interval $[a_{i,1}, a_{i,2}]$.

ISSP has significant practical applications in fields such as:

  • Power Grid Dispatch: Optimizing the selection of power plants with varying operating capacities.
  • Auction Clearing: Allocating goods to bidders who specify a range of acceptable quantities.

Given its NP-hard nature, research focuses on developing approximation schemes. An FPTAS provides a solution within a $(1-\epsilon)$ factor of the optimum in time polynomial in $n$ and $1/\epsilon$.

Methodology

The proposed FPTAS is built upon three core technical innovations:

1. Structural Analysis and the "Midrange" Property

The authors identified a critical structural property (Lemma 3.4) that simplifies the search for an optimal solution. They proved that there exists an optimal solution where at most one interval contributes a "midrange" value—an integer that is strictly between the interval's endpoints. Furthermore, this midrange element must follow a specific ordering relative to the other intervals. This insight allows the algorithm to focus primarily on the endpoints of the intervals, drastically pruning the search space.

2. Relaxed Dynamic Programming

Traditional dynamic programming for subset sum problems often suffers from high memory requirements because it tracks all possible sums. The authors mitigate this by partitioning the target range $(0, T]$ into $1/\epsilon$ sub-intervals or "buckets." Instead of storing every reachable sum, the algorithm only maintains the minimum and maximum values within each bucket. This "relaxed" approach maintains the approximation guarantee while keeping the number of stored states manageable.

3. Memory-Efficient Solution Reconstruction

To recover the actual set of chosen values without storing the entire dynamic programming table, the authors employ a recursive divide-and-conquer backtracking strategy. This technique ensures that the space complexity remains $O(n + 1/\epsilon)$, a significant improvement over previous methods where space was tied to the product of $n$ and $1/\epsilon$.

Complexity and Performance

The primary contribution of this work is the decoupling of $n$ and $1/\epsilon$ in the space complexity. As shown in the comparison below, the new algorithm achieves a space complexity of $O(n + 1/\epsilon)$, which is a substantial improvement for large $n$ or small $\epsilon$.

Comparison of complexity for SSP, ISSP, and 0-1 KP.

The time complexity is $O(n \max\{1/\epsilon, \log n\})$, which remains competitive with or superior to existing methods for the Interval Subset Sum Problem.

Experimental Results

The algorithm was tested on a variety of datasets to evaluate its performance in practice:

  • Hard SSP Instances: Using classic benchmarks from Chvátal (1980) that are known to be difficult for exact solvers.
  • Synthetic ISSP Instances: Large-scale datasets with up to 100,000 intervals and target values reaching $3 \times 10^{14}$.

The results were impressive: the algorithm solved the largest instances ($n = 100,000$) with a relative error of $\epsilon = 0.1\%$ in approximately 0.8 seconds. Furthermore, in many test cases, the algorithm found the exact global optimum even when only an approximation was requested.

Conclusion

This paper presents a significant advancement in approximation algorithms for the Interval Subset Sum Problem. By identifying a new structural property and combining it with relaxed dynamic programming and divide-and-conquer techniques, the authors have created a tool that is both faster and more memory-efficient than previous state-of-the-art solutions. Future work may involve extending these techniques to other variations of the Knapsack problem or adapting the bucket logic for continuous real-valued inputs.

Summary updated

Abstract

The interval subset sum problem (ISSP) is a generalization of the well-known subset sum problem. Given a set of intervals $$\left\{ [a_{i,1},a_{i,2}]\right\} _{i=1}^n$$ [ a i , 1 , a i , 2 ] i = 1 n and a target integer T, the ISSP is to find a set of integers, at most one from each interval, such that their sum best approximates the target T but cannot exceed it. In this paper, we first study the computational complexity of the ISSP. We show that the ISSP is relatively easy to solve compared to the 0–1 knapsack problem. We also identify several subclasses of the ISSP which are polynomial time solvable (with high probability), albeit the problem is generally NP-hard. Then, we propose a new fully polynomial time approximation scheme for solving the general ISSP problem. The time and space complexities of the proposed scheme are $${{\mathcal {O}}}\left( n \max \left\{ 1 / \epsilon ,\log n\right\} \right) $$ O n max 1 / ϵ , log n and $$\mathcal{O}\left( n+1/\epsilon \right) ,$$ O n + 1 / ϵ , respectively, where $$\epsilon $$ ϵ is the relative approximation error. To the best of our knowledge, the proposed scheme has almost the same time complexity but a significantly lower space complexity compared to the best known scheme. Both the correctness and efficiency of the proposed scheme are validated by numerical simulations. In particular, the proposed scheme successfully solves ISSP instances with $$n=100{,}000$$ n = 100 , 000 and $$\epsilon =0.1\%$$ ϵ = 0.1 % within 1 s.
BibTeX
@article{diao2017new,
  author = {Rui Diao and Ya-Feng Liu and Yu-Hong Dai},
  title = {{A new fully polynomial time approximation scheme for the interval subset sum problem}},
  journal = {J. Glob. Optim.},
  year = {2017},
  url = {https://openreview.net/forum?id=DE2LJE4KnuU},
}
Figure