改进动态范围模式的时间和空间边界
Improved Time and Space Bounds for Dynamic Range Mode
摘要:
给定$n$元素的数组A,我们希望支持查询$A$的子范围$[l, r]$中最频繁和最不频繁的元素。我们还希望支持更改索引$i$处的特定元素或插入/删除索引$i$处的元素的更新。对于范围模式的问题,我们的数据结构支持所有的操作在$O(n^{2/3})$确定性的时间,只使用$O(n)$空间。这改进了Chan等人在\cite{C14}中的两个结果:支持$\tilde{O}(n^{3/4})$时间的更新和查询操作的线性空间数据结构和支持$\tilde{O}(n^{2/3})$时间的更新和查询操作的$O(n^{4/3})$空间数据结构。对于范围最不频繁的问题,我们解决两个变化。在第一种情况下,我们可以使用$A$的元素来回答,该元素可能不会出现在查询范围内,而在第二种情况下,返回的元素必须出现在查询范围内。对于第一种变体,我们开发了一种数据结构,它支持在$\tilde{O}(n^{2/3})$时间内查询,在$O(n^{2/3})$时间内更新,并占用$O(n)$空间。对于第二种变化,我们开发了一个Monte Carlo数据结构,支持在$O(n^{2/3})$时间查询,在$\tilde{O}(n^{2/3})$时间更新,并占用$\tilde{O}(n)$空间,但要求更新独立于以前的查询结果。蒙特卡罗数据结构也能够回答$k$频率查询;也就是说,在指定的查询范围内找到给定频率的元素的问题。以前,对于最不频繁的元素或$k$ -频率查询,没有已知的动态数据结构.
英文摘要:
Given an array A of $n$ elements, we wish to support queries for the most frequent and least frequent element in a subrange $[l, r]$ of $A$. We also wish to support updates that change a particular element at index $i$ or insert/ delete an element at index $i$. For the range mode problem, our data structure supports all operations in $O(n^{2/3})$ deterministic time using only $O(n)$ space. This improves two results by Chan et al. \cite{C14}: a linear space data structure supporting update and query operations in $\tilde{O}(n^{3/4})$ time and an $O(n^{4/3})$ space data structure supporting update and query operations in $\tilde{O}(n^{2/3})$ time. For the range least frequent problem, we address two variations. In the first, we are allowed to answer with an element of $A$ that may not appear in the query range, and in the second, the returned element must be present in the query range. For the first variation, we develop a data structure that supports queries in $\tilde{O}(n^{2/3})$ time, updates in $O(n^{2/3})$ time, and occupies $O(n)$ space. For the second variation, we develop a Monte Carlo data structure that supports queries in $O(n^{2/3})$ time, updates in $\tilde{O}(n^{2/3})$ time, and occupies $\tilde{O}(n)$ space, but requires that updates are made independently of the results of previous queries. The Monte Carlo data structure is also capable of answering $k$-frequency queries; that is, the problem of finding an element of given frequency in the specified query range. Previously, no dynamic data structures were known for least frequent element or $k$-frequency queries.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。