Misplaced Pages

Sequential decoding

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Fano algorithm)

Recognised by John Wozencraft, sequential decoding is a limited memory technique for decoding tree codes. Sequential decoding is mainly used as an approximate decoding algorithm for long constraint-length convolutional codes. This approach may not be as accurate as the Viterbi algorithm but can save a substantial amount of computer memory. It was used to decode a convolutional code in 1968 Pioneer 9 mission.

Sequential decoding explores the tree code in such a way to try to minimise the computational cost and memory requirements to store the tree.

There is a range of sequential decoding approaches based on the choice of metric and algorithm. Metrics include:

  • Fano metric
  • Zigangirov metric
  • Gallager metric

Algorithms include:

  • Stack algorithm
  • Fano algorithm
  • Creeper algorithm

Fano metric

Given a partially explored tree (represented by a set of nodes which are limit of exploration), we would like to know the best node from which to explore further. The Fano metric (named after Robert Fano) allows one to calculate from which is the best node to explore further. This metric is optimal given no other constraints (e.g. memory).

For a binary symmetric channel (with error probability p {\displaystyle p} ) the Fano metric can be derived via Bayes theorem. We are interested in following the most likely path P i {\displaystyle P_{i}} given an explored state of the tree X {\displaystyle X} and a received sequence r {\displaystyle {\mathbf {r} }} . Using the language of probability and Bayes theorem we want to choose the maximum over i {\displaystyle i} of:

Pr ( P i | X , r ) Pr ( r | P i , X ) Pr ( P i | X ) {\displaystyle \Pr(P_{i}|X,{\mathbf {r} })\propto \Pr({\mathbf {r} }|P_{i},X)\Pr(P_{i}|X)}

We now introduce the following notation:

  • N {\displaystyle N} to represent the maximum length of transmission in branches
  • b {\displaystyle b} to represent the number of bits on a branch of the code (the denominator of the code rate, R {\displaystyle R} ).
  • d i {\displaystyle d_{i}} to represent the number of bit errors on path P i {\displaystyle P_{i}} (the Hamming distance between the branch labels and the received sequence)
  • n i {\displaystyle n_{i}} to be the length of P i {\displaystyle P_{i}} in branches.

We express the likelihood Pr ( r | P i , X ) {\displaystyle \Pr({\mathbf {r} }|P_{i},X)} as p d i ( 1 p ) n i b d i 2 ( N n i ) b {\displaystyle p^{d_{i}}(1-p)^{n_{i}b-d_{i}}2^{-(N-n_{i})b}} (by using the binary symmetric channel likelihood for the first n i b {\displaystyle n_{i}b} bits followed by a uniform prior over the remaining bits).

We express the prior Pr ( P i | X ) {\displaystyle \Pr(P_{i}|X)} in terms of the number of branch choices one has made, n i {\displaystyle n_{i}} , and the number of branches from each node, 2 R b {\displaystyle 2^{Rb}} .

Therefore:

Pr ( P i | X , r ) p d i ( 1 p ) n i b d i 2 ( N n i ) b 2 n i R b p d i ( 1 p ) n i b d i 2 n i b 2 n i R b {\displaystyle {\begin{aligned}\Pr(P_{i}|X,{\mathbf {r} })&\propto p^{d_{i}}(1-p)^{n_{i}b-d_{i}}2^{-(N-n_{i})b}2^{-n_{i}Rb}\\&\propto p^{d_{i}}(1-p)^{n_{i}b-d_{i}}2^{n_{i}b}2^{-n_{i}Rb}\end{aligned}}}

We can equivalently maximise the log of this probability, i.e.

d i log 2 p + ( n i b d i ) log 2 ( 1 p ) + n i b n i R b = d i ( log 2 p + 1 R ) + ( n i b d i ) ( log 2 ( 1 p ) + 1 R ) {\displaystyle {\begin{aligned}&d_{i}\log _{2}p+(n_{i}b-d_{i})\log _{2}(1-p)+n_{i}b-n_{i}Rb\\=&d_{i}(\log _{2}p+1-R)+(n_{i}b-d_{i})(\log _{2}(1-p)+1-R)\end{aligned}}}

This last expression is the Fano metric. The important point to see is that we have two terms here: one based on the number of wrong bits and one based on the number of right bits. We can therefore update the Fano metric simply by adding log 2 p + 1 R {\displaystyle \log _{2}p+1-R} for each non-matching bit and log 2 ( 1 p ) + 1 R {\displaystyle \log _{2}(1-p)+1-R} for each matching bit.

Computational cutoff rate

For sequential decoding to be a good choice of decoding algorithm, the number of states explored should remain small (otherwise an algorithm which deliberately explores all states, e.g. the Viterbi algorithm, may be more suitable). For a particular noise level there is a maximum coding rate R 0 {\displaystyle R_{0}} called the computational cutoff rate where there is a finite backtracking limit. For the binary symmetric channel:

R 0 = 1 log 2 ( 1 + 2 p ( 1 p ) ) {\displaystyle R_{0}=1-\log _{2}(1+2{\sqrt {p(1-p)}})}

Algorithms

Stack algorithm

The simplest algorithm to describe is the "stack algorithm" in which the best N {\displaystyle N} paths found so far are stored. Sequential decoding may introduce an additional error above Viterbi decoding when the correct path has N {\displaystyle N} or more highly scoring paths above it; at this point the best path will drop off the stack and be no longer considered.

Fano algorithm

The famous Fano algorithm (named after Robert Fano) has a very low memory requirement and hence is suited to hardware implementations. This algorithm explores backwards and forward from a single point on the tree.

  1. The Fano algorithm is a sequential decoding algorithm that does not require a stack.
  2. The Fano algorithm can only operate over a code tree because it cannot examine path merging.
  3. At each decoding stage, the Fano algorithm retains the information regarding three paths: the current path, its immediate predecessor path, and one of its successor paths.
  4. Based on this information, the Fano algorithm can move from the current path to either its immediate predecessor path or the selected successor path; hence, no stack is required for queuing all examined paths.
  5. The movement of the Fano algorithm is guided by a dynamic threshold T that is an integer multiple of a fixed step size Δ.
  6. Only the path whose path metric is no less than T can be next visited. According to the algorithm, the process of codeword search continues to move forward along a code path, as long as the Fano metric along the code path remains non-decreasing.
  7. Once all the successor path metrics are smaller than T, the algorithm moves backward to the predecessor path if the predecessor path metric beats T; thereafter, threshold examination will be subsequently performed on another successor path of this revisited predecessor.
  8. In case the predecessor path metric is also less than T, the threshold T is one-step lowered so that the algorithm is not trapped on the current path.
  9. For the Fano algorithm, if a path is revisited, the presently examined dynamic threshold is always lower than the momentary dynamic threshold at the previous visit, guaranteeing that looping in the algorithm does not occur, and that the algorithm can ultimately reach a terminal node of the code tree, and stop.

References

External links

  • "Correction trees" - simulator of correction process using priority queue to choose maximum metric node (called weight)
Category: