arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.06800cs.DB
收藏

数据流草图的复合散列算法

Composite Hashing for Data Stream Sketches

Arijit Khan, Sixing Yan

摘要:

在快速和大量的数据流中,通常不可能完全准确地估计项目的频率。为了在合理的空间量中并且以足够低的延迟执行操作,使用近似方法。最常见的是Count-Min草图的变体。通过使用多个散列函数,它们在次线性空间中汇总了大量数据流。实际上,数据项id或键可以是模块化的,例如,图边由源和目标节点ID表示,32位IP地址由4个8位字组成,web地址由域名、域扩展名、路径和文件名等组成。在本文中,我们研究了项目键的模块性属性,并系统地开发了更准确的复合哈希策略,例如采用多个独立的哈希函数,分别对键中的不同模块及其组合进行哈希,而不是将整个键直接哈希到草图中。然而,我们找到最佳散列策略的问题是不平凡的,因为在将密钥的模块散列到草图中之前,有指数数量的方法来组合它们。此外,给定为整个草图分配的固定大小,很难找到对应于不同模块及其组合的所有散列函数的最佳范围。我们通过广泛的理论分析解决了这两个问题,并对真实世界的数据集进行了彻底的实验,以证明我们提出的方法MOD-Sketch的准确性和效率。

英文摘要:

In rapid and massive data streams, it is often not possible to estimate the frequency of items with complete accuracy. To perform the operation in a reasonable amount of space and with sufficiently low latency, approximated methods are used. The most common ones are variations of the Count-Min sketch. By using multiple hash functions, they summarize massive streams in sub-linear space. In reality, data item ids or keys can be modular, e.g., a graph edge is represented by source and target node ids, a 32-bit IP address is composed of four 8-bit words, a web address consists of domain name, domain extension, path, and filename, among many others. In this paper, we investigate the modularity property of item keys, and systematically develop more accurate, composite hashing strategies, such as employing multiple independent hash functions that hash different modules in a key and their combinations separately, instead of hashing the entire key directly into the sketch. However, our problem of finding the best hashing strategy is non-trivial, since there are exponential number of ways to combine the modules of a key before they can be hashed into the sketch. Moreover, given a fixed size allocated for the entire sketch, it is hard to find the optimal range of all hash functions that correspond to different modules and their combinations. We solve both these problems with extensive theoretical analysis, and perform thorough experiments with real-world datasets to demonstrate the accuracy and efficiency of our proposed method, MOD-Sketch.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑