[Paper Review] A Comparative Study on the Performance of Permutation Algorithms
This paper evaluates the performance of three prominent permutation algorithms—Bottom-Up, Lexicographic, and Johnson-Trotter—using both brute-force and divide-and-conquer implementations. Through computer simulation, it measures execution time and finds that the divide-and-conquer approach significantly reduces runtime across all algorithms, with Johnson-Trotter showing the most consistent improvement due to its efficient incremental generation strategy.
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.
Motivation & Objective
- To evaluate and compare the execution time performance of three major permutation generation algorithms: Bottom-Up, Lexicographic, and Johnson-Trotter.
- To assess the impact of algorithmic design—specifically brute-force versus divide-and-conquer—on runtime efficiency.
- To provide empirical evidence on which algorithm and implementation strategy offer optimal performance for combinatorial applications.
- To contribute to the understanding of practical efficiency in permutation generation for computational applications in computer science and discrete mathematics.
Proposed method
- Implementing each of the three permutation algorithms (Bottom-Up, Lexicographic, Johnson-Trotter) using both brute-force and divide-and-conquer approaches.
- Using a computer simulation tool to measure and compare execution times across different input sizes.
- Generating permutations systematically: Bottom-Up by building permutations iteratively, Lexicographic by sorting and incrementing, and Johnson-Trotter by swapping adjacent elements with specific rules.
- Applying divide-and-conquer by recursively dividing the problem into smaller subproblems and combining results to reduce time complexity.
- Using the same test environment and input sets to ensure fair comparison across implementations.
- Evaluating performance based on execution time metrics collected during simulation runs.
Experimental results
Research questions
- RQ1How do the execution times of Bottom-Up, Lexicographic, and Johnson-Trotter permutation algorithms compare under brute-force implementation?
- RQ2What performance improvement does the divide-and-conquer approach offer over brute-force for each of the three algorithms?
- RQ3Which algorithm demonstrates the most significant runtime reduction when using divide-and-conquer?
- RQ4Does the choice of algorithm implementation strategy (brute-force vs. divide-and-conquer) have a statistically significant impact on execution time?
- RQ5Which algorithm maintains the most consistent performance across varying input sizes when optimized with divide-and-conquer?
Key findings
- The divide-and-conquer approach significantly reduces execution time compared to brute-force for all three algorithms, indicating a strong performance advantage.
- Johnson-Trotter algorithm showed the most consistent improvement with divide-and-conquer, achieving the lowest execution times among all implementations.
- Lexicographic algorithm performed well in brute-force mode but saw a moderate performance gain with divide-and-conquer, suggesting inherent structural limitations.
- Bottom-Up algorithm had higher baseline execution time in brute-force mode but benefited substantially from divide-and-conquer, approaching Johnson-Trotter’s efficiency.
- The performance gap between brute-force and divide-and-conquer implementations widened with increasing input size, highlighting scalability benefits of the latter.
- Overall, Johnson-Trotter with divide-and-conquer emerged as the most efficient permutation generation method in terms of execution time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.