(no title)
oshepherd | 8 years ago
'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.
Sniffnoy|8 years ago