arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1307.1728cs.DS
收藏

可指定组合结构的线性时间生成:一般理论和第一个例子

Linear-time generation of specifiable combinatorial structures: general theory and first examples

Frederique Bassino, Andrea Sportiello

摘要:

各种可指定的组合结构,具有d个扩展参数,可以通过递归方法精确采样,如果执行繁重的预处理,则具有线性算术复杂度,或者通过玻尔兹曼方法,具有复杂度Theta(n^{1+d/2})。我们讨论了一个修改后的递归方法,至关重要的是基于相关的鞍点积分的渐近展开,这可以通过大量的这样的结构(例如分区,置换,格行走,树,随机图,所有与各种规定的统计和/或约束)。新算法不需要预处理,但平均复杂度仍为线性。在比特复杂度方面,我们只有额外的对数因子,而不是算术。对于许多族的结构,这提供了,据我们所知,唯一已知的准线性发电机。我们提出的一般理论,并详细介绍了一个具体的例子:分区的n个元素到k个非空的块,计数的第二类斯特林数。这些对象涉及具有规定的字母表大小和状态数的最小自动机的精确采样,因此在这里以平均Theta(n ln n)位复杂度执行,突破了所有先前已知的Theta(n^{3/2})算法。

英文摘要:

Various specifiable combinatorial structures, with d extensive parameters, can be exactly sampled both by the recursive method, with linear arithmetic complexity if a heavy preprocessing is performed, or by the Boltzmann method, with complexity Theta(n^{1+d/2}). We discuss a modified recursive method, crucially based on the asymptotic expansion of the associated saddle-point integrals, which can be adopted for a large number of such structures (e.g. partitions, permutations, lattice walks, trees, random graphs, all with a variety of prescribed statistics and/or constraints). The new algorithm requires no preprocessing, still it has linear complexity on average. In terms of bit complexity, instead of arithmetic, we only have extra logarithmic factors. For many families of structures, this provides, at our knowledge, the only known quasi-linear generators. We present the general theory, and detail a specific example: the partitions of n elements into k non-empty blocks, counted by the Stirling numbers of the second kind. These objects are involved in the exact sampling of minimal automata with prescribed alphabet size and number of states, which is thus performed here with average Theta(n ln n) bit complexity, outbreaking all previously known Theta(n^{3/2}) algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑