How many bit strings of length 10 have... (a) Exactly four 1s in a row? (b) at least eight 0s in a row?
(a) Exactly four 1s in a row?
n=10
r=4
Evaluate the defination of a combinatio:
C(10,4)=10! / 4!(10−4)!=210
(b) at least eight 0s in a row?
n=10
r>=8
C(10,8)=10! / 8!(10−8)!=45
C(10,9)=10! / 9!(10−9)!=10
C(10,10)=10! / 10!(10−10)!=1
Add the number of bit strings for each value of r:
45+10+1=56
How many bit strings of length 10 have... (a) Exactly four 1s in a row? (b)...
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
Consider all bit strings of length 12. How many have exactly four 1's?
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.
4. [6 marks] (Basic Counting) How many bit strings of length 10 contain either five consecutive 0s or five consecutive 1s?
Help asap please: How many ternary strings of length n have at least four 0s?
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...
1. Find a grammar for L(G) = {All bit strings with twice as many 1s as 0s}. 2. Find a grammar for L(G) = {w | | w | is odd, ∑ = (0,1)}. 3. Find a grammar for the odd palindromes over {a, b, c}.
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?
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?
Multiple Choice How many strings of length 12 over the alphabet {a,b,c} have exactly three a's or have exactly three b's or have exactly three c's? (1?).22-3-(3) °(12):22-3-(?) (3) ° (13)-3-(1) QUESTION 20 Multiple Choice How many binary strings of length 12 have exactly six 1's or begin with a 0? ° (62) +211 -(0 ° (12) +201 - 1 ° (6) +211 -(5) ° (12) + 211