Greedy drop algorithm.