View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12933 Members
Join this group to post and comment.
SheldonCooper
SheldonCooper • Jan 18, 2012

Why the name 'reflected' code given to Gray codes?

I mean what is 'reflected' in the gray code. I know that in the gray codes, the next or previous number changes only in one bit if compared with current number. I want the meaning of reflection here.
Gray Code is Unit distance,Cyclic and Reflective.For one variable gray code is simply 0 and 1
,for two variables gray code is 00,01,11,10,if we observe the any two consecutive numbers there should be only one bit is changing so gray code is unit distance.For writing gray code for 2 variables first write graycode for 1 varible ( i.e 0 and 1) in vertically
(Step1)
0
1
gray code is reflective means write the mirror image of the above one
(Step2)
0
1
1
0
gray code is cyclic means for the above first half numbers attach 0(Step3)
and remaing half numbers attach 1 (Step4)
then it will give gray code for 2 variables.
00
01
11
10
in the above step 1,2,3 and 4 represent in red ,green,blue and Pink colors consecutively.
SheldonCooper
SheldonCooper • Jan 21, 2012
Thanks. Coloring is very descriptive.😀
Bindu Chitrachedu
Bindu Chitrachedu • Dec 14, 2018

Thank you very much.

Share this content on your social channels -