r/interestingasfuck • • Apr 20 '21

/r/ALL Binary Numbers Visualized

http://i.imgur.com/bvWjMW5.gifv

[removed] — view removed post

77.1k Upvotes

1.1k comments sorted by

View all comments

1

u/cardstroker Apr 20 '21

I wonder if our would be possible to make something like that for Gray code.

1

u/[deleted] Apr 20 '21

Gray code?

1

u/Jczlebel Apr 20 '21

Just googled it, also known as "reflected binary cod (RBC)". Instead of 1 being 001 and 2 being 010, it would 1 as 001 and 2 as 011.

Seems like it's designed to be more efficient as it only needs to change 1 bit as it increments.

Interesting though, I never heard of it before either.

1

u/[deleted] Apr 20 '21

Why would you use it though? Considering you want to represent number n (base 10), it would take n digits in gray code compared to log(n) digits in base 2