previous up contents next
Left: Markov models Up: Lecture 7: hidden Markov Right: Lecture 8: Context free

The Viterbi Algorithm

The Viterbi algorithm can find the most likely sequence using on the order of T*N2 steps.

For fruit flies like flowers: on the order of 4*42 = 64 steps, a considerable saving on the naive approach

The Markov assumptions:

1.
probability of next state depends only on current state;
2.
probability of generating current output symbol depends only on current state.

Together, these assumptions mean that you don't need to enumerate all paths.

Sweep through network one word at a time recording the single best sequence ending in each state. For a good diagrammatic illustration of this process, see Chapter 7 of Allen.


---------------------------------------------------------

Gerald Gazdar, course web pages updated on Thursday 25 March 1999