A particular logic gate takes two binary inputs A and B and has two binary outputs A′ and B′. Its truth table is
A0011B0101A′1100B′1010
and the operations producing these outputs are A′=NOTA and B′=NOTB. The input has a Shannon entropy of 2 bits. Show that the output has a Shannon entropy of 2 bits.
A second logic gate has a truth table given by
A0011B0101A′0111B′0001
This can be achieved using A′=AORB and B′=AANDB. Show that the output now has an entropy of 23 bits. What is the crucial difference between the two logic gates?