English

Lower Bound Techniques in the Comparison-Query Model and Inversion Minimization on Trees

Data Structures and Algorithms 2024-07-02 v2

Abstract

Given a rooted tree and a ranking of its leaves, what is the minimum number of inversions of the leaves that can be attained by ordering the tree? This variation of the problem of counting inversions in arrays originated in mathematical psychology, with the evaluation of the Mann--Whitney statistic for detecting differences between distributions as a special case. We study the complexity of the problem in the comparison-query model, used for problems like sorting and selection. For many types of trees with nn leaves, we establish lower bounds close to the strongest known in the model, namely the lower bound of log2(n!)\log_2(n!) for sorting nn items. We show: (a) log2((α(1α)n)!)O(logn)\log_2((\alpha(1-\alpha)n)!) - O(\log n) queries are needed whenever the tree has a subtree that contains a fraction α\alpha of the leaves. This implies a lower bound of log2((k(k+1)2n)!)O(logn)\log_2((\frac{k}{(k+1)^2}n)!) - O(\log n) for trees of degree kk. (b) log2(n!)O(logn)\log_2(n!) - O(\log n) queries are needed in case the tree is binary. (c) log2(n!)O(klogk)\log_2(n!) - O(k \log k) queries are needed for certain classes of trees of degree kk, including perfect trees with even kk. The lower bounds are obtained by developing two novel techniques for a generic problem Π\Pi in the comparison-query model and applying them to inversion minimization on trees. Both techniques can be described in terms of the Cayley graph of the symmetric group with adjacent-rank transpositions as the generating set. Consider the subgraph consisting of the edges between vertices with the same value under Π\Pi. We show that the size of any decision tree for Π\Pi must be at least: (i) the number of connected components of this subgraph, and (ii) the factorial of the average degree of the complementary subgraph, divided by nn. Lower bounds on query complexity then follow by taking the base-2 logarithm.

Keywords

Cite

@article{arxiv.2211.12441,
  title  = {Lower Bound Techniques in the Comparison-Query Model and Inversion Minimization on Trees},
  author = {Ivan Hu and Dieter van Melkebeek and Andrew Morgan},
  journal= {arXiv preprint arXiv:2211.12441},
  year   = {2024}
}

Comments

55 pages, 18 figures, conference version of paper appeared in the Proceedings of the 2023 ACM-SIAM Symposium on Discrete Algorithms

R2 v1 2026-06-28T06:36:38.114Z