menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
How many bit strings of length 15 have bits 1, 2, 3 equal to 101, or have bits 12, 13, 14, 15 equal to 1001 or have bits 3, 4, 5, 6 equal to 1010?
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
How many bit strings of length 15 have bits 1, 2, 3 equal to 101, or have bits 12, 13, 14, 15 equal to 1001 or have bits 3, 4, 5, 6 equal to 1010?
asked
Nov 3, 2018
202k
views
2
votes
How many bit strings of length 15 have bits 1, 2, 3 equal to 101, or have bits 12, 13, 14, 15 equal to 1001 or have bits 3, 4, 5, 6 equal to 1010?
Mathematics
college
Bora
asked
by
Bora
8.0k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
This is an excellent practice on the law of inclusion/exclusion.
For example, using | | to represent cardinality (i.e. count in the set)
|A∪B∪C|=|A|+|B|+|C|-|A∩B|-|B∩C|-|C∩A|+|A∩B∩C|.
I am not allowed to provide a link, but if you could use some additional reading, google "wiki Inclusion–exclusion_principle" and the first wiki entry should explain that in more detail.
Here we have
A=the set of 15bit numbers starting with 101xxxx...
B=the set of 15bit numbers starting with xx1010xxxx...
C=the set of 15bit numbers ending with xxxxxxxxxxx1001
A∩B=101010xxxxx
B∩C=101xxxxx...xxx1001
C∩A=xx1010xx...xxx1001
A∩B∩C=101010xxxxx1001
Therefore
|A|=2^12 (there are 12 bits left)
|B|=2^11 (there are 11 bits left)
|C|=2^11 (there are 11 bits left)
|A∩B|=2^9 (9 bits left)
|B∩C|=2^8 (8 bits left)
|C∩A|=2^7 (7 bits left)
|A∩B∩C|=2^5 (5 bits left)
Applying the inclusion/exclusion principle,
|A∪B∪C|
=|A|+|B|+|C|-|A∩B|-|B∩C|-|C∩A|+|A∩B∩C|
=2^12+2^11+2^11-2^9-2^8-2^7+2^5
=7328
Partack
answered
Nov 8, 2018
by
Partack
7.8k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Apr 11, 2021
127k
views
A packet contains 4 bytes: 1010 0110 1001 1101. What would the parity bits be for this packet if a two dimensional even parity scheme was used with a minimum length checksum field? Give an example of a
ButchMonkey
asked
Apr 11, 2021
by
ButchMonkey
7.6k
points
Computers and Technology
college
1
answer
5
votes
127k
views
asked
Nov 15, 2019
37.2k
views
Suppose that a message 1001 1100 1010 0011 is transmitted using internet checksum (4-bit word). what is the value of the checksum? 2.8. what is the remainder obtained by dividing x 7 + x 5 + 1 by the generator
Tamjid
asked
Nov 15, 2019
by
Tamjid
8.1k
points
Mathematics
college
2
answers
1
vote
37.2k
views
asked
Jul 8, 2021
77.5k
views
Design a 4-bit counter which counts the sequence 0110,1010,0011,1111,0100,1001,0101,1110,1000 and repeats the sequence: a) Use D flip-flops b) Use T flip-flops c) Use S-R flip-flops d) Use J-K flip-flops
Andrew Neilson
asked
Jul 8, 2021
by
Andrew Neilson
7.6k
points
Computers and Technology
college
1
answer
5
votes
77.5k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
How do you estimate of 4 5/8 X 1/3
A bathtub is being filled with water. After 3 minutes 4/5 of the tub is full. Assuming the rate is constant, how much longer will it take to fill the tub?
i have a field 60m long and 110 wide going to be paved i ordered 660000000cm cubed of cement how thick must the cement be to cover field
Write words to match the expression. 24- ( 6+3)
A dealer sells a certain type of chair and a table for $40. He also sells the same sort of table and a desk for $83 or a chair and a desk for $77. Find the price of a chair, table, and of a desk.
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org