8n阶三重幻方的构造和相关问题的分析 word格式.docx

8n阶三重幻方的构造和相关问题的分析 word格式.docx

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
8n阶三重幻方的构造和相关问题的分析 word格式

优秀毕业论文 精品参考文献资料 摘要 幻方问题是一个历史悠久的组合数学问题,也是一个典型的NP难问题。1890年法 国数学家G.Pfeffermann发现了第一个多重幻方—8阶二重幻方,幻方专家们因此翻开了 构造多重幻方的新篇章。 随着计算机飞速发展,其运算速度也急剧提高,人们逐渐将计算机引入到幻方的 求解中。幻方问题的复杂性在于,搜索空间随阶数指数递增,但其解在搜索空间中所 占的比例,随阶数指数递减。如果不利用幻方的一些特性来进行优化,只用穷举法, 即使采用世界上运行速度最快的超级计算机来求解,也不能在可行时间内求出。需要 选择合适的算法,仔细分析规律。 本文在比较了现有的构造多重幻方的方法后,采用回溯法来进行8N阶三重幻方的 求解,并采用启发式的思想来设计算法。其难点在于如何减小搜索空间以及如何使初 始矩阵尽量在最终解较密集的那块区域搜索,以达到减少回溯、缩短搜索时间的目的。 幻方的搜索空间大的超乎想象,没有合适的结构规律,即使采用回溯法,也很难 求出。本文引入了两个重要的概念—奇偶偏补序列和互补序列。深入分析三重幻方的 特征,发现奇偶各一半的三重序列所占的概率最大。这两种结构均是奇偶各一半的三 重序列,本文采用其构造多重幻方,成功的概率也较大。提出了8N阶三重幻方的求解 方法,详细分析了多重幻方的调整顺序以及程序设计流程,并用程序验证了该方法的 正确性。该算法对于求解其他类型的多重幻方,有一定的参考意义。 关键字:多重幻方;回溯法;搜索空间;奇偶偏补序列;互补序列 I Abstract Magic Squares is a combinatorial mathematics problem,with a long history. It is a typical NP-hard problem. In 1890, French mathematician G.Pfeffermann found the first multi-magic square — 8 bi-magic square magic square, which opened a new chapter in the construction of multi-magic square. With rapid development of computers, computing speed increases dramatically. People gradually introduce the computer into solving the magic square problem. The complexity is that the search space with order exponential increase and solution proportion with the order exponential decline. If using a simple brute-force method, without using some features to optimize the algorithm, even with the supercomputers to solve the problem, the results can’t be obtained within feasible time. So we need to choose the right algorithms and analyze the feature of magic square. After comparing some existing methods, backtracking method is chosen to solve the construction of 8N order tri-magic square, using heuristic ideology to design the algorithm. It is difficult to reduce the search space and to make an initial matrix search in the region with concentrated solutions as possible as it can,aiming at reducing the backtracking times and search time. The search space is so big beyond imagination. Even with backtracking method, without appropriate law struc

您可能关注的文档

文档评论(0)

peili2018 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档