Questions: Viterbi Algorithm

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

With N=10 states and T=100 time steps, brute-force enumeration of all state sequences requires examining 10^100 candidates. Why does Viterbi reduce this to O(T × N²)?

AViterbi prunes low-probability transitions early, skipping most candidates without evaluating them
BMost state transitions have zero probability in real HMMs, so the effective search space is much smaller
CThe most likely path ending in any state at time t depends only on the best path reaching each predecessor at t−1; keeping one optimal partial path per state eliminates the need to track all paths
DHMMs have at most N² possible transitions, which directly caps the number of paths to evaluate
Question 2 Multiple Choice

After running Viterbi on an observation sequence, what is the purpose of the backpointer table stored during the algorithm?

ATo record the emission probabilities at each time step, so results can be verified against the original HMM
BTo store probabilities for every possible state sequence, enabling comparison with alternative paths
CTo record, at each time step and state, which predecessor state achieved the maximum probability — enabling reconstruction of the optimal path by tracing backward from the final state
DTo allow the algorithm to restart if the most likely final state has probability zero
Question 3 True / False

The Viterbi algorithm finds the single most likely state sequence given the observations — it does not compute the probability of a particular observation sequence.

TTrue
FFalse
Question 4 True / False

Viterbi is very likely to find the globally optimal state sequence because it carefully evaluates most N^T possible paths before selecting the best one.

TTrue
FFalse
Question 5 Short Answer

Explain why the Viterbi algorithm can be viewed as finding the highest-probability path through a trellis graph, and what the nodes and edges of that graph represent.

Think about your answer, then reveal below.