QUANTIFYING INFORMATION For each 7bit input burst youd like
QUANTIFYING INFORMATION: For each 7-bit input burst, you’d like to produce a digital W-code that reflects the number of 1s among the 7 bits. the w code is the output code and counts only the numbert of ones present in the 7 bit input bursr. the w code consists of only three bits and it is the binary sum of the ones that are present in the 7 bits. 128 possible values from 7 bit generator. example I got right: w code is 001 what information is given by that code- answer log2(128/7) this is information given by code.001
QUESTION what information is given by this w code. 000 Put in the form log2(y/x)
Solution
The answer is in the form log2(128/1)
that means y=128 and x=1
because the code 001 gives the sum of one\'s in the 7-bit codes
that means when 7-bit code is 0000001, 0000010, 0000100, 0001000, 0010000, 0100000, 1000000 then only w-code is 001
number of possibilities are 7 out of 128
so x=7, y=128
from above information the w-code is 000 when 7-bit code is 0000000
number of possibilities is 1
so x=1, y=128.
