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 I0I_0, I1I_1, and I2I_2 be indicator random variables for the events that a packet originating at in0in_0, in1in_1, and in2in_2, respectively, crosses the dashed edge in the figure. Let T=I0+I1+I2T=I_0+I_1+I_2 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 TT? (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 TT? Briefly justify your answer.

4. Problem 3, Connecting two cycles with random edges

Suppose we have a simple, undirected graph GG with 2n2n vertices and 2n2n edges, where n≥3n\ge 3. The graph consists of two disjoint cycles with nn edges each. (a) [5 pts] A pair of vertices uu and vv from GG is selected uniformly at random from the pairs of distinct vertices with no edge between them. A new graph G′G' is constructed to be the same as GG, except that there is an edge between uu and vv. What is the probability that G′G' is connected? (b) [10 pts] kk pairs of vertices from GG 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 kk pairs. A new graph G′′G'' is constructed to be the same as GG, except that there are kk new edges, the edges that correspond to the kk selected pairs. What is the probability that G′′G'' is not connected? (Hint. For k=1k=1, 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 2/32/3 and 2 days with probability 1/31/3. Let BB be the number of days a busy student delays laundry. What is E[B]E[B]?

6. Problem 5, Expected overall laundry delay

A student is busy with probability 1/21/2, relaxed with probability 1/31/3, and unlucky with probability 1/61/6. Let DD be the number of days the student delays laundry. What is E[D]E[D]?

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free