Binary strings and discrete math. Let S be the set of binary strings of length 30 with 10 1’s and 20 0’s. Let A be the set of the first 30 positive integers {1,2,3,…,30}. Let B be the set of all subsets of A containing 10 numbers. Find a one-to-one correspondence between S and B.

nar6jetaime86

nar6jetaime86

Answered question

2022-09-07

Binary strings and discrete math
Let S be the set of binary strings of length 30 with 10 1’s and 20 0’s. Let A be the set of the first 30 positive integers {1,2,3,…,30}. Let B be the set of all subsets of A containing 10 numbers. Find a one-to-one correspondence between S and B.

Answer & Explanation

Peugeota2p

Peugeota2p

Beginner2022-09-08Added 14 answers

Step 1
It's probably easier to start with a simpler version of the problem so that you could draw pictures, say, let T be the set of all bitstrings of length 8 with three 1s and five 0s, and let C be {1,2,…,8}, and let D be the set of all subsets of C containing three numbers.
Now visualize an element of C; for example, {3,5,6}. What would the corresponding bitstring be? If we only had three 1s, we could assign a one to each position corresponding to an element of {3,5,6} like so:
00101100
Step 2
Maybe even make a chart:
1 2 3 4 5 6 7 8
0 0 1 0 1 1 0 0
See if you can continue from here.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?