Majority logic decoding
Majority logic decoding is a method to decode Repetition codes, based on assumption that the largest occurance of a symbol, was transmitted message. It bases the decision on the frequency of occurance of any symbol in the given received code vector.
Theory
If we have a binary alphabet made of respectively, then we use repetition code, we have the input bit mapped to the codeword as a string of duplicated input bits. Failed to parse (unknown function "\begin{array}"): {\displaystyle 0 \leftarrow \begin{array}[0 & 0 & 0 & 0 & 0 & ... & 0_{n^{th zero}}]\end{array},\\ 1 \leftarrow \begin{array}[1 & 1 & 1 & 1 & 1 & ... & 1_{n^{th zero}}]\end{array} } We generally choose an odd number.
The repetition codes, can correct upto errors. Also, decoding errors occur, when the more than, these specified errors occur. so the probability of error for a repetition code is given using, Failed to parse (unknown function "\begin{array}"): {\displaystyle P_e = \sum_{t=\frac{n+1}{2}}^{n} \begin{array} n\\ t\\ \end{array} P_e^(t)(1-P_e)^(n-t)}
Algorithm
Assumptions
You have a code word, where an odd number.
- Calulate the Hamming weight of the Repetition code.
- if , decode code word to be all 0's
- if , decode code word to be all 1's
Example
If you had a code, with R=[1 0 1 1 0], then you would decode it as,
- , , so R'=[1 1 1 1 1]
- Hence the transmitted message bit, was 1.
References
Rice University, http://cnx.rice.edu/content/m0071/latest/ UT, Arlington, EE5364, http://www.uta.edu/faculty/prabhu/classes/ee5364/