Q1: 15 points Q2: 30 points Q3: 30 points Q4: 25 points Q5: 20+5 points Total: 120+5 points
Question text is in black, solutions in blue.
A tautology is a compound proposition that is true for any values of its atomic variables. A contradiction is a compound proposition that is false for any values of its atomic variables.
The statement p → q is true unless p is true and q is false. The statement p ↔ q is true if p and q are either both true or both false.
A one-to-one function is one where no two inputs map to the same output. An onto function is one where every output is mapped to by at least one input.
Both are undirected, meaning they have only undirected edges. The book's "graphs" may have loops and parallel edges, but its "simple graphs" may not.
The book's "walks" are any sequences of edges where the start of each edge (except the first) is the end of the previous edge. Their "paths" are walks that never reuse a vertex.
FALSE. If p is false, p → q is true whatever the value of q.
TRUE. The product of any two odd positive integers is odd, so if we keep multiplying until we have a single integer, every product will be the product of two odd positive integers and thus will be odd.
TRUE. This is the antisymmetric property, which all partial orders have.
FALSE. There are P(4, 4) = 4! = 1×2×3×4 ways to do this.
TRUE. For the second card, 3 of the remaining 51 cards have the same rank as the first. If this happens, 2 of the remaining 50 cards have that rank.
TRUE. The only way to get 4 is with two 1's and one 2, three out of the 63 = 216 possible throws. The only way to get 17 is with two 6's and one 5, also 3/216 probability.
FALSE. The tree with one edge and two vertices does not have this property.
FALSE. Deleting the edge does not delete any nodes. The resulting graph will no longer be connected -- if we delete an edge from x to y, there can be no path remaining from x to y, because this would have made a cycle with the deleted edge, and trees have no cycles.
FALSE. The entries in each row add to 1. But it's possible, for example, that every state goes to state 1 with probability 1. Then the column for state 1 has entry 1 in every position, so its sum is n rather than 1. And the other columns all sum to 0, not 1.
TRUE. Each row sums to 1, and there are n rows.
The number is 44 = 256, as we have four choices for each dog and we multiply these four copies of 4 together.
We choose a set of two of the four dogs to be barking. There are C(4, 2) = 6 ways to do this. For each one of these ways, there is only one way to have the other two dogs wrestling. So the answer is 6×1 = 6.
This is a "stars and bars" problem. Each such assignment can be identified with a binary string of four 0's (for the four dogs) and three 1's (for the barriers between the activities. There are C(7, 3) = (7×6×5)/(1×2×3) = 35 such strings.
We have n different choices from among the four activities, so we multiply together n 4's to get 4n.
For the base case, if there is one dog and four activities, there are clearly four choices for that dog's activity. Assume that for n-1 dogs, there are 4n-1 choices of activities. We now add an n'th dog, whom we'll call X. Dog X has four choices of activity, and for each choice there are 4n-1 ways for the other dogs to choose their activities. By the Product Rule, the total number of choices is 4n-1 × 4 = 4n.
"If Cardie is barking, then either Duncan or Biscuit (or both) are wrestling."
"∃u:∃v:∃x:∃y:E(u, x) ∧ E(v, y) ∧ (x ≠ y)" The type of u and v is "dog", and the type of x and y is "activity".
"If there is a dog that is not barking, then Arly is swimming and Duncan is chasing."
Suppose that Cardie is barking. Then by statement (a), either Duncan
or Biscuit is wrestling. We can take dog u in statement (b) to be
Cardie, and take dog v to be the dog who is wrestling. Then those
two dogs are engaged in different activities, and statement (b) is
true.
Now suppose that Cardie is not barking. Then there exists a
dog who is not barking, so by statement (c) we know that Arly is
swimming and Duncan is chasing. We can take dog u in statement (b)
to be Arly and dog v to be Duncan -- they are engaged in different
activities, so statement (c) is true.
0 1 1
1 1 0
0 1 1
First we compute A2 which is:
Then we square this again to get:
1 2 1
1 2 1
1 2 1
4 8 4
4 8 4
4 8 4
The (i, j) entry of A4 counts the number of paths of length 4 in the graph from node i to node j. So there are 4 paths to a, 8 paths to b, and four paths to c from each of the three nodes.
Each path has probability (1/2)4 = 1/16, so the 8 four-step paths counted by the matrix have total probability 8/16 = 1/2. The answer is the same for each of the three possible start nodes, since all the rows of A4 are the same.
The probability is still 1/2. After 98 turns, the process will be at one of the three nodes. But in the last two turns, wherever it starts, it has a 1/4 probability to go to either a or c, and a 1/2 probability to go to b.
Last modified 13 December 2016