Correcting One Flip with Three Repeated Bits

A three-bit repetition code can decode by majority, giving the original bit when no more than one of the three positions flips.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a received word
  2. Check a stronger disturbance
  3. Use majority to recover a single transmitted bit
  4. Keep limits and costs visible

Trace a received word

If encoded one is 111 and received bits are 101, two positions still hold one. Majority recovers one. See classification by votes.

Check a stronger disturbance

If two bits change, majority can choose the wrong source bit. State the promised error model and compare with code distance.[1][2]

Use majority to recover a single transmitted bit

A repetition code sends zero as 000 and one as 111. Suppose one was sent and the receiver sees 101. Two positions still contain one, so majority returns one and recovers the transmitted bit under the one-flip assumption. See minimum distance.

Sent 111
Receive 101 after one flip → majority 1
Receive 100 after two flips → majority 0, a wrong correction

Keep limits and costs visible

This scheme uses three transmitted bits per source bit. Closely correlated errors can violate its assumption. Verify all three single-flip positions for each possible input.

References

  1. MIT OpenCourseWare, 6.003 Signals and Systems ↩
  2. David J. C. MacKay, Information Theory, Inference, and Learning Algorithms ↩