hamming-code

bool multiplication with exclusive-or, not or (with Eigen Matrix Library)

我是研究僧i 提交于 2019-12-12 11:34:17
问题 I'm trying to implement hamming error correcting codes, and to do this I need to take a bool Vector (the data) and multiply it with a bool Matrix(hamming generator matrix), performing XOR operations (instead of what looks like OR as Eigen's default bool behavior). An example of what I am doing is found in this simple tutorial: http://michael.dipperstein.com/hamming/ I don't necessarily have to use Eigen, so please feel free to suggest something other than Eigen if you have the solution. So

TypeError: not all arguments converted during string formatting

為{幸葍}努か 提交于 2019-12-11 20:12:50
问题 I have a program that's supposed to calculate Hamming Code for even parity with a 7-bit integer, here is the program: data=list(input("Enter a 7-bit binary integer:")) if (data[0]+data[1]+data[3]+data[4]+data[6])%2 == 0: data.insert(8, "0") else: data.insert(8, "1") if (data[0]+data[2]+data[3]+data[5]+data[6])%2 == 0: data.insert(7, "0") else: data.insert(7, "1") if (data[1]+data[2]+data[3])%2 == 0: data.insert(6, "0") else: data.insert(6, "1") if (data[4]+data[5]+data[6])%2 == 0: data.insert

Generation of a Hamming Series

好久不见. 提交于 2019-12-08 07:14:20
问题 I have been trying to solve a programming problem, one of the modules of which requires me to generate Hamming sequences. The function takes input two numbers first a binary number N and another a decimal number K. It should now generate all possible numbers having a Hamming distance of up to K from N. It would be really helpful if you provide me with an algorithm about how to solve this problem. Thanks in advance. 回答1: The algorithm is pretty simple. You just need to chose all possible

How does the Hamming code work?

为君一笑 提交于 2019-11-30 11:34:52
问题 When transmitting data, the Hamming code apparently allows you to recreate data that has been corrupted over the wire (an error correcting code). How does this work and what are its limitations, if any? Are there any better solutions for error correction (as opposed to retransmission)? Are there circumstances where retransmission is better? 回答1: Let's try to explain it a bit: We have a 3 bit number. The possibilities can be presented as a cube where each bit represent an axis. The eight

How does the Hamming code work?

≯℡__Kan透↙ 提交于 2019-11-30 01:16:32
When transmitting data, the Hamming code apparently allows you to recreate data that has been corrupted over the wire (an error correcting code). How does this work and what are its limitations, if any? Are there any better solutions for error correction (as opposed to retransmission)? Are there circumstances where retransmission is better? Let's try to explain it a bit: We have a 3 bit number. The possibilities can be presented as a cube where each bit represent an axis. The eight possibilities are on the corners. 000 --------001 | \ | \ | 100---------101 | | | | | | | | 010-|-------011 | \|