Docsity

Practice Problems on Discrete Mathematical Structures for Homework | MATH 2513, Assignments of Mathematics

Toggle sidebar
bg1
Class Problem
Math 2513
1/27/05
Definition: If x=x1x2x3· · · xn−1xnis a bit string of length nthen a
substring of xis a bit string of the form xixi+1 · · · xkwhere iand kare any
integers satisfying 1 ≤i≤nand 1 ≤k≤n. (Note that if kis 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 Abe the set of all substrings of α. How many elements does Ahave?
List all of the elements of A.

Partial preview of the text

Download Practice Problems on Discrete Mathematical Structures for Homework | MATH 2513 and more Assignments Mathematics in PDF only on Docsity!

Class Problem

Math 2513

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.