|
|
|
|
|
by oshepherd
3216 days ago
|
|
It's the same just with redundant representations (the 2-bit repr is the count of ones in the 3-bit repr) '00' -> '000'
'01' -> '001', '010', '100'
'10' -> '011', '101', '110'
'11' -> '111'
this kind of transformation is truly bread & butter in hardware; we regularly numbers between binary counts, mask/number-of-set-bits and one-hot representations for optimisation purposes. |
|