posted on 1976-01-01, 00:00authored byMichael I. Shamos, Gideon Yuval
We employ elementary results from the theOr! of several complex variables to obtain a quadratic lower bound
on the complexity of computing the mean distance between points in the plane. This problem' has 2N inputs and a
single output and we show that exactly N(N-l)/2 square roots must be computed by any program over +, -, x, f,
square root, log and comparisons, even allowing an arbitrary field of constants. The argument is based on counting the
total number of sheets of the Riemann surface of the analytic continuation to the complex domain of the (real)
function computed by any algorithm which solves the problem. While finding an exact answer requires O(N2) operations,
we show that an e-approximate solution can be obtained in O(N) time for any E > 0 , even if no square
roots are permitted.