- Formal definition of time complexity
- The time used in the computation of a DTM program \(M\) on an input \(x\) is the number of steps occurring on that computation up until a halt state is entered
- For a DTM program \(M\) that halts for all inputs \(x \in \Sigma^*\), its time complexity function \(T_M(n) : Z^+ \rightarrow Z^+\) is given by
\(\begin{aligned} T_M(n) = {} & \text{max} \lbrace m : \mbox{there is an } x \in \Sigma^* \mbox{, } \mbox{with } |x|=n \mbox{, such that}\\ & \mbox{the computation of } M \mbox{ on input } x \mbox{ takes time } m \rbrace \end{aligned}\)