Words that almost commute |
| |
Affiliation: | School of Computer Science, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada |
| |
Abstract: | The Hamming distance between two equal-length words u, v is the number of positions where u and v differ. The words u and v are said to be conjugates if there exist non-empty words such that and . The smallest value can take on is 0, when x and y commute. But, interestingly, the next smallest value can take on is 2 and not 1. In this paper, we consider conjugates and where . More specifically, we provide an efficient formula to count the number of length-n words over a k-letter alphabet that have a conjugate such that . We also provide efficient formulae for other quantities closely related to . Finally, we show that grows erratically: cubically for n prime, but exponentially for n even. |
| |
Keywords: | Conjugate Hamming distance Lyndon conjugates Almost commutative words Lyndon-Schutzenberger Fine-Wilf pairs Finite Sturmian words |
本文献已被 ScienceDirect 等数据库收录! |
|