
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Definition: If x = x 1 x 2 x 3 · · · xn− 1 xn is a bit string of length n then a substring of x is a bit string of the form xixi+1 · · · xk where i and k are any integers satisfying 1 ≤ i ≤ n and 1 ≤ k ≤ n. (Note that if k is less than i then we obtain the empty substring.)
Problem. Let α be the bit string of length 7 given by
α = 0011101.
(a) There are eight different bit strings with length 3. Which (if any) of them do NOT occur as substrings of α? (b) Let A be the set of all substrings of α. How many elements does A have? List all of the elements of A.