Research Article

Optimization Implementation and Performance Analysis of Divide-and-Conquer Algorithm Based on Python in Big Data Sorting and Retrieval

Yixuan Zheng*
Computer science, Newcastle university, Newcastle upon Tyne, England

* Corresponding author: [email protected]

Abstract

This paper offers an in-depth look at divide-and-conquer algorithms, especially in big data sorting and retrieval, with a particular focus on how these techniques are implemented in Python. As data sizes grow and become more complex, having scalable algorithms that are both efficient and flexible is more important than ever. Divide-and-conquer approaches are naturally suited for this task because they break down problems into smaller parts, making it easier to run tasks in parallel or across distributed systems—something that's incredibly useful in big data projects. In our review, we explore recent Python implementations of popular sorting algorithms like merge sort and quicksort. We compare how they perform when using multiprocessing or hybrid methods. While Python makes development straightforward and flexible, it also comes with some challenges—things like the Global Interpreter Lock (GIL), recursion limits, and the overhead of managing inter-process communication can impact performance. Our findings indicate that merge sort tends to perform better than quicksort when it comes to using Python’s parallel processing capabilities. Besides, tools like PySpark or Dask can help overcome certain language-specific obstacles, making large-scale data processing more manageable. Overall, this review provides practical guidance for researchers and engineers aiming to strike a good balance between algorithm design and efficient implementation in systems that handle massive amounts of data.

Keywords: Divide-and-conquer; Python; Big data; Sorting algorithms; Parallel computing; Performance optimization
Published: July 24, 2025
DOI: 10.54254/2755-2721/2025.PO25411
Volume: ACE Vol.178
pp. 40-46
Download PDF

References

  1. M.-L. Song, R. Fisher, J.-L. Wang, and L.-B. Cui, ‘Environmental performance evaluation with big data: theories and methods’, Ann. Oper. Res., vol. 270, no. 1, Art. no. 1, Nov. 2018, doi: 10.1007/s10479-016-2158-8.
  2. E. Shaikh, I. Mohiuddin, Y. Alufaisan, and I. Nahvi, ‘Apache Spark: A Big Data Processing Engine’, in 2019 2nd IEEE Middle East and North Africa COMMunications Conference (MENACOMM), Nov. 2019, pp. 1–6. doi: 10.1109/MENACOMM46666.2019.8988541.
  3. Zikri, ‘Performance Analysis of Sorting Algorithms in Big Data Environments: Efficiency, Scalability, and Practical Applications | Idea: Future Research’. Accessed: May 15, 2025. [Online]. Available: https: //idea.ristek.or.id/index.php/idea/article/view/8
  4. X. Chen, J. Q. Cheng, and M. Xie, ‘Divide-and-conquer methods for big data analysis’, Feb. 22, 2021, arXiv: arXiv: 2102.10771. doi: 10.48550/arXiv.2102.10771.
  5. A. Yang, ‘Approaches to the Parallelization of Merge Sort in Python’, Nov. 26, 2022, arXiv: arXiv: 2211.16479. doi: 10.48550/arXiv.2211.16479.
  6. O. K. Durrani and S. AbdulHayan, ‘Performance Measurement of Popular Sorting Algorithms Implemented using Java and Python’, in 2022 International Conference on Electrical, Computer, Communications and Mechatronics Engineering (ICECCME), Nov. 2022, pp. 1–6. doi: 10.1109/ICECCME55909.2022.9988424.
  7. J. L. Bentley, ‘Multidimensional divide-and-conquer’, Commun ACM, vol. 23, no. 4, Art. no. 4, Apr. 1980, doi: 10.1145/358841.358850.
  8. Horowitz and Zorat, ‘Divide-and-Conquer for Parallel Processing’, IEEE Trans. Comput., vol. C–32, no. 6, Art. no. 6, Jun. 1983, doi: 10.1109/TC.1983.1676280.