<https://github.com/vsnupoudel/Termpaper_Algorithm...
# repolling
Title: Empirical Complexity Analysis of In-Memory Sorting Algorithms for Large-Scale Numerical Data in Python Abstract: This study presents a data science–driven benchmarking framework to evaluate the real-world computational efficiency of five sorting algorithms implemented in Python. Using floating-point datasets ranging from 10 to 10.5 million records, we compare the runtime performance of three canonical algorithms—quicksort, mergesort, and heapsort—against the optimized built-in methods provided by NumPy and Python’s standard library. By systematically varying input permutations (random, ascending, descending) and employing rigorous timing methodologies, we quantify the hidden constant factors in asymptotic complexity. Our results reveal that while all algorithms conform to the theoretical O(nlog⁡n) _O_(_n_log_n_) bound, their empirical performance varies by up to 500×, with NumPy’s sort function outperforming pure implementations significantly on random data. Furthermore, we observe that data ordering significantly influences runtime in algorithm-specific ways, with Python’s
sorted
excelling on pre-sorted and reverse-sorted sequences. This work underscores the importance of empirical validation in algorithm selection for data-intensive applications and provides a reproducible pipeline for runtime analysis in modern data science workflows.