(a) There are a total of "|A|=2^6" strings that start with two 0's and "|B|=2^7" strings that ends with 1. We need to find the cardinality of a set "A \\cup B". The Sum Rule gives us "|A \\cup B| = |A| + |B|-|A\\cap B|". Set "A \\cup B" contains strings of length 8 that both begin with 00 and end with 1 ("|A \\cup B|=2^5").
Answer: "|A \\cup B| = 2^6 + 2^7-2^5=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\\cup B". We are given "|A|=36, \\ |B|=29, \\ |A\\cap B|=5". The cardinality of a union of the two following sets is as follows
"|A \\cup B| = |A| + |B|-|A\\cap B|=36+29-5=60".
Answer: 60 students.
Comments
Leave a comment