%0 Journal Article %T <i>q</i>进制反射Gray码的几个注记<br>Notes on the Q-ary Reflected Gray Codes %A 张帅 %A 瞿云云 %A 包小敏 %A 黄华伟< %A br> %A ZHANG Shuai %A QU Yun-yun %A BAO Xiao-min %A HUANG Hua-wei %J 西南大学学报(自然科学版) %D 2017 %R 10.13718/j.cnki.xdzk.2017.07.017 %X 对整数q≥ 2给出一个计算<i>q</i>进制反射<i>Gray</i>码中码字位置的计算公式,二进制反射<i>Gray</i>码中码字的位置的计算公式是此公式的一个特例.另外介绍了两种各具优势的生成<i>q</i>进制反射<i>Gray</i>码的算法:其中一个算法可生成<i>q</i>进制反射<i>Gray</i>码中任意位置上的码字;另一个算法可逐个生成<i>q</i>进制反射<i>Gray</i>码中的码字.<br>The formula for calculating the position of a code in the binary reflected Gray codes is already known. This paper presents a formula for calculating the position of a codeword in the <i>q</i>-ary reflected Gray codes for any integer <i>q</i>≥2, and this formula takes the binary case as a special case. This paper also introduces two algorithms for generating the <i>q</i>-ary reflected Gray codes: the first one can generate a codeword at any position in the <i>q</i>-ary reflected Gray; the other one can generate a codeword that comes after any given codeword in the <i>q</i>-ary reflected Gray %K 反射Gray码 %K 位置 %K < %K i> %K q< %K /i> %K -进制 %K 自然码< %K br> %K reflected Gray code %K position %K < %K i> %K q< %K /i> %K -ary %K natural code %U http://xbgjxt.swu.edu.cn/jsuns/html/jsuns/2017/7/201707017.htm