Homework2-solutions

Homework2-solutions - Neural Networks Homework 2 Due 21...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Neural Networks Homework 2, Due 21 January 2011 1. (Haykin 3/e problem 1.3) a. The perceptron may be used to perform numerous logic function. Demonstrate the implementation of the binary logic function AND, OR, and COMPLEMENT. (Assume the input to AND and OR is two numbers drawn from {-1,1} representing false and true (respectively) and the input to COMPLEMENT is one number drawn from {-1,1}. To implement AND, we can use weights u w =[m 0.511 ] T for the bias, x , and y respectively. These values yield the following truth table: AND x y bias v, y 1 1 1 1.5, 1 1 -1 1 -.5, -1 -1 1 1 -.5, -1 -1 -1 1 -2.5, -1 To implement OR, we can use weights u w =[ 111 ] T yielding this truth table: OR x y bias v, y 1 1 1 3, 1 1 -1 1 1, 1 -1 1 1 1, 1 -1 -1 1 -1, -1 Finally, to implement NOT, we can use weights u w =[ 01 ] T yielding truth table: NOT x bias v, y 1 1 1, 1 -1 1 -1, -1 b.A basic limitation of the perceptron is that it cannot implement the EXCLUSIVE-OR function. Explain the reason for this limitation.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Homework2-solutions - Neural Networks Homework 2 Due 21...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online