Question: help me solve this 9. (5 points) As discussed in class, given a finite set S of size n and an ordering 81,82,...,n of the
9. (5 points) As discussed in class, given a finite set S of size n and an ordering 81,82,...,n of the n elements in S, we can represent the subsets of S using bit vectors of length n ({0,1}"). For a subset ACS, the corresponding bit vector b(A) = (b1,b2, ...,br) where b; = 1 if s; e A and bi = 0 if si A. Let S be the elements from the four sets in Problem 1 ordered as -13, -6, 1, 4, 87, 0, 4, (a) Give the bit vector corresponding to the subset (1,87,0,1}. (b) Give the bit vector corresponding to the subset (-13, 1,87, A}. (c) Give the bit vector corresponding to the subset (1,4, -6,0}. (d) Give the bit vector corresponding to the subset 0. (e) Give the bit vector corresponding to S. 9. (5 points) As discussed in class, given a finite set S of size n and an ordering 81,82,...,n of the n elements in S, we can represent the subsets of S using bit vectors of length n ({0,1}"). For a subset ACS, the corresponding bit vector b(A) = (b1,b2, ...,br) where b; = 1 if s; e A and bi = 0 if si A. Let S be the elements from the four sets in Problem 1 ordered as -13, -6, 1, 4, 87, 0, 4, (a) Give the bit vector corresponding to the subset (1,87,0,1}. (b) Give the bit vector corresponding to the subset (-13, 1,87, A}. (c) Give the bit vector corresponding to the subset (1,4, -6,0}. (d) Give the bit vector corresponding to the subset 0. (e) Give the bit vector corresponding to S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
