A Smart Backtracking Algorithm for Computing Set Partitions with Parts of Certain Sizes
Data Structures and Algorithms
2021-02-04 v2
Abstract
Let be a set of elements, be a non-negative integer, and be a total mapping. Then, we call a \emph{partition} of if and only if for all , . Further, we call a -\emph{partition} of if and only if is a partition of and for all , . We give a non-trivial algorithm that computes all -partitions of in time. On the opposite, a naive generate-and-test algorithm would compute all -partitions of in time where is the Bell number.
Cite
@article{arxiv.2011.03004,
title = {A Smart Backtracking Algorithm for Computing Set Partitions with Parts of Certain Sizes},
author = {Samer Nofal},
journal= {arXiv preprint arXiv:2011.03004},
year = {2021}
}