Figure 5: Gate/graphical expression of hamming encoder formula.