Assume T is the set of binary strings of length 30 with 10 1’s and 20 0’s. Let Xbe the set of the first 30 positive integers (X:= [30] = {1,2,3,...,30}). Let Y be the set of all subsets of X containing 10 numbers. Find a one-to-one correspondence between Tand Y.
Attempt: I wrote that I knew that each position in T will correspond to one of the corresponding positions in the subset of B. For example: T={101...1} maps to B={{1,3,...,30},...}. I know it has a one-to-one correspondence because each string in T has 10 1's and each subset in B has 10 elements. But I don't know to generalize and prove it's one-to-one and onto by the definitions since I only dealt with very simple functions (i.e. f(x)=2x).
Attempt: I wrote that I knew that each position in T will correspond to one of the corresponding positions in the subset of B. For example: T={101...1} maps to B={{1,3,...,30},...}. I know it has a one-to-one correspondence because each string in T has 10 1's and each subset in B has 10 elements. But I don't know to generalize and prove it's one-to-one and onto by the definitions since I only dealt with very simple functions (i.e. f(x)=2x).
Last edited: