English

The Sum Composition Problem

Data Structures and Algorithms 2020-02-10 v1

Abstract

In this paper, we study the "sum composition problem" between two lists AA and BB of positive integers. We start by saying that BB is "sum composition" of AA when there exists an ordered mm-partition [A1,,Am][A_1,\ldots,A_m] of AA where mm is the length of BB and the sum of each part AkA_k is equal to the corresponding part of BB. Then, we consider the following two problems: i)i) the "exhaustive problem", consisting in the generation of all partitions of AA for which BB is sum composition of AA, and ii)ii) the "existential problem", consisting in the verification of the existence of a partition of AA for which BB is sum composition of AA. Starting from some general properties of the sum compositions, we present a first algorithm solving the exhaustive problem and then a second algorithm solving the existential problem. We also provide proofs of correctness and experimental analysis for assessing the quality of the proposed solutions along with a comparison with related works.

Keywords

Cite

@article{arxiv.2002.02476,
  title  = {The Sum Composition Problem},
  author = {Mario Pennacchioni and Emanuele Munarini and Marco Mesiti},
  journal= {arXiv preprint arXiv:2002.02476},
  year   = {2020}
}