I would like to know if there is a turing machine which can do the following:
It takes as input a turing machine T and integer n:
return true if the turing machine halts before time n and false otherwise.
Clearly such a TM (turning machine) exists. Take the TM that simply runs T for n steps, then if it has halted return true and return false otherwise, however what I would like to know is if there exists a TM that can do better than this. I'm not sure how to formalize this question exactly. so hopefully it is clear what I am asking. Thanks