Docsity

Probability and Computing: Homework 1 - Probability Problems and Algorithms - Prof. Pawel , Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Probability and Computing: Homework 1
Out: Monday 08/26 Due: Friday 09/07, put your homework into the envelope taped to
my door (HEC339) before 4:00pm or email it to me.
Take time to write clear and concise answers; confused and long-winded solutions will be
penalized.
Problem 1 Prove the inclusion-exclusion principle (MU Section 1.2, Lemma 1.3).
Problem 2 You are dealt a hand of five cards from a randomly shuffled deck. Compute the
probabilities of the following events. Explain your reasoning in each case.
(a) Your hand contains at least one ace.
(b) The highest card in your hand is 10.
(c) Your hand is a flush (i.e., all cards from the same suit).
(d) Your hand is a full house (i.e., it contains three cards of one rank and two of some
other rank).
Problem 3 Generalize the randomized algorithm for verifying matrix multiplication (MU
Section 1.3) to integers modulo p(where pis a prime). What is the error probability for one
trial?
Problem 4 You roll ten unbiased six-sided dice. What is the probability that the sum of
the numbers on the dice is divisible by 3? Use the principle of deferred decisions.
Problem 5 You toss a fair coin k·ntimes. What is the probability that you observe a
consecutive sequence of at least (k−1) ·nheads as a function of kand n?
Problem 6 You are given an urn containing ten balls, some black and some white. You are
told that the number of white balls in the urn is equally likely to be any number between 0
and 10 inclusive (so, for example, the probability that all ten balls are white is 1
11 ).
(a) You pick a ball uniformly at random and it is white. Given this event, what is now
the probability that all ten balls are white. Use Bayes’ rule: Pr[A|B] = Pr[B|A] Pr[A]
Pr[B].
(b) You pick kballs at random (with replacement) and all are white. What is now the
probability that all ten balls are white, as a function of k?
1
pf2

Partial preview of the text

Download Probability and Computing: Homework 1 - Probability Problems and Algorithms - Prof. Pawel and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Probability and Computing: Homework 1

Out: Monday 08/26 Due: Friday 09/07, put your homework into the envelope taped to my door (HEC339) before 4:00pm or email it to me.

Take time to write clear and concise answers; confused and long-winded solutions will be penalized.

Problem 1 Prove the inclusion-exclusion principle (MU Section 1.2, Lemma 1.3).

Problem 2 You are dealt a hand of five cards from a randomly shuffled deck. Compute the probabilities of the following events. Explain your reasoning in each case.

(a) Your hand contains at least one ace.

(b) The highest card in your hand is 10.

(c) Your hand is a flush (i.e., all cards from the same suit).

(d) Your hand is a full house (i.e., it contains three cards of one rank and two of some other rank).

Problem 3 Generalize the randomized algorithm for verifying matrix multiplication (MU Section 1.3) to integers modulo p (where p is a prime). What is the error probability for one trial?

Problem 4 You roll ten unbiased six-sided dice. What is the probability that the sum of the numbers on the dice is divisible by 3? Use the principle of deferred decisions.

Problem 5 You toss a fair coin k · n times. What is the probability that you observe a consecutive sequence of at least (k − 1) · n heads as a function of k and n?

Problem 6 You are given an urn containing ten balls, some black and some white. You are told that the number of white balls in the urn is equally likely to be any number between 0 and 10 inclusive (so, for example, the probability that all ten balls are white is 111 ).

(a) You pick a ball uniformly at random and it is white. Given this event, what is now the probability that all ten balls are white. Use Bayes’ rule: Pr[A|B] = Pr[BPr[|A] Pr[B] A].

(b) You pick k balls at random (with replacement) and all are white. What is now the probability that all ten balls are white, as a function of k?

Problem 7 A graph may have more than one minimum cut. Using the analysis of the error probability of the randomized min-cut algorithm, show that the number of distinct minimum cuts is at most n(n 2 − 1).

Problem 8 Suppose that the randomized min-cut algorithm is modified as follows. Instead of picking an edge uniformly at random and merging its endpoints, the algorithm picks a pair of vertices (not necessarily adjacent) uniformly at random and merges them. To show that the success probability of this algorithm is exponentially small, consider the “dumbbell” graph Gn comprising two (n/2)-cliques connected by a single edge if n is even, or a bn/ 2 c-clique and a dn/ 2 e-clique connected by a single edge if n is odd. Prove that when the modified algorithm is run on the family Gn the probability that it finds a minimum cut is exponentially small in n, i.e., it is less than c−n^ for some constant c. Hint: What happens to the minimum cut when we merge two vertices from different cliques?

Problem 9 Show that an exponential number of repeated trials of the algorithm in Problem 7 would be needed to reduce the error probability to 12. Hint: Use the Union Bound.