Question

An n-bit binary string is a sequence of length n over the alphabet {0,1}. How many...

An n-bit binary string is a sequence of length n over the alphabet {0,1}.

  1. How many n-bit binary strings are there?
  2. How many n-bit binary strings b1,…,bn are there such that b1b2≠00? In other words, how many n-bit binary strings don't begin with 00?
  3. How many n-bit binary strings b1,…,bn are there such that b1b2≠00 and b2b3≠11?
  4. How many n-bit binary strings b1,…,bn are there such that b1b2≠00 and such that b2b3≠01?

Homework Answers

Answer #1

Q1

Each position has 2 choices either it is 0 or it is 1 so there are 2^n possible strings

Q2

Rest n-2 positions can be filled in ways and the first two positions can be filled by 11,10,01

So the answer is ways

Q3

Then among the 8 possibilities, we have for first 3 bits we have to reject 000,001,011,111 rest of the strings are acceptable hence the answer is

Q4

For this similarly, we reject the strings which have 000,001,101 in the beginning rest 5 combinations out of the 8 are acceptable hence the answer is

Do give a thumbs up and in case there are doubts leave a comment.

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
n digit string of length n over alphabet {0,1, . . . ,9} a. How many...
n digit string of length n over alphabet {0,1, . . . ,9} a. How many n digit strings are there with at least one 1? b. many n digit are there with EXACTLY one 1? PLEASE ANSWER BOTH AND INCLUDE THE FACT THAT THE STRING IS OVER ALPHABET {0,1,2,3,4....9}
n digit string of length n over alphabet {0,1, . . . ,9} How many n...
n digit string of length n over alphabet {0,1, . . . ,9} How many n digit strings are there with at least one 1? How many n digit are there with EXACTLY one 1?
Which one of the following languages over the alphabet {0,1} is described by the regular expression...
Which one of the following languages over the alphabet {0,1} is described by the regular expression (0+1)* 0 (0+1)* 0 (0+1)* ? a.The set of all strings that begin and end with either 0 or 1 b.The set of all strings containing at most two zeros c.The set of all strings containing at least two zeros. d.The set of all strings containing the substring 00
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 over alphabet Ʃ = {a,b} are there a) of length 5? b) of...
How many strings over alphabet Ʃ = {a,b} are there a) of length 5? b) of length at most 5? c) of length ?? d) of length at most ??
How many binary strings of length 15 contain the same bit in all the odd numbered...
How many binary strings of length 15 contain the same bit in all the odd numbered positions? The positions are numbered 1, 2, . . . , 15. Show how you arrived at your answer, which rules of counting were used etc. Thank You
1. (4 pts) Consider all bit strings of length six. a) How many begin with 01?...
1. (4 pts) Consider all bit strings of length six. a) How many begin with 01? b) How many begin with 01 and end with 10? c) How many begin with 01 or end with 10? d) How many have exactly three 1’s? 2. (8 pts) Suppose that a “word” is any string of six letters. Repeated letters are allowed. For our purposes, vowels are the letters a, e, i, o, and u. a) How many words are there? b)...
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.
How many 13 bit strings either begin with 00 or end with 111?
How many 13 bit strings either begin with 00 or end with 111?
How many ternary strings of length 8 begin with 01 or end with 1? (A ternary...
How many ternary strings of length 8 begin with 01 or end with 1? (A ternary string consists of 0s, 1s, and 2s.)