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

SheldonCooper

SheldonCooper

@sheldoncooper-KRWqFp Oct 23, 2024
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.

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • nareshkumar6539

    nareshkumar6539

    @nareshkumar6539-BKuVbx Jan 18, 2012

    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

    @sheldoncooper-KRWqFp Jan 21, 2012

    Thanks. Coloring is very descriptive.😀
  • Bindu Chitrachedu

    Bindu Chitrachedu

    @bindu-fkRouw Dec 14, 2018

    Thank you very much.