小型无色和有色选择词典
Small Uncolored and Colored Choice Dictionaries
摘要:
选择字典可以用参数$n\in\mathbb{N}$初始化,并且随后在插入、删除、成员查询和返回$S$的任意元素的操作$\textit{choice}$下维护$\{1,\ldots,n\}$的初始空子集$S$。选择字典是空间高效计算的基础,有许多应用。最佳先前选择字典可以用$n$和$t\in\mathbb{N}$初始化,并且随后在$O(t)$时间内执行所有操作,并且占用具有$w=Ω(\log n)$位的字长的字RAM上的$n+O(n({t/w})^t+\log n)$位。我们描述了一个新的选择字典,它在恒定时间内执行所有操作,除了存储整数$n$所需的空间外,还仅占用$n+1$位,如果$w=o(n)$,则这被证明是最佳的。除了$n$之外,还使用$c\in\mathbb{N}$来初始化被称为着色选择字典的选择字典的泛化,并且随后在操作$\textit{setcolor}(j,\ell)$、$\textit{color}(\ell)$和$\textit{choice}(j)$下维护$\{1,\ldots,n\}$的半分区$(S_0,\ldots,S_{c-1})$,所述操作将$\ell$从其当前子集移动到$S_j$,所述操作返回具有$\ell\in S_j$的唯一$j\in\{0,\ldots,c-1\}$,所述操作返回$S_j$的任意元素。我们描述了新的彩色选择字典,如果初始化与常数$c$,执行$\textit{setcolor}$,$\textit{color}$和$\textit{choice}$在恒定的时间和占用$n\log_2\!c+1$位加上存储$n$所需的空间,如果$c$是2的幂,最多$n\log_2\!c+n^ε$位一般,对于任意固定的$ε>0$。我们还研究了在集合$S$或$S_j$上迭代给定$j\in\{0,\ldots,c-1\}$的可能性,并将其应用于广度优先搜索。
英文摘要:
A choice dictionary can be initialized with a parameter $n\in\mathbb{N}$ and subsequently maintains an initially empty subset $S$ of $\{1,\ldots,n\}$ under insertion, deletion, membership queries and an operation $\textit{choice}$ that returns an arbitrary element of $S$. The choice dictionary is fundamental in space-efficient computing and has numerous applications. The best previous choice dictionary can be initialized with $n$ and $t\in\mathbb{N}$ and subsequently executes all operations in $O(t)$ time and occupies $n+O(n({t/w})^t+\log n)$ bits on a word RAM with a word length of $w=Ω(\log n)$ bits. We describe a new choice dictionary that executes all operations in constant time and, in addition to the space needed to store the integer $n$, occupies only $n+1$ bits, which is shown to be optimal if $w=o(n)$. A generalization of the choice dictionary called a colored choice dictionary is initialized with $c\in\mathbb{N}$ in addition to $n$ and subsequently maintains a semipartition $(S_0,\ldots,S_{c-1})$ of $\{1,\ldots,n\}$ under the operations $\textit{setcolor}(j,\ell)$, which moves $\ell$ from its current subset to $S_j$, $\textit{color}(\ell)$, which returns the unique $j\in\{0,\ldots,c-1\}$ with $\ell\in S_j$, and $\textit{choice}(j)$, which returns an arbitrary element of $S_j$. We describe new colored choice dictionaries that, if initialized with constant $c$, execute $\textit{setcolor}$, $\textit{color}$ and $\textit{choice}$ in constant time and occupy $n\log_2\!c+1$ bits plus the space needed to store $n$ if $c$ is a power of 2, and at most $n\log_2\!c+n^ε$ bits in general, for arbitrary fixed $ε>0$. We also study the possibility of iterating over the set $S$ or over $S_j$ for given $j\in\{0,\ldots,c-1\}$ and an application of this to breadth-first search.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。