多维项链的组合算法
Combinatorial Algorithms for Multidimensional Necklaces
摘要:
项链是在循环移位(旋转)操作下,字母表上长度为$n$的单词的等价类。作为一个经典的对象,对于项链的关键操作,包括计数、生成、排名和取消排名,已经有了许多算法结果。本文将项链的概念推广到多维环境中。我们将多维项链定义为多维词在多维循环移位运算下的等价类。除了这个定义,我们概括了几个问题,从一维设置的多维设置的尺寸$(n_1,n_2,...,n_d)$在一个字母表的尺寸$q$包括:提供封闭形式的方程计数的项链的数量,一个$O(n_1 \cdot n_2 \cdot ... \cdot n_d)$时间算法转换一些项链$w$到下一个项链的顺序;用于对项链进行排名的$O((n_1 \cdot n_2 \cdot ... \cdot n_d)^5)$时间算法(确定项链集合中小于$w$的项链的数量);用于对多维项链进行去排名的$O((n_1\cdot n_2 \cdot ... \cdot n_d)^{6(d + 1)} \cdot \log^d(q))$时间算法(确定项链集合中的$i^{th}$项链)。我们的结果计数,排名和unranking进一步扩展到固定的内容设置,其中每个项链有相同的帕里克向量,换句话说,每个项链共享相同的出现次数的每个符号。最后,我们研究了项链的$k$ -中心问题,在单一和多维设置。我们提供了强大的近似算法来解决这个问题,在一维和多维设置。
英文摘要:
A necklace is an equivalence class of words of length $n$ over an alphabet under the cyclic shift (rotation) operation. As a classical object, there have been many algorithmic results for key operations on necklaces, including counting, generating, ranking, and unranking. This paper generalises the concept of necklaces to the multidimensional setting. We define multidimensional necklaces as an equivalence classes over multidimensional words under the multidimensional cyclic shift operation. Alongside this definition, we generalise several problems from the one dimensional setting to the multidimensional setting for multidimensional necklaces with size $(n_1,n_2,...,n_d)$ over an alphabet of size $q$ including: providing closed form equations for counting the number of necklaces; an $O(n_1 \cdot n_2 \cdot ... \cdot n_d)$ time algorithm for transforming some necklace $w$ to the next necklace in the ordering; an $O((n_1 \cdot n_2 \cdot ... \cdot n_d)^5)$ time algorithm to rank necklaces (determine the number of necklaces smaller than $w$ in the set of necklaces); an $O((n_1\cdot n_2 \cdot ... \cdot n_d)^{6(d + 1)} \cdot \log^d(q))$ time algorithm to unrank multidimensional necklace (determine the $i^{th}$ necklace in the set of necklaces). Our results on counting, ranking, and unranking are further extended to the fixed content setting, where every necklace has the same Parikh vector, in other words every necklace shares the same number of occurrences of each symbol. Finally, we study the $k$-centre problem for necklaces both in the single and multidimensional settings. We provide strong approximation algorithms for solving this problem in both the one dimensional and multidimensional settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。