Update time complexity analysis.