Give a recursive definition for the set of all binary strings containing an even
ID: 3793781 • Letter: G
Question
Give a recursive definition for the set of all binary strings containing an even number of 1s.
(Select one or more of the following answers)
If x is a binary string with an even number of 1s, so is 1x1, 0x, and x0.
The string 0 belongs to the set
The string 11 belongs to the set
If x is a binary string, so is 0x0, 1x, and x1.
If x is a binary string with an even number of 1s, so is 0x0, 1x, and x1.
If x is a binary string, so is 1x1.
(I think A and C are correct, but I am not sure about B)
AIf x is a binary string with an even number of 1s, so is 1x1, 0x, and x0.
BThe string 0 belongs to the set
CThe string 11 belongs to the set
DIf x is a binary string, so is 0x0, 1x, and x1.
EIf x is a binary string with an even number of 1s, so is 0x0, 1x, and x1.
FIf x is a binary string, so is 1x1.
Explanation / Answer
The answer is A. C is not the right answer because the it is not neccesarily required to have 11 in the string. For example the string 0101 belongs to the set of binary strings. But it does not have 11.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.