Dijkstra’s algorithm vs Viterbi algorithm Viterbi and Dijkstra’s algorithm seems to be used in different contexts: