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

Deduplication of marbles #2

Open
cegme opened this issue Jun 29, 2013 · 1 comment
Open

Deduplication of marbles #2

cegme opened this issue Jun 29, 2013 · 1 comment
Assignees

Comments

@cegme
Copy link
Owner

cegme commented Jun 29, 2013

Add a function that dedupes the repeated marble labels. This is like a reduce function that sums the duplicate weights. You can't really merge marbles, but lets pretend that they are play-doh balls. This can be done in some dedup() method.

@ghost ghost assigned cegme Jun 29, 2013
@cegme
Copy link
Owner Author

cegme commented Jul 2, 2013

We could keep track of all duplicates by keeping a min-count sketch and also counter. When each marble is inserted, add it to the min-count sketch. Check to see how many of the items are now present, if that number is greater than one increment the counter.
When that counter is past some threshold, it is time to dedupe the structure. This threshold should take into account the time wasted searching duplicates and also the time it takes to dedupe.

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

No branches or pull requests

1 participant