4. [6 marks] (Basic Counting) How many bit strings of length 10 contain either five consecutive 0s or five consecutive 1s?
•Consider 5 consecutive 0s first
•Sum rule: the 5 consecutive 0’s can start at position 1, 2, 3, 4, 5, or 6
–Starting at position 1
•Remaining 5 bits can be anything: 25 = 32
–Starting at position 2
•First bit must be a 1
–Otherwise, we are including possibilities from the previous case!
•Remaining bits can be anything: 24 = 16
–Starting at position 3
•Second bit must be a 1 (same reason as above)
•First bit and last 3 bits can be anything: 24 = 16
–Starting at positions 4 and 5 and 6
•Same as starting at positions 2 or 3: 16 each
–Total = 32 + 16 + 16 + 16 + 16 + 16 = 112
•The 5 consecutive 1’s follow the same pattern, and have 112 possibilities
•There are two cases counted twice (that we thus need to exclude): 0000011111 and 1111100000
•Total = 112 + 112 – 2 = 222
4. [6 marks] (Basic Counting) How many bit strings of length 10 contain either five consecutive...
consider all bit strings of length 12 How many have 8 0s and 4 1s that have exactly 3 consecutive 1s (allow 4 consecutive 1s)? A 90 В 72 С 45 D 36 E 9 consider all bit strings of length 12 How many have 8 0s and 4 1s that have exactly 3 consecutive 1s (allow 4 consecutive 1s)? A 90 В 72 С 45 D 36 E 9
Problem 3 (Counting binary strings) 20 marks/ Consider all bit strings of length 15. 1. How many begin with 00? 2. How many begin with 00 and end with 11? 3. How many begin with 00 or end with 10? 4. How many have exactly ten 1's? 5. How many have exactly ten 1's such as none of these 1's are adjacent to each other? Provide detailed justifications for your answers. Problem 3 (Counting binary strings) 20 marks/ Consider all...
Let A be the set of all bit strings of length 10. 1. How many bit strings of length 10 are there? How many bit strings of length 10 begin with 1101? How many bit strings of length 10 have exactly six 0's? How many bit strings of length 10 have equal numbers of O's and 1's? How many bit strings of length 10 have more O's than 1's? a. b. c. d. e.
Exercise 8.12.20: Counting binary strings. (a) How many binary strings of length 12 do not have exactly four 1's? (b) How many binary strings of length 12 start with 101 or 1110? (e) How many binary strings of length 12 start with 00 or end with 00 or both?
15to25 15.How many ways are there to seat ten people around a circular table where two seatings are considered the same when every one has the same immediate left and immediate right neighbor? 16.In how many ways can a photographer at a wedding arrange six people in a row, including the bride and groom, if a) the bride must be next to the groom? b) the bride is not next to the groom? 17.How many bit strings of length seven...
I know how to do a) and b) but unsure about c) c) Number of strings that (do not not contain "cab" or "bac" BUT may contain repeated consecutive letters), OR (strings that do not contain repeated consecutive letters but may contain "cab" or "bac"). Question 3. (5 marks) A language L is defined over a set of three letters {a, b, c}. A string ordering matters (i.e. "abc" is not equal to "bca"). The length of a string is...
How many eight-bit strings either begin with 00 or end with 111?
How many binary sequences of length 20 are there that(a) Start with a run of 0s—that is, a consecutive sequence of (at least) one 0—then a run of 1s, then a run of 0s, then a run of 1s, and finally finish with a run of 0s?(b) Repeat part (a) with the constraint that each run is of length at least 2.
How many bit strings of length n are palindromes? Hint: Consider two cases n is even and n is odd. Note a palindrome is a “string” of letters or numbers which read the same “frontwards” and backwards”. Examples: 1101011, 10111101 are palindromes.
Problem 3 a) How many strings are there of length 10 over the alphabet (a, b) with exactly five a's? b) How many strings are there of length 10 over the alphabet (a, b, c) with exactly five a's?