(a) There are a total of ∣A∣=26 strings that start with two 0's and ∣B∣=27 strings that ends with 1. We need to find the cardinality of a set A∪B. The Sum Rule gives us ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣. Set A∪B contains strings of length 8 that both begin with 00 and end with 1 (∣A∪B∣=25).
Answer: ∣A∪B∣=26+27−25=64+128−32=160.
(b) Let A be a set of computer science majors and B represents maths majors. We need to find the cardinality of set A∪B. We are given ∣A∣=36, ∣B∣=29, ∣A∩B∣=5. The cardinality of a union of the two following sets is as follows
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣=36+29−5=60.
Answer: 60 students.
Comments