Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

AI Assignment

Learner's Name: Garvit Goyal

Learner's ID130101069

Date handed-in. 02/11/2016

Plagiarism Statement
I declare that, apart from properly referenced quotations, this report is my own work and contains no plagiarism; it has not been
submitted previously for any other assessed unit on this or other courses.
Learner's Signature: Garvit

Date:02/11/2016

Q4
(a).What is the role of neuron in determining efficiency of
parallel computing? Detail in terms of mc Collin pitts
criteria?
(b). How does computational neuron operates? Detail with
help of diagram using xor gate.

Answers.
(b). Exclusive OR means that we want a truth value of 1 either when A is 1, or when B is 1, but not when
both A and B are 1. The truth table on the right shows this.
To use a real world example, in the question "would you like tea or coffee?", the "or" is actually and
exclusive or, because the person is offering you one or the other, but not both. Contrast this with "would you
like milk or sugar?". In this case you can have milk, or sugar, or both.

As I said, it is not possible to set up a single neuron to perform the XOR operation . This is where networks
come into it. The only way to solve this problem is to have a bunch of neurons working together. But we
can use what we have learnt from the other logic gates to help us design this network.
I'll start by breaking down the XOR operation into a number of simpler logical functions:
A xor B = (AvB) ^ (A^B)
All that this says is that A xor B is the same as A or B and not A and B. In other words, it is the same truth
table as AvB, but with the A^B line (the bottom line, when both inputs are 1) removed (or set to 0).
This line of logic contains three important operations: an OR operator in the brackets on the left, an AND
operator in the brackets on the right, and another AND operator in the middle.
We can create a neuron for each of these operations, and stick them together like this:

The upper of the two red neurons in the first layer has two inputs with synaptic weights of 0.6 each and a
threshold of 1, exactly the same as the AND gate we made earlier. This is the AND function in the brackets
on the right of the formula I wrote earlier. Notice that it is connected to the output neuron with a negative
synaptic weight (-2). This accounts for the NOT operator that precedes the brackets on the right hand side.
The lower of the two red neurons in the first layer has two synaptic weights of 1.1 and a threshold of 1, just
like the OR gate we made earlier. This neuron is doing the job of the OR operator in the brackets on the left
of the formula.
The output neuron is performing another AND operation - the one in the middle of the formula. Practically,
this output neuron is active whenever one of the inputs, A or B is on, but it is overpowered by the inhibition
of the upper neuron in cases when both A and B are on.

You might also like