{"id":21964951,"url":"https://github.com/wesdoyle/hyperloglog","last_synced_at":"2025-03-22T21:27:10.399Z","repository":{"id":253562662,"uuid":"843873186","full_name":"wesdoyle/hyperloglog","owner":"wesdoyle","description":"Exploring HyperLogLog","archived":false,"fork":false,"pushed_at":"2024-08-18T01:02:34.000Z","size":26376,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T01:17:59.521Z","etag":null,"topics":["hll-algorithm","hyperloglog"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wesdoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-17T17:17:42.000Z","updated_at":"2024-08-18T01:02:37.000Z","dependencies_parsed_at":"2024-11-29T12:42:17.839Z","dependency_job_id":null,"html_url":"https://github.com/wesdoyle/hyperloglog","commit_stats":null,"previous_names":["wesdoyle/hyperloglog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fhyperloglog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fhyperloglog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fhyperloglog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesdoyle%2Fhyperloglog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesdoyle","download_url":"https://codeload.github.com/wesdoyle/hyperloglog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245021971,"owners_count":20548454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hll-algorithm","hyperloglog"],"created_at":"2024-11-29T12:31:19.766Z","updated_at":"2025-03-22T21:27:10.372Z","avatar_url":"https://github.com/wesdoyle.png","language":"Rust","readme":"# HyperLogLog exploration \n\nThis repo explores implementations of the [HyperLogLog](https://www.wikipedia.org/wiki/HyperLogLog) algorithm for estimating the cardinality of a dataset.\n\nThese are basic implementations for learning purposes.\n\n## Example using text file on disk\n\n```sh\n\u003e python3 ./py-version/hyperloglog.py ./data/complete_works_of_shakespeare.txt 16\nComparison of HyperLogLog vs Exact Counting\n----------------------------------------------------------\nMethod         Count     Error (%)\n----------------------------------------------------------\nHyperLogLog    25838     0.37\nExact          25934     N/A\n----------------------------------------------------------\n```\n\n## Example using sqlite database on disk\n\nThis example uses the [Wikibooks dataset](https://www.kaggle.com/datasets/dhruvildave/wikibooks-dataset) (license is [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/))\n\n### Python Version\n\n```sh\n\u003e python3 ./py-version/hll_sqlite.py ./data/wikibooks.sqlite en body_text 20\n```\n\n### Rust Version\n\n```sh\ncargo run --release ../../data/wikibooks.sqlite en body_text 22\n\nComparison of HyperLogLog vs Exact Counting (SQLite)\n----------------------------------------------------------\nMethod          Count      Time (s)   Error (%)\n----------------------------------------------------------\nHyperLogLog     1361262    19.68      0.01\nExact           1361142    12.87      N/A\n----------------------------------------------------------\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesdoyle%2Fhyperloglog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesdoyle%2Fhyperloglog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesdoyle%2Fhyperloglog/lists"}