Kruskal-EDS: Edge Dynamic Stratification
Abstract
We introduce \textbf{Kruskal-EDS} (\emph{Edge Dynamic Stratification}), a distribution-adaptive variant of Kruskal's minimum spanning tree (MST) algorithm that replaces the mandatory global sort with a three-phase procedure inspired by Birkhoff's ergodic theorem. In Phase 1, a sample of edges estimates the weight distribution in time. In Phase 2, all edges are assigned to strata in time via binary search on quantile boundaries -- no global sort. In Phase 3, strata are sorted and processed in order; execution halts as soon as MST edges are accepted. We prove an effective complexity of , where is the number of strata actually processed. On sparse graphs or heavy-tailed weight distributions, and the algorithm achieves near- behaviour. We further derive the optimal strata count , balancing partition overhead against intra-stratum sort cost. An extensive benchmark on 14 graph families demonstrates correctness on 12 test cases and practical speedups reaching in wall-clock time and in sort operations over standard Kruskal. A 3-dimensional TikZ visualisation of the complexity landscape illustrates the algorithm's adaptive behaviour as a function of graph density and weight distribution skewness.
Keywords
Cite
@article{arxiv.2603.02006,
title = {Kruskal-EDS: Edge Dynamic Stratification},
author = {Yves Mercadier},
journal= {arXiv preprint arXiv:2603.02006},
year = {2026}
}