Old Final Questions


Hardware Issues

Each neuron in the brain can be thought of as having many inputs and one output.  Neurons work by firing a signal whenever they receive a number of signals from other neurons whose sum equals or exceeds some threshold.  For example a neuron with threshhold 3 will fire out a signal, whenever 3 or more of its input signals have been fired in.

If we use 1 to mean fire and 0 to mean don't fire, then draw a circuit out of AND, OR and NOT gates that models a neuron with 4 inputs and a threshold of 2.  The circuit should have 4 inputs and one output.  Draw a truth table and show all work.
 
 
 

Logo Programming
a.  Write a recursive Logo procedure called SCREENDIGITS that takes a word and returns a word with all the digits removed.  For example, SCREENDIGITS "fr2o34g returns "frog

b.  Write a recursive Logo procedure called REMOVESHORT that takes a list and returns a list with all words that are length 3 or less removed.  For example, REMOVESHORT [ hello there sir a pleasure to meet you] returns [hello there pleasure meet].

c.  Write recurisve and non-recursive Logo procedures for ADDTEN% which adds 10% to each number in a list.  For example, ADDTEN% [20 40 60] returns [22 44 66].
 
 
 

Machine Language

Write a machine language program that reads in one character and ouputs the letter capitalized.  If the letter input was already capitalized, the program should just output it as is.  The letters are input and output as their ASCII value numbers.  (Note that the ASCII value of “A is 65, “Z is 90, “a is 97, “z is 122).
 
 

Essay

A famous computer scientist recently said that “The question of whether or not a machine can think is as interesting as the question of whether or not a submarine can swim.”  What do you think he meant by this?  How does his comment relate to the Turing Test?  Is his statement pro-AI, anti-AI, or neutral?