Compute the worst-case asymptotic complexity of an algorithm in terms of its input size n, and express it in Big-O notation. Compute an appropriate Big-O estimate for a given function T(n). Discuss the pros and cons of using best-, worst-, and average-case analysis, when determining the complexity of an algorithm.