Artificial Neural Networks ◾ 203
2. Design a perceptron for the following problem: the inputs to the net-
work are strings of six bits (i.e., there are six input neurons), and the
perceptron has six output neurons that count the number of bits,
which are 1 in the input strings as follows:
e output is 000000 if the input contains no 1’s.
e output is 100000 if the input contains a single 1 (its position is
unimportant).
e output is 110000 if the input contains two 1’s.
…
…
e output is 111111 if the input is all 1’s.
3. Can you design a perceptron for Exercise 2 if the output is represented
by the position of a single 1 in the output neurons? For instance:
100000 represents an input string containing a single 1.
010000 rep