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

具有距离敏感查询时间的先行搜索

Predecessor search with distance-sensitive query time

Djamal Belazzougui, Paolo Boldi, Sebastiano Vigna

摘要:

前导(后继)搜索从给定集合$S$中找到小于输入字符串$x$的最大元素$x^-$(分别为大于或等于$x$的最小元素$x^+$);在本文中,我们考虑静态情况(即,$S$是固定的,不随时间变化),并假定$S$的$n$元素可用于检查。我们提出了一些算法,一个小的额外的索引(通常为O(n log w)位,其中$w$是字符串长度),可以回答前任/继任者查询快速和时间范围,取决于不同种类的距离,改善显着的几个结果,出现在最近的文献。直观地说,我们的第一个结果的运行时间取决于$x$和$x^\pm$之间的距离:当输入$x$非常接近或非常远离$x^-$或$x^+$时,它特别有效;我们的第二个结果取决于集合$S$中距离的某种全局概念,并且当$S$的元素在宇宙中或多或少相等间隔时,它是快速的;最后,对于我们的第三个结果,我们依赖于手指(即,$S$的一个元素)来改进第一个;它的运行时间取决于输入和手指之间的距离。

英文摘要:

A predecessor (successor) search finds the largest element $x^-$ smaller than the input string $x$ (the smallest element $x^+$ larger than or equal to $x$, respectively) out of a given set $S$; in this paper, we consider the static case (i.e., $S$ is fixed and does not change over time) and assume that the $n$ elements of $S$ are available for inspection. We present a number of algorithms that, with a small additional index (usually of O(n log w) bits, where $w$ is the string length), can answer predecessor/successor queries quickly and with time bounds that depend on different kinds of distance, improving significantly several results that appeared in the recent literature. Intuitively, our first result has a running time that depends on the distance between $x$ and $x^\pm$: it is especially efficient when the input $x$ is either very close to or very far from $x^-$ or $x^+$; our second result depends on some global notion of distance in the set $S$, and is fast when the elements of $S$ are more or less equally spaced in the universe; finally, for our third result we rely on a finger (i.e., an element of $S$) to improve upon the first one; its running time depends on the distance between the input and the finger.

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

↑