Skip to content

fr30/CUDA_lab_hamming_one

Repository files navigation

Hamming one

You get a list of binary strings as an input (e.g. 1010100). Find how many pairs of strings are there, such that hamming distance between them is equal to 1.

Solution for Hamming one problem in CUDA. It works in O(n*l*logn) time complexity.

Few thing worth mentioning:

  1. Hashing function doesn't use modulo operation, since I calculate remainder by overflowing long long integer.
  2. Program returns results only for different pairs, thus if you need to get the exact answer you need to parse the output yourself.
  3. In order to better understand the code It's probably easier to figure out CPU version first, then GPU.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published