(7, 4)
å¾ŖēÆē ēēå¤é”¹å¼ g(x)=x3+x2+1 , åD(1010)
ē系循ēÆē ęÆå¤å°ļ¼
1.
1010ād(x)=x3+x1ā 2.
==āx7ā4ā
d(x)x3ā
(x3+x)x6+x4ā 3.
ārem[(x6+x4),g(x)]=1rem(Ā aĀ ,Ā bĀ )Ā returnsĀ theĀ remainderĀ afterĀ divisionĀ ofĀ aĀ byĀ bā 4.
c(x)10ā=x6+x4+1ā10001ā hamming code
n=2rā1
n
represents the length of codes
r
represents the ēē£ē ļ¼äøä¼ éäæ”ęÆļ¼åŖäøŗēŗ éčå ēäøč„æļ¼