Random Permutation - Combinatorics and Discrete Probability - Exams, Exams of Discrete Mathematics

Main points of this past exam are: Random Permutation, N Speakers, Last-Minute Preparation, Every Speaker, Random Permutation, Random Re-Ordering, Chernoff Bounds, Probability, Chebyshev Bound, Perfect Matching

Typology: Exams

2012/2013

Uploaded on 04/02/2013

sheil_34
sheil_34 🇮🇳

4.4

(14)

129 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS174 Final Exam Spring 99
J. Canny May 19
This is a closed-book exam with 6 questions. You have 3 hours. All questions are worth equal
points, so be sure to budget 30 minutes per question. You are allowed to use the 4 sides of notes
you brought with you. No other notes are allowed. No calculators please. Write all your answers
in this booklet. Good luck!
NAME
SID Number
NOTE: Please print your name and SID CLEARLY. We can’t be responsible for scores for exams
without a legible name.
1
pf3
pf4
pf5

Partial preview of the text

Download Random Permutation - Combinatorics and Discrete Probability - Exams and more Exams Discrete Mathematics in PDF only on Docsity!

CS174 Final Exam Spring 99

J. Canny May 19

This is a closed-book exam with 6 questions. You have 3 hours. All questions are worth equal points, so be sure to budget 30 minutes per question. You are allowed to use the 4 sides of notes you brought with you. No other notes are allowed. No calculators please. Write all your answers in this booklet. Good luck!

NAME

SID Number

NOTE: Please print your name and SID CLEARLY. We can’t be responsible for scores for exams without a legible name.

  1. Suppose you scheduled N speakers to give training talks on a Monday. Before each speaker gives their talk, they are wrapped up in last-minute preparation, so they always miss the talk of the speaker before them. Now suppose you want to schedule the same talks for the next day (Tuesday), but you want to make sure that no speaker follows the speaker that they followed on Monday. That way, every speaker can listen to every other speaker’s talk on one of the two days.

(a) Suppose you made a random permutation of the N talks on Monday to get the order for Tuesday. What is the probability that no speaker on Tuesday follows the speaker that they followed on Monday? Assume N is large.

(b) Suppose now that each speaker also requires some time after their talk to collect their materials, so that they always miss the talk of the speaker after them (as well as the one before). What is the probability that a random permutation of the Monday talks leads to no conflicts? i.e. No two talks that were consecutive (in either order) on Monday should be consecutive on Tuesday?

(c) Assuming a random re-ordering of the talks, what is the expected number of talks that end up in the same time slot on Monday and Tuesday? A talk is in the same time slot if it is the k th^ talk in the Monday ordering and then the k th^ talk in the Tuesday ordering.

  1. Let G be a graph with N vertices. Initially, G has no edges, then

N

2

edges are added to G at random with replacement. That is, we do the following step

N

2

times: choose vertices u and v 6 = u at random from the vertices of G, and add edge fu; v g (with replacement) to G.

(a) What is the expected number of edges in G?

(b) Now suppose we choose a random perfect matching in G (a set of N = 2 edges with no common vertices), and contract those edges giving a new graph G^0. The result will be a graph with N = 2 vertices. Each of the new vertices represents a contraction of two of the original vertices. What is the expected number of edges in G^0?

(c) Now suppose we repeat the contraction operation above k times, giving a new graph G^00. After k such contractions, the graph will have N = 2 k^ vertices, and each new vertex will represent 2 k^ vertices of G. How large should k be so that there is a high probability that G^00 is a complete graph? Hint: think about the coupon collectors problem.

  1. Suppose n = 3 k

(a) What is (n), the order of the multiplicative group Z n?

(b) What are the possible orders of subgroups of Z n?

(c) Since n is a power of an odd prime, Z n is a cyclic group, and it has at least one gener- ator. What fraction of the elements in Z n are generators?

  1. (a) Suppose a person X wants to have their friend Y cash a check at a bank. Using RSA signatures, and assuming both have published RSA public keys, explain how the check could be written so that: i. The bank is convinced that X wrote the check. ii. The bank is convinced that it was intended to be cashed by Y (and Y didnt simply steal the bits). iii. Y agreed to cash the check. iv. The person that has the bits (and comes to the bank) is Y.

(b) Now suppose we want to do the same thing but with Y remaining anonymous. That is, X asks Y to cash a check and to satisfy the properties above, but you cannot use Y’s public RSA key, or anything that identifies Y. You should still prove to the bank that the person with the bits (Y) is the same person the check was written for and that they agreed to accept it.