analysis of algorithm running time 54670