Generalized folding-algorithm for sojourn time analysis of finite qbd processes and its queueing applications · Study