arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1301.0103cs.DS
收藏

2D Lyndon Words and Applications

2D Lyndon Words and Applications

Shoshana Marcus, Dina Sokol

摘要:

林登字是一个原始字符串,它是字典中最小的循环排列的字符。林登词用于构造自由李代数中的基,构造de Bruijn序列,查找字符串中按字典顺序排列的最小或最大子串,以及高度周期字符串的简洁后缀前缀匹配。在本文中,我们将林登词的概念扩展到两个维度。我们介绍了2D林登字,并使用它来捕获2D水平周期性的矩阵,其中每行是高度周期性的,并有效地解决了一组模式之间的2D水平后缀前缀匹配。这产生了一个简洁而有效的算法的二维字典匹配。我们提出了几种算法,计算2D林登字,表示一个矩阵。最后的算法实现线性时间复杂度,即使当行的周期的最小公倍数是矩阵宽度的指数。

英文摘要:

A Lyndon word is a primitive string which is lexicographically smallest among cyclic permutations of its characters. Lyndon words are used for constructing bases in free Lie algebras, constructing de Bruijn sequences, finding the lexicographically smallest or largest substring in a string, and succinct suffix-prefix matching of highly periodic strings. In this paper, we extend the concept of the Lyndon word to two dimensions. We introduce the 2D Lyndon word and use it to capture 2D horizontal periodicity of a matrix in which each row is highly periodic, and to efficiently solve 2D horizontal suffix-prefix matching among a set of patterns. This yields a succinct and efficient algorithm for 2D dictionary matching. We present several algorithms that compute the 2D Lyndon word that represents a matrix. The final algorithm achieves linear time complexity even when the least common multiple of the periods of the rows is exponential in the matrix width.

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

↑