Dazed&Confused
- 190
- 3
Homework Statement
A particular logic gate takes two binary inputs A and B and has two binary outputs A' and B'. I won't reproduce the truth table. Suffice to say every combination of A and B is given. The output is produced by A' = \text{NOT} \ A and B' = \text{NOT} \ B. The input has Shannon entropy of 2 bits. Show that the output has a Shannon entropy of 2 bits.
A second logic has output produced by A' = A \ \text{OR} \ B and B' = A \ \text{AND} \ B. Show that the output now has an entropy of \frac32 bits.
Homework Equations
S = - \sum_{i} k P_i \log P_i
The Attempt at a Solution
From what I (don't) understand, P = \frac12 in the first example for A, B, A',B' so the total number of bits is the same for both input and output. For the second example, I would say P_{A'} = \frac34 and P_{B'} = \frac14, but that does not produce the correct number of bits.