Faster Linear-Space Data Structures for Path Frequency Queries
arXiv:2604.18667v1 Announce Type: new Abstract: We present linear-space data structures for several frequency queries on trees, namely: path mode, path least frequent element, and path $alpha$-minority queries. We present the first linear-space data structures, requiring $O(n sqrt{nw})$ preprocessing time, that can answer path mode and path least frequent element queries in $O(sqrt{n/w})$ time. This improves upon the best previously known bound of $O(loglog n sqrt{n/w})$ achieved by Durocher et al. in 2016. For the path $alpha$-minority problem, where […]