paper

The Sum Composition Problem

arXiv:2002.02476

Abstract

In this paper, we study the "sum composition problem" between two lists and of positive integers. We start by saying that is "sum composition" of when there exists an ordered -partition of where is the length of and the sum of each part is equal to the corresponding part of . Then, we consider the following two problems: the "exhaustive problem", consisting in the generation of all partitions of for which is sum composition of , and the "existential problem", consisting in the verification of the existence of a partition of for which is sum composition of . 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.