Abstract:
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 objects with values decreasing linearly with time, find the time at which the n - k maximum values add to zero. We show that these problems can be solved in time O(n) (independent of k). A generalization in which weights are allowed to be negative is NP-complete. 1 Introduction A common policy in grading coursework allows students to drop a single homework score. The remaining scores are then combined in some kind of weighted average to determine the student's grade. The problem of performing such calculations automatically has an easy linear time solution: simply try each set of n - 1 scores. The average for each set can be computed in constant time from the sums of all scores and of all weights. Consider the generalization of this problem in which not one but two s...
Citations
|
174
|
Linear programming and convex hulls made easy
– Seidel
- 1990
|
|
138
|
A Characterization of the Minimum Cycle Mean of a Digraph
– Karp
- 1978
|
|
126
|
A subexponential bound for linear programming
– Matousek, Sharir, et al.
- 1992
|
|
49
|
Probabilistic recurrence relations
– Karp
- 1994
|
|
46
|
Finding minimum-cost circulations by canceling negative cycles
– Goldberg, Tarjan
- 1989
|
|
43
|
Helly-type theorems and generalized linear programming
– Amenta
- 1994
|
|
43
|
An optimal-time algorithm for slope selection
– Cole, Salowe, et al.
- 1989
|
|
34
|
A Las Vegas algorithm for linear programming when the dimension is small
– Clarkson
- 1988
|
|
33
|
A subexponential algorithm for abstract optimization problems
– Gärtner
- 1995
|
|
29
|
A randomized algorithm for slope selection
– Dillencourt, Mount, et al.
- 1992
|
|
29
|
Faster parametric shortest path and minimum-balance algorithms
– Young, Tarjan, et al.
- 1991
|
|
26
|
width, closest line pair, and parametric searching. Discrete Comput
– Diameter
- 1993
|
|
24
|
Parametric shortest path algorithms with an application to cyclic staffing
– Orlin
- 1981
|
|
24
|
Optimal slope selection via expanders
– Katz, Sharir
- 1993
|
|
20
|
Finding minimum cost to time ratio cycles with small integral transit times
– Orlin
- 1993
|
|
19
|
A strongly polynomial cut canceling algorithm for the submodular flow problem
– Iwata, McCormick, et al.
- 1998
|
|
17
|
Randomized optimal algorithm for slope selection
– Matouˇsek
- 1991
|
|
12
|
The centroid of points with approximate weights
– Bern, Eppstein, et al.
- 1995
|
|
11
|
Randomizing optimal geometric algorithms
– Shafer, Steiger
- 1993
|
|
10
|
Approximations and optimal geometric divide-and-conquer
– Matouˇsek
- 1995
|
|
4
|
A new scaling algorithm for the maximum mean cut problem. Algorithmica 11
– Iwano, Misono, et al.
- 1994
|
|
4
|
Tight bounds on the number of minimum-mean cycle cancellations and related results. Algorithmica 11
– Radzik, Goldberg
- 1994
|
|
1
|
Optimal slope selection via cuttings. 6th
– Brönnimann, Chazelle
- 1994
|