AI / NLP Viterbi algorithm for HMM September 8, 2019January 21, 2020 The Viterbi algorithm (using the maximum likelihood decoding (MLD) algorithm) is a dynamic programming algorithm for finding the most likely sequence of hidden states – called the Viterbi path in hidden Markov models (HMM)