Majority logic decoding
Majority logic decoding is a method to decode Repetition code's, based on assumption that the largest occurrence of a symbol, was transmitted message. It bases the decision on the frequency of occurrence 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 We generally choose an odd number.
The repetition codes, can correct up to 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,
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/
- UT, Arlington, EE5364, http://www.uta.edu/faculty/prabhu/classes/ee5364/