Simple Logic Circuits
AND Gate
The following are some easy problems that use a perceptron. We will look at logic circuits here. Let's think about an AND gate first. An AND gate consists of two inputs and one output. The table of input and output signals in Figure 2.2 is called a "truth table." As shown in Figure 2.2, the AND gate outputs 1 when two inputs are 1. Otherwise, it outputs 0:
Figure 2.2: Truth table of an AND gate
Now, we will use a perceptron to express this AND gate. We will determine the values of w1, w2, and θ so that they satisfy the truth table of Figure 2.2. What values can we set to create a perceptron that satisfies the conditions of Figure 2.2?
Actually, there is an infinite number of combinations of the parameters that satisfy Figure 2.2. For example, when (w1, w2, θ) = (0.5, 0.5, 0.7), the perceptron works as shown in Figure 2.2. (0.5, 0.5, 0.8) and (1.0, 1.0, 1.0) also satisfy the conditions of the AND...