UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting

Since its invention HyperLogLog has become the standard algorithm for approximate distinct counting. Due to its space efficiency and suitability for distributed systems, it is widely used and also implemented in numerous databases. This work presents UltraLogLog, which shares the same practical prop...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Proceedings of the VLDB Endowment 2024-03, Vol.17 (7), p.1655-1668
1. Verfasser: Ertl, Otmar
Format: Artikel
Sprache:eng
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page 1668
container_issue 7
container_start_page 1655
container_title Proceedings of the VLDB Endowment
container_volume 17
creator Ertl, Otmar
description Since its invention HyperLogLog has become the standard algorithm for approximate distinct counting. Due to its space efficiency and suitability for distributed systems, it is widely used and also implemented in numerous databases. This work presents UltraLogLog, which shares the same practical properties as HyperLogLog. It is commutative, idempotent, mergeable, and has a fast guaranteed constant-time insert operation. At the same time, it requires 28% less space to encode the same amount of distinct count information, which can be extracted using the maximum likelihood method. Alternatively, a simpler and faster estimator is proposed, which still achieves a space reduction of 24%, but at an estimation speed comparable to that of HyperLogLog. In a non-distributed setting where martingale estimation can be used, UltraLogLog is able to reduce space by 17%. Moreover, its smaller entropy and its 8-bit registers lead to better compaction when using standard compression algorithms. All this is verified by experimental results that are in perfect agreement with the theoretical analysis which also outlines potential for even more space-efficient data structures. A production-ready Java implementation of UltraLogLog has been released as part of the open-source Hash4j library.
doi_str_mv 10.14778/3654621.3654632
format Article
fullrecord <record><control><sourceid>crossref</sourceid><recordid>TN_cdi_crossref_primary_10_14778_3654621_3654632</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>10_14778_3654621_3654632</sourcerecordid><originalsourceid>FETCH-LOGICAL-c126t-747178147350c065dd20b7ae5fcb8dee29dc4ac046e26f09807a1c1223eba053</originalsourceid><addsrcrecordid>eNpNkEFLxDAUhIMouK7ePeYPdH1J2yT1VtbVFSoKrueSpi9LpDYljeL-e8tuD8LAzOUNbz5CbhmsWCaluktFngnOVkdP-RlZcJZDoqCQ5__yJbkax08AoQRTC9J_dDHoyu8n3dOSvgVtojO6o7pv6YsPSN8HbTDZWOuMwz7SsosYeh3dD9Lo6fYwYDgVUOsDLYch-F_3pSPSBzdG15tI1_67n9L-mlxY3Y14M_uS7B43u_U2qV6fntdllRjGRUxkJplU0640BwMib1sOjdSYW9OoFpEXrcm0gUwgFxYKBVKz6ZSn2GjI0yWBU60JfhwD2noI00fhUDOoj7jqGVc940r_APHMXfA</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting</title><source>ACM Digital Library Complete</source><creator>Ertl, Otmar</creator><creatorcontrib>Ertl, Otmar</creatorcontrib><description>Since its invention HyperLogLog has become the standard algorithm for approximate distinct counting. Due to its space efficiency and suitability for distributed systems, it is widely used and also implemented in numerous databases. This work presents UltraLogLog, which shares the same practical properties as HyperLogLog. It is commutative, idempotent, mergeable, and has a fast guaranteed constant-time insert operation. At the same time, it requires 28% less space to encode the same amount of distinct count information, which can be extracted using the maximum likelihood method. Alternatively, a simpler and faster estimator is proposed, which still achieves a space reduction of 24%, but at an estimation speed comparable to that of HyperLogLog. In a non-distributed setting where martingale estimation can be used, UltraLogLog is able to reduce space by 17%. Moreover, its smaller entropy and its 8-bit registers lead to better compaction when using standard compression algorithms. All this is verified by experimental results that are in perfect agreement with the theoretical analysis which also outlines potential for even more space-efficient data structures. A production-ready Java implementation of UltraLogLog has been released as part of the open-source Hash4j library.</description><identifier>ISSN: 2150-8097</identifier><identifier>EISSN: 2150-8097</identifier><identifier>DOI: 10.14778/3654621.3654632</identifier><language>eng</language><ispartof>Proceedings of the VLDB Endowment, 2024-03, Vol.17 (7), p.1655-1668</ispartof><lds50>peer_reviewed</lds50><woscitedreferencessubscribed>false</woscitedreferencessubscribed><cites>FETCH-LOGICAL-c126t-747178147350c065dd20b7ae5fcb8dee29dc4ac046e26f09807a1c1223eba053</cites></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>314,780,784,27924,27925</link.rule.ids></links><search><creatorcontrib>Ertl, Otmar</creatorcontrib><title>UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting</title><title>Proceedings of the VLDB Endowment</title><description>Since its invention HyperLogLog has become the standard algorithm for approximate distinct counting. Due to its space efficiency and suitability for distributed systems, it is widely used and also implemented in numerous databases. This work presents UltraLogLog, which shares the same practical properties as HyperLogLog. It is commutative, idempotent, mergeable, and has a fast guaranteed constant-time insert operation. At the same time, it requires 28% less space to encode the same amount of distinct count information, which can be extracted using the maximum likelihood method. Alternatively, a simpler and faster estimator is proposed, which still achieves a space reduction of 24%, but at an estimation speed comparable to that of HyperLogLog. In a non-distributed setting where martingale estimation can be used, UltraLogLog is able to reduce space by 17%. Moreover, its smaller entropy and its 8-bit registers lead to better compaction when using standard compression algorithms. All this is verified by experimental results that are in perfect agreement with the theoretical analysis which also outlines potential for even more space-efficient data structures. A production-ready Java implementation of UltraLogLog has been released as part of the open-source Hash4j library.</description><issn>2150-8097</issn><issn>2150-8097</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><recordid>eNpNkEFLxDAUhIMouK7ePeYPdH1J2yT1VtbVFSoKrueSpi9LpDYljeL-e8tuD8LAzOUNbz5CbhmsWCaluktFngnOVkdP-RlZcJZDoqCQ5__yJbkax08AoQRTC9J_dDHoyu8n3dOSvgVtojO6o7pv6YsPSN8HbTDZWOuMwz7SsosYeh3dD9Lo6fYwYDgVUOsDLYch-F_3pSPSBzdG15tI1_67n9L-mlxY3Y14M_uS7B43u_U2qV6fntdllRjGRUxkJplU0640BwMib1sOjdSYW9OoFpEXrcm0gUwgFxYKBVKz6ZSn2GjI0yWBU60JfhwD2noI00fhUDOoj7jqGVc940r_APHMXfA</recordid><startdate>202403</startdate><enddate>202403</enddate><creator>Ertl, Otmar</creator><scope>AAYXX</scope><scope>CITATION</scope></search><sort><creationdate>202403</creationdate><title>UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting</title><author>Ertl, Otmar</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c126t-747178147350c065dd20b7ae5fcb8dee29dc4ac046e26f09807a1c1223eba053</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Ertl, Otmar</creatorcontrib><collection>CrossRef</collection><jtitle>Proceedings of the VLDB Endowment</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Ertl, Otmar</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting</atitle><jtitle>Proceedings of the VLDB Endowment</jtitle><date>2024-03</date><risdate>2024</risdate><volume>17</volume><issue>7</issue><spage>1655</spage><epage>1668</epage><pages>1655-1668</pages><issn>2150-8097</issn><eissn>2150-8097</eissn><abstract>Since its invention HyperLogLog has become the standard algorithm for approximate distinct counting. Due to its space efficiency and suitability for distributed systems, it is widely used and also implemented in numerous databases. This work presents UltraLogLog, which shares the same practical properties as HyperLogLog. It is commutative, idempotent, mergeable, and has a fast guaranteed constant-time insert operation. At the same time, it requires 28% less space to encode the same amount of distinct count information, which can be extracted using the maximum likelihood method. Alternatively, a simpler and faster estimator is proposed, which still achieves a space reduction of 24%, but at an estimation speed comparable to that of HyperLogLog. In a non-distributed setting where martingale estimation can be used, UltraLogLog is able to reduce space by 17%. Moreover, its smaller entropy and its 8-bit registers lead to better compaction when using standard compression algorithms. All this is verified by experimental results that are in perfect agreement with the theoretical analysis which also outlines potential for even more space-efficient data structures. A production-ready Java implementation of UltraLogLog has been released as part of the open-source Hash4j library.</abstract><doi>10.14778/3654621.3654632</doi><tpages>14</tpages></addata></record>
fulltext fulltext
identifier ISSN: 2150-8097
ispartof Proceedings of the VLDB Endowment, 2024-03, Vol.17 (7), p.1655-1668
issn 2150-8097
2150-8097
language eng
recordid cdi_crossref_primary_10_14778_3654621_3654632
source ACM Digital Library Complete
title UltraLogLog: A Practical and More Space-Efficient Alternative to HyperLogLog for Approximate Distinct Counting
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-07T10%3A31%3A35IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-crossref&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=UltraLogLog:%20A%20Practical%20and%20More%20Space-Efficient%20Alternative%20to%20HyperLogLog%20for%20Approximate%20Distinct%20Counting&rft.jtitle=Proceedings%20of%20the%20VLDB%20Endowment&rft.au=Ertl,%20Otmar&rft.date=2024-03&rft.volume=17&rft.issue=7&rft.spage=1655&rft.epage=1668&rft.pages=1655-1668&rft.issn=2150-8097&rft.eissn=2150-8097&rft_id=info:doi/10.14778/3654621.3654632&rft_dat=%3Ccrossref%3E10_14778_3654621_3654632%3C/crossref%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true