Hamming distance. The Hamming distance between two bit strings of length n is equal to the number of bits in which the two strings differ. Write a program that reads in an integer k and a bit string s from the command line, and prints all bit strings that have Hamming distance at most k from s. For example, if k is 2 and s is 0000, then your program should print
Hint: Choose k of the bits in s to flip.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here