Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low bits per key #3

Open
BHare1985 opened this issue Oct 20, 2023 · 0 comments
Open

Low bits per key #3

BHare1985 opened this issue Oct 20, 2023 · 0 comments

Comments

@BHare1985
Copy link

BHare1985 commented Oct 20, 2023

As I understand the CHD Algorithm it is suppose to be space-efficient for the MPHF replacement size, however the DisplacementMap seems to always be n bytes (4n bits) where n is the number of keys, shouldn't it be closer to 2 bits per key?

For example 65536 (2^16) keys become 2^16/4 unsigned integers which is 65536 bytes. How should the DisplacementMap be saved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant