Questions:
Possible answers:
Review Written Assignment 2.
def fib(n):
if (n == 0) or (n == 1):
return n
else:
return fib(n - 1) + fib(n - 2)
10001001
01110110
111
and 000
yields: 111000
The Thue sequence describes a sequence of binary strings.
Write: The Thue sequence is defined as T0=0 and for any n≥0,
Tn+1= the concatenation of Tn and the complement of Tn