期刊文献+

一种基于Stirling图枚举算法的分球入盒问题求解

RESEARCH ON DISTRIBUTING BALLS INTO BOXES ENUMERATION ALGORITHM
在线阅读 下载PDF
导出
摘要 已有的分球入盒问题解法通常只关注分球的总方案数,目前尚没有公开的计算机算法来枚举出所有具体的分球方案,而方案的枚举是生物信息学中一些分区优化算法的基础。受第二类Stirling数的递推公式的启发,提出一个新的数据结构——Stirling图。在此基础上设计一个算法来枚举p个不同球分配到q个相同盒子里的所有不同的方案。当p和q较大,枚举出所有的方案不可行时,设计另一个算法在整个方案空间实现均匀采样,输出指定个数的方案。测试结果表明,这些算法在内存为8 GB的普通PC上可在合理的时间内枚举出上百万组不同的方案。 The existing researches on the problem of distributing balls into boxes usually focus on the total number of different ways to distribute balls into boxes,but there are no public computer algorithms to enumerate them. However,enumerating them is the foundation to design some partition optimal algorithms in Bioinformatics. Inspired by the recursive formula of the Stirling numbers of the second kind,the paper proposes a new data structure—Stirling diagram,and based on the data structure,designs an algorithm to enumerate all different ways to distribute p different balls into q same boxes. When p and q are larger and none of the schemes is feasible,we design another algorithm to achieve uniform sampling of a given number of different ways. Test results show that these algorithms can enumerate millions of different distributing ways in a reasonable period of time on a PC with 8 GB memory.
出处 《计算机应用与软件》 2017年第10期248-251,274,共5页 Computer Applications and Software
基金 国家自然科学基金项目(61370172)
关键词 分球入盒问题 第二类STIRLING数 枚举算法 Stirling图 均匀采样 Distribut ing ball s into boxes problem Stirling numbers of the second kind Enumerating algorithmStirling diagram Uniform sampling
  • 相关文献

参考文献3

二级参考文献16

  • 1董兆安,孙强.最大值堆的枚举计数公式及其实现[J].计算机工程,2005,31(6):68-69. 被引量:5
  • 2杜慧江,孙强.一种生成所有堆的枚举算法[J].计算机工程,2006,32(20):62-64. 被引量:1
  • 3宁丹,王建新.一个基于着色和动态规划的3-维匹配问题算法[J].计算机科学,2007,34(7):222-224. 被引量:2
  • 4Valiant L. The complexity of enumeration and reliability problems [J]. SIAM Journal on Computing, 1979,8(3) : 410-421.
  • 5Matsui Y,Matsui T. http://dmawww. epfl.ch/roso.mosaic/kf/ enum/comb/combenum.html.
  • 6Flum J, Grohe M. The parameterized complexity of counting problems[J]. SIAM Journal on Computing, 2004,33 (4) : 892- 922.
  • 7Chen J, Kanj I, Meng J, et al. On effective enumerability of NP problems[C]//Proceedings of the 2nd International Workshop on Parameterized and Exact Computation. Berlin: Springer-Verlag, 2006 : 215-226.
  • 8Liu Y, Lu S, Chen J, et al. Greedy localization and color-coding: improved matching and packing algorithms[C]//Proceedings of the 2nd International Workshop on Parameterized and Exact Computation. Berlin: Springer-Verlag, 2006 : 84-95.
  • 9Liu Y, Chen J, Wang J. On counting 3-D matchings of size k[J].Algorithmica, 2009,54 : 349-359.
  • 10Chen J, Lu S, Sze S -H, et al. Improved algorithms for path, matching,and packing problems [C]//Proceedings of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms. 2007: 298-307.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部