Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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)

A

If x is a binary string with an even number of 1s, so is 1x1, 0x, and x0.

B

The string 0 belongs to the set

C

The string 11 belongs to the set

D

If x is a binary string, so is 0x0, 1x, and x1.

E

If x is a binary string with an even number of 1s, so is 0x0, 1x, and x1.

F

If 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.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote