Question

Assume strings contain ONLY the letters: a, b. How many bit strings of length 8 either...

Assume strings contain ONLY the letters: a, b.

How many bit strings of length 8 either start with bbb or end with aa ?

Homework Answers

Answer #1

n(start with bbb) = n(fix first 3 as bbb, combinations for remaining 5 letters)

= (no. of option for each letter)^5

= 2^5

= 32

n(end with aa) = n(fix last 2 as aa, combinations for remaining 6 letters)

= (no. of option for each letter)^6

= 2^6

= 64

n(start with bbb and end with aa)

= n(fix last 2 as aa, first 3 as bbb, combinations for remaining 3 letters)

= (no. of option for each letter)^3

= 2^3

= 8

n(start with bbb or end with aa) = n(start with bbb) + n(end with aa) - n(start with bbb and end with aa)

{subtracting n(start with bbb and end with aa) since it is counted twice as it is common in both cases}

= 32+64-8

= 88 (answer)

(please UPVOTE)

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
how many bit of strings of length five start either or end with two zeros?
how many bit of strings of length five start either or end with two zeros?
(a) How many 12-bit strings contain exactly five 1's? (b) How many 12-bit strings contain at...
(a) How many 12-bit strings contain exactly five 1's? (b) How many 12-bit strings contain at least nine 1's? .(c) How many 12-bit strings contain at least one 1? (d) How many 12-bit strings contain at most one 1?
How many bit strings of length 12 contain the substring "111000"?
How many bit strings of length 12 contain the substring "111000"?
How many bit strings with length 8 does not contain two consecutives 1’s, i.e., does not...
How many bit strings with length 8 does not contain two consecutives 1’s, i.e., does not contain the sub string 11.
This is a Discrete math problem. a. How many bit strings of length 12 are there...
This is a Discrete math problem. a. How many bit strings of length 12 are there in total? b. How many bit strings of length 12 contain an odd number of 1s? c. How many bit strings of length 12 contain “111000” as a substring of 6 consecutive bits in a row?
Discrete Math a.) How many bit strings are there of length five or less, not counting...
Discrete Math a.) How many bit strings are there of length five or less, not counting the empty string? b.) How many different three-letter initials with none of the letters repeated can people have? c.) How many different three-letter initials are there that begin with the letter B? d.) How many 5-element DNA sequences end with A? e.) How many bit strings of length nine both begin and end with 1?
how many strings of 8 lower case letters from the English alphabet contain the letter a?...
how many strings of 8 lower case letters from the English alphabet contain the letter a? how many strings if 8 lower case letter from the english alphabet contain the letter a and b?
How many 8-bit strings contain 5 or more 1’s?
How many 8-bit strings contain 5 or more 1’s?
(a) Find a recurrence relation for the number of bit strings of length n that contain...
(a) Find a recurrence relation for the number of bit strings of length n that contain the substring 10. (b) What are the initial conditions? (c) How many bit strings of length seven (i.e. a7) contain the substring 10?
Let letters A,B,C,D,E,F,G be used to form strings of length 4. How many strings of length...
Let letters A,B,C,D,E,F,G be used to form strings of length 4. How many strings of length 4 with repetitions contain A and B. How about without repetitions?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT