Update of weights for tau-heuristics.