Given a set of n real values, each with a positive weight, we wish to
find the subset of n - k values having maximum weighted average. This
is equivalent to the following form of parametric selection: given n o
bjects with values decreasing linearly with time, find the time at whi
ch the n - k maximum values add to zero. We show that these problems c
an be solved in time O(n) (independent of k). A generalization in whic
h weights are allowed to be negative is NP-complete. (C) 1997 Academic
Press.