English

An output-sensitive Algorithm to partition a Sequence of Integers into Subsets with equal Sums

Combinatorics 2023-06-22 v5 Data Structures and Algorithms

Abstract

We present a polynomial time algorithm, which solves a nonstandard Variation of the well-known PARTITION-problem: Given positive integers n,kn, k and tt such that tnt \geq n and kt=(n+12)k \cdot t = {n+1 \choose 2}, the algorithm partitions the elements of the set In={1,,n}I_n = \{1, \ldots, n\} into kk mutually disjoint subsets TjT_j such that j=1kTj=In\cup_{j=1}^k T_j = I_n and xTjx=t\sum_{x \in T_{j}} x = t for each j{1,2,,k}j \in \{1,2, \ldots, k\}. The algorithm needs O(n(n2k+logn(n+1)2k))\mathcal{O}(n \cdot ( \frac{n}{2k} + \log \frac{n(n+1)}{2k} )) steps to insert the nn elements of InI_n into the kk sets TjT_j.

Keywords

Cite

@article{arxiv.1811.04014,
  title  = {An output-sensitive Algorithm to partition a Sequence of Integers into Subsets with equal Sums},
  author = {Alexander Büchel and Ulrich Gilleßen and Kurt-Ulrich Witt},
  journal= {arXiv preprint arXiv:1811.04014},
  year   = {2023}
}
R2 v1 2026-06-23T05:10:35.829Z