期刊文献+

r-排列非递归生成算法及应用

A Non-recursive Algorithm of Generating r-Permutation and Its Applications
下载PDF
导出
摘要 提出一种利用回溯法生成r-排列的算法.该算法使用栈和队列,并引入标记已选元素的方法,避免了回溯时的重复选择.生成的r-排列具有分组和对称性,且符合字典序.此算法也能生成全排列.利用该算法提出了r-组合生成算法,分析了它们的时间和空间复杂度,并介绍了r-排列和r-组合算法在任务安排问题中的应用. An r-permutation generation algorithm by backtracking is proposed in this paper.The stack and queue are used,and selecting repeatedly is avoided by labeling the selected elements.All r-permutations are grouping and symmetrical,which are visited in lexicographic order.Moreover,full permutation is also generated.According to r-permutation generation algorithm,an r-combinations generation algorithm is introduced.Time complexity and space complexity of two algorithms are analyzed.And the algorithms are applied to the task allocation problem.
出处 《宁夏大学学报(自然科学版)》 CAS 2013年第4期301-305,共5页 Journal of Ningxia University(Natural Science Edition)
基金 国家自然科学基金资助项目(11071283 11241005) 生物数学重点实验室开放课题(SWSX201305) 运城学院科研基金资助项目(FZ-2012005)
关键词 r-排列 r-组合 队列 非递归算法 回溯法 任务安排问题 r-permutation r-combination stack queue non-recursive algorithm backtracking the task allocation problem
  • 相关文献

参考文献4

二级参考文献25

  • 1韩宇南,吕英华,黄小红.并行改进回溯算法实现N皇后问题的快速计数[J].计算机工程与应用,2006,42(36):1-3. 被引量:6
  • 2严蔚敏,吴伟民.数据结构(C语言版)[M].北京:清华大学出版社,2006.
  • 3Jordan Bell, Brett Stevens. A survey of known resuhs and research areas for N-Queens [ J ]. Discrete Mathematics, 2009,309(1) : 1-31.
  • 4AnanyLevitin.算法设计与分析基础(第2版)[M].潘彦译.北京:清华大学出版社,2007:315-316.
  • 5Solomon W Golomb, Leonard D Baumert. Backtrack program- ming [J]. Journal of the ACM, 1965,12(4):516-524.
  • 6Martin Richards. Backtracking Algorithms in MCPL Using Bit Patterns and Recursion[R]. UCAM-CL-TR433. Unit- ed Kingdom:University of Cambridge, Computer Laborato- ry, 1997.
  • 7Jacek Mandziuk, Bohdan Macukow. A neural network de- signed to solve the N-queens problem [ J ]. Biological Cy- bernetics, 1992,66(4) :375-379.
  • 8Wei Zhang, Zheng Tang. A new algorithm using hopfield neural network with CHN for N-queens problem[ J]. Inter- national Journal of Computer Science and Network Securi- tv. 2009.9(4 ,36-41.
  • 9Sosic Rok, Gu Jun. A polynomial time algorithm for the N- Queens problem[ J]. SIGART Bulletin, 1990,1 (3) :7-11.
  • 10LarryNyhoff.数据结构与算法分析-C++语言描述(第2版)[M].黄达明译.北京:清华大学出版社,2006:280.309-345.361.

共引文献7

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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