首页 | 本学科首页   官方微博 | 高级检索  
     


Words that almost commute
Affiliation:School of Computer Science, University of Waterloo, Waterloo, Ontario N2L 3G1, Canada
Abstract:The Hamming distance ham(u,v) 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 x,y such that u=xy and v=yx. The smallest value ham(xy,yx) can take on is 0, when x and y commute. But, interestingly, the next smallest value ham(xy,yx) can take on is 2 and not 1. In this paper, we consider conjugates u=xy and v=yx where ham(xy,yx)=2. More specifically, we provide an efficient formula to count the number h(n) of length-n words u=xy over a k-letter alphabet that have a conjugate v=yx such that ham(xy,yx)=2. We also provide efficient formulae for other quantities closely related to h(n). Finally, we show that h(n) 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 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号