Comparative Analysis of OpenMP and MPI Parallel Computing Implementations in Team Sort Algorithm

  • Eko Dwi Nugroho Institut Teknologi Sumatera http://orcid.org/0000-0002-3935-520X
  • Ilham Firman Ashari Institut Teknologi Sumatera
  • Muhammad Nashrullah Institut Teknologi Sumatera
  • Muhammad Habib Algifari Institut Teknologi Sumatera
  • Miranti Verdiana Institut Teknologi Sumatera
Keywords: MPI, OpenMP, Parallel Computation, Parallelization, Team Sort Algorithm

Abstract

Tim Sort is a sorting algorithm that combines Merge Sort and Binary Insertion Sort sorting algorithms. Parallel computing is a computational processing technique in parallel or is divided into several parts and carried out simultaneously. The application of parallel computing to algorithms is called parallelization. The purpose of parallelization is to reduce computational processing time, but not all parallelization can reduce computational processing time. Our research aims to analyse the effect of implementing parallel computing on the processing time of the Tim Sort algorithm. The Team Sort algorithm will be parallelized by dividing the flow or data into several parts, then each sorting and recombining them. The libraries we use are OpenMP and MPI, and tests are carried out using up to 16 core processors and data up to 4194304 numbers. The goal to be achieved by comparing the application of OpenMP and MPI to the Team Sort algorithm is to find out and choose which library is better for the case study, so that when there is a similar case, it can be used as a reference for using the library in solving the problem. The results of research for testing using 16 processor cores and the data used prove that the parallelization of the Sort Team algorithm using OpenMP is better with a speed increase of up to 8.48 times, compared to using MPI with a speed increase of 8.4 times. In addition, the increase in speed and efficiency increases as the amount of data increases. However, the increase in efficiency that is obtained by increasing the processor cores decreases.

Downloads

Download data is not yet available.

References

D. Maitra, Beginner's Guide to Code Algorithms, Boca Raton: CRC Press, 2022.

T. H. Cormen, C. E. Leiserson, R. L. Rivest and C. Stein, Introduction to Algorithms, Fourth Edition, London: MIT Press, 2022.

S. S. Skiena, The Algorithm Design Manual, New York: Springer, 2020.

D. Eddelbuettel, “Parallel Computing With R: A Brief Review,” WIREs Comput Stat, vol. 13, no. 2, p. e1515, 2021.

I. N. A. Yudiswara and A. Suganda.

F. R. Lumbanraja, A. and N. R. Muttaqina, “Analisa Komputasi Paralel Mengurutan Data Dengan Metode Radix Dan Selection,” Jurnal Komputasi, vol. 8, no. 2, pp. 77-93, 2020.

J. L. Hennessy and D. A. Patterson, Computer Architecture: A Quantitative Approach, Cambridge: Morgan Kaufmann, 2019.

V. D. Thoke, “THEORY OF DISTRIBUTED COMPUTING AND PARALLEL PROCESSING WITH ITS APPLICATIONS, ADVANTAGES AND DISADVANTAGES,” in nternational Conference on Innovative Minds, Vita, 2015.

W. Tang, W. Feng, J. Deng, M. Jia and H. Zui, “Parallel Computing for Geocomputational Modeling,” in GeoComputational Analysis and Modeling of Regional Systems, New York, Springer, Cham, 2018, pp. 37-54.

P. Czarnul, Parallel Programming for Modern High Performance Computing Systems, Boca Raton: CRC Press, 2018.

E. D. Nugroho, M. E. Wibowo and R. Pulungan, “Parallel Implementation of Genetic Algorithm for Searching Optimal Parameters of Artificial Neural Networks,” in International Conference on Science and Technology-Computer, Yogyakarta, 2017.

P. S. Pacheco and M. Malensek, An Introduction to Parallel Programming, Massachusetts: Morgan Kaufmann, 2022.

R. Trobec, B. Slivnik, P. Bulić and B. Robič, Introduction to Parallel Computing From Algorithms to Programming on State-of-the-Art Platforms, New York: Springer, Champ, 2018.

V. Kasilov, P. Drobintsev and N. Voinov, “High-performance genome sorting program,” in International Young Scientists Conference on Computational Science, St. Petersburg, 2021.

M. R. Hanafi, M. A. Faadhilah, D. Pradeka and M. T. Dwi Putra, “Comparison Analysis of Bubble Sort Algorithm with Tim Sort Algorithm Sorting Against the Amount of Data,” Journal of Computer Engineering, Electronics and Information Technology, vol. 1, no. 1, pp. 9-13, 2022.

N. Auger, V. Juge, C. Nicaud and C. Pivoteau, “On the Worst-Case Complexity of TimSort,” in Leibniz International Proceedings in Informatics, Wadern, 2018.

P. Ganapathi and R. Chowdhury, “Parallel Divide-and-Conquer Algorithms for Bubble Sort, Selection Sort and Insertion Sort,” The British Computer Society, vol. 00, no. 0, pp. 1-11, 2021.

Published
2023-11-29
How to Cite
[1]
E. Nugroho, I. Ashari, M. Nashrullah, M. Algifari, and M. Verdiana, “Comparative Analysis of OpenMP and MPI Parallel Computing Implementations in Team Sort Algorithm”, JAIC, vol. 7, no. 2, pp. 141-149, Nov. 2023.
Section
Articles

Most read articles by the same author(s)