A version of the heuristic with a speedup parameter.