The Sum Composition Problem

02/06/2020
by   Mario Pennacchioni, et al.
0

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

READ FULL TEXT
research
12/30/2021

Verification and generation of unrefinable partitions

Unrefinable partitions are a subset of partitions into distinct parts wh...
research
01/18/2018

On partitions into squares of distinct integers whose reciprocals sum to 1

In 1963, Graham proved that all integers greater than 77 (but not 77 its...
research
07/02/2022

Sum-of-Max Partition under a Knapsack Constraint

Sequence partition problems arise in many fields, such as sequential dat...
research
09/12/2013

How Relevant Are Chess Composition Conventions?

Composition conventions are guidelines used by human composers in compos...
research
12/05/2019

Linear algorithm for solutions n-Queens Completion problem

A linear algorithm is described for solving the n-Queens Completion prob...
research
12/05/2019

Linear algorithm for solution n-Queens Completion problem

A linear algorithm is described for solving the n-Queens Completion prob...
research
06/01/2023

Toward Better Depth Lower Bounds: A KRW-like theorem for Strong Composition

One of the major open problems in complexity theory is proving super-log...

Please sign up or login with your details

Forgot password? Click here to reset