A Smart Backtracking Algorithm for Computing Set Partitions with Parts of Certain Sizes

11/05/2020
by   Samer Nofal, et al.
0

Let α={a_1,a_2,a_3,...,a_n} be a set of elements, δ < n be a positive integer, and Γ: α→{0, 1, 2, ..., n} be a total mapping. Then, we call Γ a partition of α if and only if for all x ∈α, Γ(x) ≠ 0. Further, we call Γ a δ-partition of α if and only if Γ is a partition of α and for all i ∈{1, 2, 3, ..., n}, |{x: Γ(x)=i}| > δ. The so-far open issue that we close in this paper is regarding whether the δ-partitions of α can be computed without computing the partitions of α in advance. As we show in this paper, this issue is not as trivial as it might seem at first sight, especially if any naive generate-and-test procedure has to be avoided. To resolve this issue, we give a formal proof of the correctness of a smart backtracking algorithm that computes the δ-partitions of α efficiently without a prior construction of the partitions of α. The algorithm does so by checking (ahead) two properties identifying parts of the search space that are devoid of any δ-partition of α.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/30/2021

Verification and generation of unrefinable partitions

Unrefinable partitions are a subset of partitions into distinct parts wh...
research
11/09/2018

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

The well-known PARTITION problem: Given positive integers n, k and t suc...
research
05/16/2021

Lexicographic Enumeration of Set Partitions

In this report, we summarize the set partition enumeration problems and ...
research
09/07/2020

Passwords: Divided they Stand, United they Fall

Today, offline attacks are one of the most severe threats to password se...
research
03/29/2023

Boltzmann Distribution on "Short” Integer Partitions with Power Parts: Limit Laws and Sampling

The paper is concerned with the asymptotic analysis of a family of Boltz...
research
11/04/2022

Geometry of Rounding

Rounding has proven to be a fundamental tool in theoretical computer sci...
research
09/09/2021

Exponential bases for partitions of intervals

For a partition of [0,1] into intervals I_1,…,I_n we prove the existence...

Please sign up or login with your details

Forgot password? Click here to reset