a) We need to consider 3 different cases.
Case 1: there are six 1s.
Case 2: there are seven 1s.
Case 3: there are eight 1s.
Since there is no overlap between these three cases, the addition principle is used to determine the total number of 8-bit strings that contain at least six 1s:
"=28+8+1=37"
37 bit strings of length 8 contain at least 6 ones.
b) The amount of strings which contain at least 3 ones and 3 zeros is the sum of the amounts of the strings that contain exactly 3, 4, 5 ones (other places will be automatically taken by zeros)
"=56+70+56=182"
182 bit strings of length 8 contain at least 3 ones and 3 zeros.
Comments
Leave a comment