 It cannot, however, be used to find the most likely sequence of states (see Viterbi algorithm).The following description will use matrices of probability values rather than probability distributions, although in general the forward-backward algorithm can be applied to continuous as well as discrete probability models.We transform the probability distributions related to a given hidden Markov model into matrix notation as follows.