The quantum query complexity of approximating the median and related statistics [article]

Ashwin Nayak, Felix Wu
1998 arXiv   pre-print
Let X = (x_0,...,x_n-1) be a sequence of n numbers. For ϵ > 0, we say that x_i is an ϵ-approximate median if the number of elements strictly less than x_i, and the number of elements strictly greater than x_i are each less than (1+ϵ)n/2. We consider the quantum query complexity of computing an ϵ-approximate median, given the sequence X as an oracle. We prove a lower bound of Ω(1/ϵ,n) queries for any quantum algorithm that computes an ϵ-approximate median with any constant probability greater
more » ... n 1/2. We also show how an ϵ-approximate median may be computed with O(1/ϵ(1ϵ) (1/ϵ)) oracle queries, which represents an improvement over an earlier algorithm due to Grover. Thus, the lower bound we obtain is essentially optimal. The upper and the lower bound both hold in the comparison tree model as well. Our lower bound result is an application of the polynomial paradigm recently introduced to quantum complexity theory by Beals et al. The main ingredient in the proof is a polynomial degree lower bound for real multilinear polynomials that "approximate" symmetric partial boolean functions. The degree bound extends a result of Paturi and also immediately yields lower bounds for the problems of approximating the kth-smallest element, approximating the mean of a sequence of numbers, and that of approximately counting the number of ones of a boolean function. All bounds obtained come within polylogarithmic factors of the optimal (as we show by presenting algorithms where no such optimal or near optimal algorithms were known), thus demonstrating the power of the polynomial method.
arXiv:quant-ph/9804066v2 fatcat:sjur2nsdhjccbcdkgh6abaqd6e