text1: How is the time needed to obtain the solution to a problem calculated?
text2: Thus the time required to solve a problem (or the space required, or any measure of complexity) is calculated as a function of the size of the instance.