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

带有随机通配符的部分匹配搜索:在Tries和分布式哈希表中

Partial-Match Queries with Random Wildcards: In Tries and Distributed Hash Tables

Junichiro Fukuyama

摘要:

考虑$m$位查询$q$到位trie $T$。$*$是$q$中的未指定位,查询会询问$*=0$和$*=1$这两种情况的成员资格。这种带有通配符的部分匹配查询通常在try中发出。假设$q$中的$w$通配符均匀随机出现,$T$中遍历步骤的平均数的明显上限是$2^w m$。我们表明,平均值不超过\[ \frac{m+1}{w+1} \left( 2^{w+2} - 2 w - 4 \right) + m = O \left( \frac{2^w m}{w} \right), \],等于值正好当$T$包括所有的$m$位键作为最坏的情况。这里,查询$q$使用$T$中的朴素回溯算法执行。它类似地表明,平均值是$O \left( \frac{k^w m}{w} \right)$在一个最大出度$k$的一般trie。我们的分析尝试扩展到分布式哈希表(DHT),这是最常用的分散的数据结构在网络中。我们证明,在最大类DHT的自然概率假设下,$m$位查询$q$到带有随机$w$通配符的DHT $D$所需的平均跳数满足相同的渐进界限。因此,在四个主要的DHT Chord、Pastry、Tapestry和Kademlia中,$q$的应答是平均$O \left( \frac{2^w m}{w} \right)$跳,而不是$Θ\left( 2^w m \right)$。此外,有足够多的条目的统一的密钥分布,我们证明了查找请求的DHT和弦是正确回答$O(m)$跳数和概率$1 - 2^{-Ω(m)}$。据作者所知,在Chord中正确查找的概率$1 - 2^{-Ω(m)}$到目前为止还没有确定。

英文摘要:

Consider an $m$-bit query $q$ to a bitwise trie $T$. A wildcard $*$ is an unspecified bit in $q$ for which the query asks the membership for both cases $*=0$ and $*=1$. It is common that such partial-match queries with wildcards are issued in tries. With uniformly random occurrences of $w$ wildcards in $q$ assumed, the obvious upper bound on the average number of traversal steps in $T$ is $2^w m$. We show that the average does not exceed \[ \frac{m+1}{w+1} \left( 2^{w+2} - 2 w - 4 \right) + m = O \left( \frac{2^w m}{w} \right), \] and equals the value exactly when $T$ includes all the $m$-bit keys as the worst case. Here the query $q$ performs with the naive backtracking algorithm in $T$. It is similarly shown that the average is $O \left( \frac{k^w m}{w} \right)$ in a general trie of maximum out-degree $k$. Our analysis for tries is extended to a distributed hash table (DHT), which is among the most frequently used decentralized data structures in networking. We show, under a natural probabilistic assumption for the largest class of DHTs, that the average number of hops required by an $m$-bit query $q$ to a DHT $D$ with random $w$ wildcards meets the same asymptotic bound. As a result, $q$ is answered with average $O \left( \frac{2^w m}{w} \right)$ hops rather than $Θ\left( 2^w m \right)$ in the four major DHTs Chord, Pastry, Tapestry and Kademlia. In addition, with a uniform key distribution for sufficiently many entries, we prove that a lookup request to the DHT Chord is answered correctly with $O(m)$ hops and probability $1 - 2^{-Ω(m)}$. To the author's knowledge, the probability $1 - 2^{-Ω(m)}$ of correct lookup in Chord has not been identified so far.

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

↑