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

bench: search multiple candidates #12

Closed
akiradeveloper opened this issue Mar 10, 2022 · 1 comment
Closed

bench: search multiple candidates #12

akiradeveloper opened this issue Mar 10, 2022 · 1 comment
Assignees

Comments

@akiradeveloper
Copy link
Owner

Let

  • n: number of nodes
  • k: choose k nodes

and assume each node has the same cap.

The number of searching segment table will be

sum (n/(n-i)) for i = [0,k)

for example, if n=10 and k=3 it will be 1+10/9+10/8 ~ 3

Write benchmark to check if the actual execution time can be explained by the math.

@akiradeveloper
Copy link
Owner Author

done.

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