Wall-L merge sort: A tunable and adaptive sorting algorithm for diverse computing environments

M Mohammad Abdur Rob M Md. Zakir Hossen M Md. Kamal Hossen M Md. Mithun Ali B Bhaskor Roy

Abstract

Sorting algorithms play a crucial role in computing, but most are designed with rigid structure that are only efficient under certain conditions. Although some sorting algorithms perform well in some circumstances, they do not perform well on some resistant platforms. This study introduces Wall-L Merge Sort, which combines quadratic sorting with a modifiable multi-layer merging approach. By setting a single parameter, L , which determines the number of merge layers, Wall-L Sort shows a transition in the time complexity from O ( n 2 ) to O ( n log n ) without any modification in the unique idea. This degree of freedom enables a broad variety of input sizes to be encompassed and expands to several constraint platforms. The results show that Wall-L Sort and K-way Merge Sort have the built-in ability to handle different situations where other algorithms fail without assistance functions. Wall-L Merge Sort is the only sorting algorithm that combines complexity tuning, cache efficiency, recursion depth control, parallelism, and broad adaptability into one framework. It may not be the best choice for every situation, but its flexibility makes it a good fit for many different platforms, from small embedded systems to big computing systems. The theoretical and empirical evidence in this paper substantiates these advantages.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 2
Published February 02, 2026
Pages e0341993
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (5)

M

Mohammad Abdur Rob

M

Md. Zakir Hossen

M

Md. Kamal Hossen

M

Md. Mithun Ali

B

Bhaskor Roy