I'm using the book Data Structures: Algorithms, Complexity Analysis, and Implementations in JAVA and C / C ++ as it helps with practical examples of implementation.
In chapter 1 have the following excerpt that left me in doubt
The execution time of an algorithm will be represented by a cost function T, where T (n) is the measure of the time needed to execute an algorithm for a problem of size n. Therefore, T is called the complexity function of the algorithm. If T (n) is the measure of memory required to execute the algorithm, then T is called ' space complexity function '. According to Ziviani (2004), it is important to emphasize that T (n) does not directly represent the execution time, but the number of times a certain relevant operation is performed.
Why does the author refer to T in two different ways? it was difficult to understand this variation, is there any context in which another expression should be used?