Bit Flipping Algorithm Output
Bit Flipping Algorithm Output
Received Word: 1 0 1 0 1 1 1
Iteration 1: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 2: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 3: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 4: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 5: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 6: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 7: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 8: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 9: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 10: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 11: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 12: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 13: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 14: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 15: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 16: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 17: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 18: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Iteration 19: Flipped bit at index 1
Word after correction: 0 0 1 0 1 1 1
Iteration 20: Flipped bit at index 1
Word after correction: 1 0 1 0 1 1 1
Decoding successful after 20 iterations!
Corrected Word: 1 0 1 0 1 1 1
>>