# 最大似然译码详解（最大似然解码，Maximum Likelihood Decoding）

【例子】假设编码函数 $e:B^3\to B^6$ 定义为： $$\begin{array}{l} e(000)=000000 \ e(001)=001100 \ e(010)=010011 \ e(011)=011111 \ e(100)=100101 \ e(101)=101001 \ e(110)=110110 \ e(111)=111010 \end{array}$$ 求最大似然译码表，并对 100000 和 101010 进行译码。

【分析与解答】

### 写译码表

$000000$ $001100$ $010011$ $011111$ $100101$ $101001$ $110110$ $111010$

$000000$ $001100$ $010011$ $011111$ $100101$ $101001$ $110110$ $111010$
$000001$

$000000$ $\color{red}001100$ $010011$ $011111$ $100101$ $101001$ $110110$ $111010$
$\color{red}000001$ $\color{blue}001101$

$000000$ $001100$ $010011$ $011111$ $100101$ $101001$ $110110$ $111010$
$000001$ $001101$ $010010$ $011110$ $100100$ $101000$ $101111$ $111011$

$000000$ $\color{red}001100$ $010011$ $011111$ $100101$ $101001$ $110110$ $111010$
$000001$ $001101$ $010010$ $011110$ $100100$ $101000$ $101111$ $111011$
$\color{red}000010$ $\color{blue}001110$

### 译码示范

$$\begin{array}{llllllll}\color{blue}000000 & 001100 & 010011 & 011111 & 100101 & 101001 & 110110 & 111010 \ 000001 & 001101 & 010010 & 011110 & 100100 & 101000 & 110111 & 111011 \ 000010 & 001110 & 010001 & 011101 & 100111 & 101011 & 110100 & 111000 \ 000100 & 001000 & 010111 & 011011 & 100001 & 101101 & 110010 & 111110 \ 010000 & 011100 & 000011 & 001111 & 110101 & 111001 & 100110 & 101010 \ \color{red}{100000} & 101100 & 110011 & 111111 & {000101} & 001001 & 010110 & 011010 \ 000110 & 001010 & {010101} & 011001 & 100011 & 101111 & 110000 & 111100 \ 010100 & 011000 & 000111 & 001011 & 110001 & 111101 & 100010 & 101110\end{array}$$

$$\begin{array}{llllllll}000000 & 001100 & 010011 & 011111 & 100101 & 101001 & 110110 & \color{blue}111010 \ 000001 & 001101 & 010010 & 011110 & 100100 & 101000 & 110111 & 111011 \ 000010 & 001110 & 010001 & 011101 & 100111 & 101011 & 110100 & 111000 \ 000100 & 001000 & 010111 & 011011 & 100001 & 101101 & 110010 & 111110 \ 010000 & 011100 & 000011 & 001111 & 110101 & 111001 & 100110 & \color{red}101010 \ 100000 & 101100 & 110011 & 111111 & {000101} & 001001 & 010110 & 011010 \ 000110 & 001010 & {010101} & 011001 & 100011 & 101111 & 110000 & 111100 \ 010100 & 011000 & 000111 & 001011 & 110001 & 111101 & 100010 & 101110\end{array}$$