Build logic gate with perceptron algorithm

Ryan
Jul 29, 2021

The perceptron algorithm was invented in 1958 at the Cornell Aeronautical Laboratory by Frank Rosenblatt. Perceptron mimics neuron, inputs data from other neurons and outputs to other neurons.

Perceptron has its own weights w1, w2, ...,with input x1, x2, …, total sum of inputs x1w1 + x2w2 + … is lower than threshold 𝜃 outputs 0 vice versa, it is called activate.

Without changing structure, by changing weights and threshold we can build AND, NAND and OR gate.

Logic gate using perceptron

Using multiple perceptrons we can also build XOR gate.

--

--

Ryan

iOS engineer & data science enthusiast. Into algorithmic trading. https://github.com/Rsych