Majority logic decoding
![]() | Template:Wikify is deprecated. Please use a more specific cleanup template as listed in the documentation. |
Majority logic decoding is a method to decode Repetition codes, based on the assumption that the largest number of occurrences of a symbol was the transmitted symbol.
Theory
If we have a binary alphabet made of and we use an repetition code, then we have each input bit mapped to the codeword as a string of -replicated input bits. We generally choose , an odd number.
The repetition codes can correct up to transmission errors. Decoding errors occur when the more than these transmission errors occur. Thus, assuming bit-transmission errors are independent, the probability of error for a repetition code is given by , where is the error over the transmission channel.
Algorithm
Assumptions
You have a code word, where an odd number.
- Calculate 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/