Blundell Thermal Physics · Problem 15.2

Information theory

Physics — Statistical Mechanics · shannon-entropy-logic-gates

Problem

A particular logic gate takes two binary inputs AA and BB and has two binary outputs A′A' and B′B'. Its truth table is ABA′B′0011011010011100\begin{array}{cc|cc} A & B & A' & B' \\ \hline 0 & 0 & 1 & 1 \\ 0 & 1 & 1 & 0 \\ 1 & 0 & 0 & 1 \\ 1 & 1 & 0 & 0 \end{array} and the operations producing these outputs are A′=NOT AA' = \text{NOT}\, A and B′=NOT BB' = \text{NOT}\, B. 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 ABA′B′0000011010101111\begin{array}{cc|cc} A & B & A' & B' \\ \hline 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 0 \\ 1 & 0 & 1 & 0 \\ 1 & 1 & 1 & 1 \end{array} This can be achieved using A′=A OR BA' = A\, \text{OR}\, B and B′=A AND BB' = A\, \text{AND}\, B. Show that the output now has an entropy of 32\frac{3}{2} bits. What is the crucial difference between the two logic gates?

Related theory

Browse the problem library