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.
In error detection and correction, 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
In a binary alphabet made of , if a repetition code is used, then each input bit is mapped to the code word as a string of -replicated input bits. Generally , an odd number.
The repetition codes can detect up to transmission errors. Decoding errors occur when 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
Assumption: the code word is , where , an odd number.