Q1: 20 points Q2: 30 points Q3: 25 points Q4: 25 points Total: 100 points
An onto function f from A to B is one where every member of B is equal to f(x) for at least one element x of A.
A transitive relation R ⊆ A × A is a binary relation where whenever R(x, y) and R(y, z) are both true (for any elements x, y, and z of A, possibly equal), the statement R(x, z) is also true.
An equivalence relation is the relation {(x, y): x and y are in the same set of P} for some partition P. Equivalently, it is any relation that is reflexive, symmetric, and transitive.
The power set P(X) of a set X is the set whose members are all subsets of X. That is, P(x) = {Y: Y ⊆ X}.
P(n, r) is the number of permutations of size r taken from an n-element set. A permutation is a sequence that has no elements repeated.
The diagram has circles for B and C that are intersecting, and a circle for A that is inside the portion of B that is not part of C.
It might be either true or false. If all three sets are empty, it is true, and the given statements A ⊆ B and A ∩ C = ∅ are also true. If B = C = {x} and A = ∅, the two given statements are both true but (B ∩ C) - A = ∅ is false.
The statement is true given the two premises A ⊆ B and A ∩ C = ∅. If there were an element x of A = (B ∪ C), it would be in A. Then x ∈ B, because A ⊆ B, and X ∈ B ∪ C by the definition of union. So x is not in A - (B ∪ C), a contradiction.
A has arrows to all four other nodes, C and D have arrows only to B, and E has arrows to C, D, and B.
It is not. R(x, x) is always false as a dog cannot have fewer letters in its name than it has in its name. R is in fact irreflexive.
It is antisymmetric. We must show that if R(x, y) and R(y, x) are both true, then x = y. But "R(x, y) ∧ R(y, x)" is impossible, as x cannot have both a shorter and a longer name than y. So the implication is true vacuously -- there could never be a counterexample with R(x, y) ∧ R(y, x) true but x = y false.
R is transitive. If R(x, y) and R(y, z) are both true, then x's name has fewer letters than y's and y's has fewer than z's, so x's name has fewer letters than z's and thus R(x, z) is true.
By the Product Rule, there are 263 = 17576 elements of the three-fold direct product of the alphabet.
There are 21 choices for the first letter, 5 for the second, and 21 for the third, so we have 21 × 5 × 21 = 2205 total words of this type.
There are at least three good methods to solve this problem:
Method 1: Take the 263 total strings, subtract the
262 strings with first and second letter matching,
subtract the 262 with second and third letter matching,
and add back in the 26 strings with all three letters matching.
26 × (262 - 26 - 26 + 1) = 26(26 -
1)2
= 26(25)2 = 16250.
Method 2: 26 choices for the first letter, 25 for the second
(any letter but the first) and 25 choices for the third letter (any
letter but the second), 26 × 25 × 25 = 16250 total.
Method 3: 26 × 25 × 24 with all three letters
different, plus 26 × 25 with first and third letters the
same
but second letter different, total 26 × 25 × (24 +
1) = 26 × 25 × 25 = 16250.
Last modified 12 December 2013