Title: On the first occurence of a given pattern in a semi-Markov process