Discrete Mathematics · free preview
Chapter 4 Unit Exam. Preliminaries, Logic and Graph Theory
Unit exam covering the course so far. Preliminaries, Logic and Graph Theory.
1. How this assessment works
This lesson is a curated assessment adapted from MIT OpenCourseWare 6.042J Mathematics for Computer Science (Spring 2015) (https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/), used under CC BY-NC-SA 4.0. Work through the 5 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.
How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.
If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.
2. Problem 1, Tan Tan Taan four-of-a-kind probabilities
Three 6.042 students, Kirari, Noelle, and Cobeni, are playing a game of Tan Tan Taan!. During each round of Tan Tan Taan!, each player is dealt 4 cards of their own, and one additional card is shared among all players, so that each player has 5 cards that they can use (the 4 cards of their own along with the single shared card). Cards are uniformly distributed from a 52-card deck. If you get four of a kind (for example, four aces or four 2's), you can continue playing in the next round. If you don't get four of a kind, you must quit and return to doing your 6.042 homework. Cards from round to round are mutually independent. This game is so fun that even if two of the three players must quit and return to their 6.042 homework, the third player will continue playing alone as long as they are able to. (a) [5 pts] What is the probability that Kirari has four aces in the first round? (b) [5 pts] What is the probability that Kirari doesn't get four of a kind in the first round (and must quit playing)? (c) [5 pts] What is the expected number of rounds that Kirari will play? (d) [10 pts] What is the probability that all three can play a second round?
3. Problem 2, Packet routing expectation and variance
Consider the complete ternary-tree network with 9 inputs and 9 outputs where packets are routed randomly. The route each packet takes is the shortest path between input and output. Let , , and be indicator random variables for the events that a packet originating at , , and , respectively, crosses the dashed edge in the figure. Let be a random variable for the number of packets passing through the dashed edge. (a) [10 pts] Suppose that each input sends a single packet to an output selected uniformly at random; the packet destinations are mutually independent. (Note that outputs may receive packets from multiple inputs including their corresponding input.) What are the expectation and variance of ? (b) [5 pts] Now consider the situation where a permutation of inputs to outputs is chosen uniformly at random; each input sends a packet to a distinct output. What is the expected value of ? Briefly justify your answer.
4. Problem 3, Connecting two cycles with random edges
Suppose we have a simple, undirected graph with vertices and edges, where . The graph consists of two disjoint cycles with edges each. (a) [5 pts] A pair of vertices and from is selected uniformly at random from the pairs of distinct vertices with no edge between them. A new graph is constructed to be the same as , except that there is an edge between and . What is the probability that is connected? (b) [10 pts] pairs of vertices from are selected uniformly at random from the pairs of distinct vertices with no edge between them. Repetition is allowed; it is possible, for example, that the same pair appears multiple times in the set of pairs. A new graph is constructed to be the same as , except that there are new edges, the edges that correspond to the selected pairs. What is the probability that is not connected? (Hint. For , the sum of your answers to part (a) and part (b) should equal 1.)
5. Problem 4, Expected busy laundry delay
A busy student must complete 3 problem sets before doing laundry. Each problem set requires 1 day with probability and 2 days with probability . Let be the number of days a busy student delays laundry. What is ?
6. Problem 5, Expected overall laundry delay
A student is busy with probability , relaxed with probability , and unlucky with probability . Let be the number of days the student delays laundry. What is ?
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free