norouzi / mih

Fast exact nearest neighbor search in Hamming distance on binary codes with Multi-index hashing

Home Page:http://www.cs.toronto.edu/~norouzi/research/mih/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Understanding BucketGroup::data_insert and BucketGroup::count_insert

zhfe99 opened this issue · comments

I am reading the code but cannot really understand what these two functions are doing:
BucketGroup::data_insert and BucketGroup::count_insert.

I guess the difficulty in understanding comes from the special data structure of BucketGroup.

Is it possible to give a more detailed introduction on how the data organized in BucketGroup? Thanks a lot.

Actually, if you complie test_bucket_group.cpp and run, you will find it became easy.