Discrete Math: How many bitstrings of length of 5 start or end with 11

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 15VE: The result of adding, subtracting, or multiplying two integers might result in overflow but never...
icon
Related questions
Question

Discrete Math:

How many bitstrings of length of 5 start or end with 11.

Expert Solution
Step 1

bit string : means string must contains either 0 or 1

now, we have to find number of bit strings of length 5 that start or end with 11

first lets find number of bits strings of length 5, start with 11 : 1 1_ _ _  : we have 3 positions to fill at the end and we have two options to fill 0 or 1: 2*2*2 = 8 ways to fill 3 positions with 0 or 1

so, number of bits strings of length 5, start with 11 are: 8

now, the number of bits strings of length 5, end with 11 : _ _ _ 11  : we have 3 positions to fill at the beginning and we have two options to fill 0 or 1: 2*2*2 = 8 ways to fill 3 positions with 0 or 1

so, number of bits strings of length 5, end with 11 are: 8

now, the number of bits strings of length 5, that start and end with 11 are included in both cases above, so we have to remove once

the number of bits strings of length 5, that start and end with 11 are: 11 _ 11 : 2 

 

 

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Boolean Algebra and Digital Logics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning