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

置换算法性能的比较研究

A Comparative Study on the Performance of Permutation Algorithms

Youssef Bassil

摘要:

排列是可以对给定数量的事物进行的不同排列,每次取其中的一些或全部。符号P(n,r)用来表示n个事物在r次所取的排列数。置换被用于数学、群论、统计学和计算等各个领域,用于解决一些组合问题,如作业分配问题和旅行推销员问题。实际上,置换算法已经被研究和实验了很多年。Bottom-Up,Lexicography和Johnson-Trotter是过去几十年中出现的三种最流行的置换算法。在本文中,我们实现了三个最杰出的置换算法,它们分别是:自底向上,字典法,和约翰逊-特罗特算法。每个算法的实现将使用两种不同的方法进行:蛮力和分而治之。将使用计算机模拟工具测试算法代码,以测量和评估不同实现之间的执行时间。

英文摘要:

Permutation is the different arrangements that can be made with a given number of things taking some or all of them at a time. The notation P(n,r) is used to denote the number of permutations of n things taken r at a time. Permutation is used in various fields such as mathematics, group theory, statistics, and computing, to solve several combinatorial problems such as the job assignment problem and the traveling salesman problem. In effect, permutation algorithms have been studied and experimented for many years now. Bottom-Up, Lexicography, and Johnson-Trotter are three of the most popular permutation algorithms that emerged during the past decades. In this paper, we are implementing three of the most eminent permutation algorithms, they are respectively: Bottom-Up, Lexicography, and Johnson-Trotter algorithms. The implementation of each algorithm will be carried out using two different approaches: brute-force and divide and conquer. The algorithms codes will be tested using a computer simulation tool to measure and evaluate the execution time between the different implementations.

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

↑