% get_Lmax() - compute maximum L needed to end up with all possible
% paths/costs at the end of the Viterbi algorithm.
%
function Lmax = get_Lmax()

global trans;
global Nsyms;

Lmax = prod([1, (size(trans,2)/sum(trans(:,1)))*ones(1,Nsyms-1)]);
