average-behavior of algorithm