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

The meaning of expected shifts approximation formula #27

Open
Losk-x opened this issue Apr 28, 2022 · 0 comments
Open

The meaning of expected shifts approximation formula #27

Losk-x opened this issue Apr 28, 2022 · 0 comments

Comments

@Losk-x
Copy link

Losk-x commented Apr 28, 2022

// ((n-1)/2)((n-1)/2 + 1) = n^2/4 - 1/4

The paper said that in the assumption that "inserts are done according to the existing key distribution", the "average number of shifts for inserts is computed as the average distance to the closest gap in the Gapped Array for all existing keys".

I dont know how to deduce this formula (n-1)/2 * ((n-1)/2+1) from above. Can anybody explain it in detail? Thanks.

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