In the context of big data, efficient sorting of massive datasets is essential for optimal performance in data-intensive applications such as database management, data analytics and scientific computing. This paper proposes a parallelized hybrid sorting algorithm for optimizing the efficiency of sorting large-scale data by integrating Quick Sort and Insertion Sort. The hybrid approach utilizes the speed of Quick Sort with larger data partitions and applies Insertion Sort for efficiency on smaller, nearly sorted subarrays. To further improve the performance, two parallelization implementations using MPI and CUDA are carried out. The approaches that use MPI make use of distributed memory across multiple processes, which makes use of k-Way merge using Min-Heap at the root for efficient consolidation. In contrast, CUDA-based implementations utilize GPU parallelism, in which threads are independently handling data segments and the final merge is done by using k-Way merge using Min-Heap. Time of computation and algorithm efficiency are measured for each method on large datasets. Comparison between sequential, MPI and CUDA executions show substantial performance improvements. For smaller datasets, such as 1000 elements, MPI results in an improvement of up to 141 times compared to sequential execution, while a speedup of up to 428 times is observed for larger datasets of 4 million elements with CUDA. The drastic improvement in performance noticed with the use of CUDA highlights the benefits of employing modern parallel and GPU-based methods to reduce computation time and enhance resource utilization.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Parallelized Hybrid Sorting Using Quick and Insertion Sort for Big Data

  • Maithri Bairy,
  • Prajna Pai,
  • N. Gopalakrishna Kini,
  • K. Jyothi Upadhya

摘要

In the context of big data, efficient sorting of massive datasets is essential for optimal performance in data-intensive applications such as database management, data analytics and scientific computing. This paper proposes a parallelized hybrid sorting algorithm for optimizing the efficiency of sorting large-scale data by integrating Quick Sort and Insertion Sort. The hybrid approach utilizes the speed of Quick Sort with larger data partitions and applies Insertion Sort for efficiency on smaller, nearly sorted subarrays. To further improve the performance, two parallelization implementations using MPI and CUDA are carried out. The approaches that use MPI make use of distributed memory across multiple processes, which makes use of k-Way merge using Min-Heap at the root for efficient consolidation. In contrast, CUDA-based implementations utilize GPU parallelism, in which threads are independently handling data segments and the final merge is done by using k-Way merge using Min-Heap. Time of computation and algorithm efficiency are measured for each method on large datasets. Comparison between sequential, MPI and CUDA executions show substantial performance improvements. For smaller datasets, such as 1000 elements, MPI results in an improvement of up to 141 times compared to sequential execution, while a speedup of up to 428 times is observed for larger datasets of 4 million elements with CUDA. The drastic improvement in performance noticed with the use of CUDA highlights the benefits of employing modern parallel and GPU-based methods to reduce computation time and enhance resource utilization.