목록4 (1)
컴공생의 다이어리
[c] (7,4)Hamming Code Encoder(인코더)와 Decoder(디코더)
(7,4)Hamming Code Encoder(인코더) Code - Encoder의 입력은 4bit, 출력은 7bit의 codeword // (7,4) Hamming code Encoder #include #include int main() { char input[5] = { 0 }; int s[4] = { 0, }; int t[7] = { 0, }; int G_T[7][4] = { {1,0,0,0},{0,1,0,0},{0,0,1,0}, {0,0,0,1},{1,1,1,0},{0,1,1,1},{1,0,1,1} }; char result[8] = { 0 }; printf("--------- (7,4)Hamming Code Encoder ---------\n"); printf("Input: "); scanf(..
Development/C & C++
2021. 6. 10. 00:01