
9/26/2001: These non-programming homeworks will be posted on Wednesday and then collected during the 2nd lecture of the following week (i.e., Thursday for Kremer and Borgida, Weds for Ryder). Throughout the semester, at random we will choose problems on these assignments to grade for credit towards your final grade.
2. Build a Prolog predicate stutter(S,T) which when given a list of constants
in S (e.g., [1,2,3] or [a,b,c]) builds a new list that repeats every element
of the original list, in a sublist. For example,
stutter([a,b,c],[[a,a],[b,b],[c,c]]) is true.
Also, stutter([1,2],X) associates the value [[1,1],[2,2]] with
variable X.
Due during second lecture in the week of October 1, 2001.
There are some typos in this homework
and they have been corrected now. Make sure that you have the
corrected version of the assignment. (Updated 10/08/2001 1:21
p.m.)
last changed by AB 12/14/01 .