Question

In: Statistics and Probability

How many bit strings of length 8 if i. bit strings start with the bit 1;...

How many bit strings of length 8 if i. bit strings start with the bit 1; ii. bit strings end with the two bits 00; iii. bit strings either start with the bit 1 or end with the bits 00.؟

Solutions

Expert Solution

Solution:
There are 2 bits 0 and 1 through which we can make a byte of length 8
Solution(i)
We need to calculate no. of ways that length of 8 can be made which will start with bit 1
First bit can be select = 1 way i.e. 1
The second bit can be select = 2 ways i.e. 0 or 1
The third bit can be select = 2 ways i.e. 0 or 1
The fourth bit can be select = 2 ways i.e. 0 or 1
The fifth bit can be select = 2 ways i.e. 0 or 1
The sixth bit can be select = 2 ways i.e. 0 or 1
The seventh bit can be select = 2 ways i.e. 0 or 1
An eighth bit can be select = 2 ways i.e. 0 or 1
So total number of ways length of 8 can be made = 1*2*2*2*2*2*2*2 = 128
Solution(ii)
We need to calculate bit string end with two-digit 00
First bit can be select = 2 way i.e. 0 and 1
The second bit can be select = 2 ways i.e. 0 or 1
The third bit can be select = 2 ways i.e. 0 or 1
The fourth bit can be select = 2 ways i.e. 0 or 1
The fifth bit can be select = 2 ways i.e. 0 or 1
The sixth bit can be select = 2 ways i.e. 0 or 1
The seventh bit can be select = 1 way i.e. 0
An eighth bit can be select = 1 way i.e. 0
So total number of ways length of 8 can be made = 2*2*2*2*2*2*1*1 = 64
Solution(iii)
bit either start with 1 or end with 00 which can be calculated as
No. of the string of length 8 digits with start with 1 or end with 00 = No. of the string of length 8 digits with start with 1 + No. of a string of length 8 digits with end with 00 - No. of the string of length 8 digits with start with 1 and end with 00
No. of the string of length 8 digits with start with 1 and end with 00 can be calculated as
First bit can be select = 1 way i.e. 1
The second bit can be select = 2 ways i.e. 0 or 1
The third bit can be select = 2 ways i.e. 0 or 1
The fourth bit can be select = 2 ways i.e. 0 or 1
The fifth bit can be select = 2 ways i.e. 0 or 1
The sixth bit can be select = 2 ways i.e. 0 or 1
The seventh bit can be select = 1 way i.e. 0
An eighth bit can be select = 1 way i.e. 0
No. of the string of length 8 digits with start with 1 and end with 00 = 1*2*2*2*2*2*1*1 = 32
No. of the string of length 8 digits with start with 1 or end with 00 = 128 + 64 - 32 = 160


Related Solutions

1. How many 12-bit strings (that is, bit strings of length 14) start with the sub-string...
1. How many 12-bit strings (that is, bit strings of length 14) start with the sub-string 011? 2. You break your piggy bank to discover lots of pennies and nickels. You start arranging them in rows of 6 coins. How many coins would you need to make all possible rows of 6 coins (not necessarily with equal numbers of pennies and nickels)? 3. How many shortest lattice paths start at (4, 4) and end at (13, 13)? 4. What is...
How many bit-strings are there of length 128 that either start with 1111 or end with...
How many bit-strings are there of length 128 that either start with 1111 or end with 0000 but not both?
How many 7-bit strings are there which... (a) Start with the sub string 10? Explain. (b)...
How many 7-bit strings are there which... (a) Start with the sub string 10? Explain. (b) Have exactly 4 ones? Explain. (c) Either start with 10 or end with 11 (or both)? Explain.
How many bit strings of length eight contain either at least five consecutive 0s or at...
How many bit strings of length eight contain either at least five consecutive 0s or at least five consecutive 1s? Explain.
How many bit strings of length fifteen a) Contain at least four 0s? b) Contain at...
How many bit strings of length fifteen a) Contain at least four 0s? b) Contain at most four 0s? c) Contain exactly four 0s? d) Begin with four 0s?
How many bit strings of length fifteen a) Contain at least four 0s? b) Contain at...
How many bit strings of length fifteen a) Contain at least four 0s? b) Contain at most four 0s? c)Contain exactly four 0s? d) Begin with four 0s?
(2) More inclusion-exclusion counting: How many bit strings of length 15 have bits 1, 2, and...
(2) More inclusion-exclusion counting: How many bit strings of length 15 have bits 1, 2, and 3 equal to 101, or have bits 12, 13, 14, and 15 equal to 1001 or have bits 3, 4, 5, and 6 equal to 1010? (Number bits from left to right. In other words, bit #1 is the left most bit and bit #15 is the right most bit.) Hint: The fact that the third bit appears in two of the required patterns...
Recall that a 5-bit string is a bit strings of length 5, and a bit string...
Recall that a 5-bit string is a bit strings of length 5, and a bit string of weight 3, say, is one with exactly three 1’s. a. How many 5-bit strings are there? b. How many 5-bit strings have weight 0? c. How many 5-bit strings have weight 1? d. How many 5-bit strings have weight 2? e. How many 5-bit strings have weight 4? f. How many 5-bit strings have weight 5? g. How many 5-bit strings have weight...
This is one question about 14-bit strings How many 14-bit strings that have more 0’s than...
This is one question about 14-bit strings How many 14-bit strings that have more 0’s than 1’s? How many 14-bit strings that have even number of 0’s? How many 14-bit strings that have no consecutive three 0’s in a row?
Suppose that you pick a bit string from the set of all bit strings of length...
Suppose that you pick a bit string from the set of all bit strings of length ten. Find the probability that the bit string has exactly two 1s; the bit string begins and ends with 0; the bit string has the sum of its digits equal to seven; the bit string has more 0s than 1s; the bit string has exactly two 1s, given that the string begins with a 1.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT