请输入您要查询的字词:

 

单词 BinaryGrayCode
释义

binary Gray code


An n-bit binary Gray code is a non-repeating sequence of the integers from 0 to 2n-1 inclusive such that the binary representation of each number in the sequence differs by exactly one bit from the binary representation of the previous number: that is, the Hamming distanceMathworldPlanetmathPlanetmath between consecutive elements is 1. In addition, we also define a cyclic Gray code to be a Gray code where an extra condition is imposed: The last number in the sequence must differ by exactly one bit from the first number in the sequence.

For example, one 3-bit cyclic Gray code is:

0002
0102
0112
0012
1012
1112
1102
1002

There is a one-to-one correspondence between all possible n-bit Gray codes and all possible Hamiltonian cyclesMathworldPlanetmath on an n-dimensional hypercube. (To see why this is so, imagine assigning a binary number to each vertex of a hypercube where an edge joins each pair of vertices that differ by exactly one bit.)

随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 8:23:30