1. Home >
2. Apps >
3. Groups >

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

Question asked by SheldonCooper in #Coffee Room on Jan 18, 2012
SheldonCooper · Jan 18, 2012
Rank D1 - MASTER
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. Posted in: #Coffee Room
nareshkumar6539 · Jan 19, 2012
Rank D2 - MASTER
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 · Jan 21, 2012
Rank D1 - MASTER
Thanks. Coloring is very descriptive.😀
Bindu Chitrachedu · Dec 14, 2018
Rank E1 - BEGINNER

Thank you very much.

## You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up