2D Lyndon words and applications (Q513297): Difference between revisions
From MaRDI portal
Created a new Item |
Changed an Item |
||
Property / review text | |||
The words of the form \(uv\) and \(vu\) (where the latter word is the result of the right cyclic shift of the former word by \(\left| v\right| \) positions) are called conjugates. A Lyndon word is the unique word being minimal, with respect to the alphabetic ordering, among its conjugates. The uniqueness implies that a Lyndon word does not exist in the class of conjugates of a periodic word, i.e., of a word of the form \(u^{j}u^{\prime}\), where \(u^{\prime}\) is a proper prefix of \(u\) and \(j\geq2\). The authors propose a 2D version of Lyndon words based on properties of conjugates of rows of 2D words -- matrices of symbols. Two such matrices are horizontal conjugates if some right cyclic shift of columns of one of them leads to the other one. With each matrix they associate a column vector LWpos of integers where the entry in the \(i\)-th row is given as the smallest number of positions of a right cyclic shift of the \(i\)-th row leading to its minimal conjugate. Then a 2D Lyndon word is a horizontally non-periodic matrix, which yields the alphabetically minimal LWpos vector among all its horizontal conjugates. The paper introduces a simple algorithm for computing the 2D Lyndon word being a conjugate of a given matrix. As applications, linear time succinct (using asymptotically smaller space in addition to the input space) algorithms are given for the horizontal 2D all-pairs suffix-prefix matching problem and for the 2D dictionary matching problem. The horizontal 2D all-pairs suffix-prefix matching problem is to find, for any pair of matrices in a given set, the longest horizontal suffix of one which is a horizontal prefix of the other. The 2D dictionary matching problem is to find all occurrences of 2D patterns in a specified set, the dictionary, within a given 2D text. | |||
Property / review text: The words of the form \(uv\) and \(vu\) (where the latter word is the result of the right cyclic shift of the former word by \(\left| v\right| \) positions) are called conjugates. A Lyndon word is the unique word being minimal, with respect to the alphabetic ordering, among its conjugates. The uniqueness implies that a Lyndon word does not exist in the class of conjugates of a periodic word, i.e., of a word of the form \(u^{j}u^{\prime}\), where \(u^{\prime}\) is a proper prefix of \(u\) and \(j\geq2\). The authors propose a 2D version of Lyndon words based on properties of conjugates of rows of 2D words -- matrices of symbols. Two such matrices are horizontal conjugates if some right cyclic shift of columns of one of them leads to the other one. With each matrix they associate a column vector LWpos of integers where the entry in the \(i\)-th row is given as the smallest number of positions of a right cyclic shift of the \(i\)-th row leading to its minimal conjugate. Then a 2D Lyndon word is a horizontally non-periodic matrix, which yields the alphabetically minimal LWpos vector among all its horizontal conjugates. The paper introduces a simple algorithm for computing the 2D Lyndon word being a conjugate of a given matrix. As applications, linear time succinct (using asymptotically smaller space in addition to the input space) algorithms are given for the horizontal 2D all-pairs suffix-prefix matching problem and for the 2D dictionary matching problem. The horizontal 2D all-pairs suffix-prefix matching problem is to find, for any pair of matrices in a given set, the longest horizontal suffix of one which is a horizontal prefix of the other. The 2D dictionary matching problem is to find all occurrences of 2D patterns in a specified set, the dictionary, within a given 2D text. / rank | |||
Normal rank | |||
Property / reviewed by | |||
Property / reviewed by: Anton Černý / rank | |||
Normal rank | |||
Property / Mathematics Subject Classification ID | |||
Property / Mathematics Subject Classification ID: 68R15 / rank | |||
Normal rank | |||
Property / zbMATH DE Number | |||
Property / zbMATH DE Number: 6691979 / rank | |||
Normal rank | |||
Property / zbMATH Keywords | |||
Lyndon word | |||
Property / zbMATH Keywords: Lyndon word / rank | |||
Normal rank | |||
Property / zbMATH Keywords | |||
periodicity | |||
Property / zbMATH Keywords: periodicity / rank | |||
Normal rank | |||
Property / zbMATH Keywords | |||
modular arithmetic | |||
Property / zbMATH Keywords: modular arithmetic / rank | |||
Normal rank | |||
Property / zbMATH Keywords | |||
two-dimensional words | |||
Property / zbMATH Keywords: two-dimensional words / rank | |||
Normal rank | |||
Property / zbMATH Keywords | |||
suffix-prefix matching, two-dimensional dictionary problem | |||
Property / zbMATH Keywords: suffix-prefix matching, two-dimensional dictionary problem / rank | |||
Normal rank |
Revision as of 03:27, 1 July 2023
scientific article
Language | Label | Description | Also known as |
---|---|---|---|
English | 2D Lyndon words and applications |
scientific article |
Statements
2D Lyndon words and applications (English)
0 references
6 March 2017
0 references
The words of the form \(uv\) and \(vu\) (where the latter word is the result of the right cyclic shift of the former word by \(\left| v\right| \) positions) are called conjugates. A Lyndon word is the unique word being minimal, with respect to the alphabetic ordering, among its conjugates. The uniqueness implies that a Lyndon word does not exist in the class of conjugates of a periodic word, i.e., of a word of the form \(u^{j}u^{\prime}\), where \(u^{\prime}\) is a proper prefix of \(u\) and \(j\geq2\). The authors propose a 2D version of Lyndon words based on properties of conjugates of rows of 2D words -- matrices of symbols. Two such matrices are horizontal conjugates if some right cyclic shift of columns of one of them leads to the other one. With each matrix they associate a column vector LWpos of integers where the entry in the \(i\)-th row is given as the smallest number of positions of a right cyclic shift of the \(i\)-th row leading to its minimal conjugate. Then a 2D Lyndon word is a horizontally non-periodic matrix, which yields the alphabetically minimal LWpos vector among all its horizontal conjugates. The paper introduces a simple algorithm for computing the 2D Lyndon word being a conjugate of a given matrix. As applications, linear time succinct (using asymptotically smaller space in addition to the input space) algorithms are given for the horizontal 2D all-pairs suffix-prefix matching problem and for the 2D dictionary matching problem. The horizontal 2D all-pairs suffix-prefix matching problem is to find, for any pair of matrices in a given set, the longest horizontal suffix of one which is a horizontal prefix of the other. The 2D dictionary matching problem is to find all occurrences of 2D patterns in a specified set, the dictionary, within a given 2D text.
0 references
Lyndon word
0 references
periodicity
0 references
modular arithmetic
0 references
two-dimensional words
0 references
suffix-prefix matching, two-dimensional dictionary problem
0 references