PCF Learned Sort: A Learning Augmented Sort Algorithm with $\mathcal{O}(n \log\log N)$ Expected Complexity
Abstract
Sorting is one of the most fundamental algorithms in computer science. Recently, Learned Sorts, which use machine learning to improve sorting speed, have attracted attention. While existing studies show that Learned Sort is empirically faster than classical sorting algorithms, they do not provide theoretical guarantees about its computational complexity. We propose Piecewise Constant Function (PCF) Learned Sort, a theoretically guaranteed Learned Sort algorithm. We prove that the expected complexity of PCF Learned Sort is $\mathcal{O}(n \log \log n)$ under mild assumptions on the data distribution. We also confirm empirically that PCF Learned Sort has a computational complexity of $\mathcal{O}(n \log \log n)$ on both synthetic and real datasets. This is the first study to theoretically support the empirical success of Learned Sort, and provides evidence for why Learned Sort is fast.
Cite
Text
Sato and Matsui. "PCF Learned Sort: A Learning Augmented Sort Algorithm with $\mathcal{O}(n \log\log N)$ Expected Complexity." Transactions on Machine Learning Research, 2025.Markdown
[Sato and Matsui. "PCF Learned Sort: A Learning Augmented Sort Algorithm with $\mathcal{O}(n \log\log N)$ Expected Complexity." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/sato2025tmlr-pcf/)BibTeX
@article{sato2025tmlr-pcf,
title = {{PCF Learned Sort: A Learning Augmented Sort Algorithm with $\mathcal{O}(n \log\log N)$ Expected Complexity}},
author = {Sato, Atsuki and Matsui, Yusuke},
journal = {Transactions on Machine Learning Research},
year = {2025},
url = {https://mlanthology.org/tmlr/2025/sato2025tmlr-pcf/}
}