Considering that we have a sequence of observed states $\{y_1, y_2, \dots, y_T \}$ of length $T$.
We want to generate a path $\{x_1, x_2, \dots, x_T\}$, which is a sequence of states $x_n \in S = \{s_1, s_2, \dots, s_K\}$, that is, each $x_i$ can assume $K$ different values.
One lazy solution would be to evaluate the probability of each sequence and keep the one with the highest likelihood. This would require us to evaluate the probability of $K^N$ different sequences.
What if we use the Viterbi Algorithm? Given that it eliminates sequences along the way, how many different sequences we would be evaluating?