Question #140321
Solve the following two " union " type questions:
(a) How many bit strings of length 8 either begin with 2 0s or end with 1 1s? (inclusive or)
(b) Every student in a discrete math class is either a computer science or a mathematics major or is a joint major in these two subjects. How many students are in the class if there are 36 computer science majors (including joint majors), 29 math majors (including joint majors) and 5 joint majors?
1
Expert's answer
2020-11-01T17:23:50-0500

(a) There are a total of A=26|A|=2^6 strings that start with two 0's and B=27|B|=2^7 strings that ends with 1. We need to find the cardinality of a set ABA \cup B. The Sum Rule gives us AB=A+BAB|A \cup B| = |A| + |B|-|A\cap B|. Set ABA \cup B contains strings of length 8 that both begin with 00 and end with 1 (AB=25|A \cup B|=2^5).

Answer: AB=26+2725=64+12832=160.|A \cup B| = 2^6 + 2^7-2^5=64+128-32=160.


(b) Let AA be a set of computer science majors and BB represents maths majors. We need to find the cardinality of set ABA\cup B. We are given A=36, B=29, AB=5|A|=36, \ |B|=29, \ |A\cap B|=5. The cardinality of a union of the two following sets is as follows

AB=A+BAB=36+295=60|A \cup B| = |A| + |B|-|A\cap B|=36+29-5=60.

Answer: 60 students.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS