Skip to main contentSkip to search
Episciences
Open Access Journals
Sign in(new window)
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Discrete Mathematics & Theoretical Computer Science logo
Discrete Mathematics & Theoretical Computer Science
Sign in(new window)
Articles & Issues
All articlesAll accepted articlesAll volumesLast volumeSectionsSpecial issuesAuthors
About
The journalIndexing
Boards
Publish
For authorsEthical charter
Submit
Discrete Mathematics & Theoretical Computer Science logo
Contact
|
Credits
eISSN 1365-8050
|
RSS
|
Atom
Episciences
Documentation
|
Acknowledgements
|
Publishing policy
Accessibility: non-compliant
|
Legal mentions
|
Privacy statement
|
Terms of use
  1. Home > Articles & Issues >
  2. Articles >
  3. An output-sensitive ...
Article

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

Alexander Büchel, Ulrich Gilleßen, Kurt-Ulrich Witt
Download article
Open on arXiv
Submitted on
November 27, 2018
Accepted on
December 4, 2018
Published on
January 24, 2019
Last modified on
March 31, 2025
Volume 20
vol. 20:2
Discrete Algorithms
DOI
10.23638/DMTCS-20-2-18
License
arXiv.org - Non-exclusive license to distribute
Indicators
1141
Views
845
Downloads

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

Alexander Büchel, Ulrich Gilleßen, Kurt-Ulrich Witt
Abstract
We present a polynomial time algorithm, which solves a nonstandard Variation of the well-known PARTITION-problem: Given positive integers $n, k$ and $t$ such that $t \geq n$ and $k \cdot t = {n+1 \choose 2}$, the algorithm partitions the elements of the set $I_n = \{1, \ldots, n\}$ into $k$ mutually disjoint subsets $T_j$ such that $\cup_{j=1}^k T_j = I_n$ and $\sum_{x \in T_{j}} x = t$ for each $j \in \{1,2, \ldots, k\}$. The algorithm needs $\mathcal{O}(n \cdot ( \frac{n}{2k} + \log \frac{n(n+1)}{2k} ))$ steps to insert the $n$ elements of $I_n$ into the $k$ sets $T_j$.
Keywords
  • Mathematics - Combinatorics
  • Computer Science - Data Structures and Algorithms
Mathematics Subject Classification 2020
  • 05A18 - Partitions of sets
  • 11P81 - Elementary theory of partitions
Preview
Loading PDF preview...