Sei sulla pagina 1di 3

Discrete Mathematics and Algorithms (CSE 611) Assignment Set 3

Total Marks: 130

Deadline: October 06, 2012 (Saturday), 4:30 pm Each question is of 10 marks.

1. In ﬁrst birthday problem, ﬁnd the minimum size, k, of the sample set, such that, with probability P

1

7 ,

at least one sample has the same value with a predetermined value.

2. In second birthday problem, ﬁnd the minimum size, k, of the sample set, such that, with probability

P 0.675, at least one of the samples is equal to a selected sample.

3. In fourth birthday problem, ﬁnd the minimum size, k, of the sample set, such that, with probability

P 0.45, at least one of the samples in the ﬁrst set has the same value as a sample in the second set.

4. A die is rolled. Let A be the event that the result is an even face and B the event that the result is

multiple of 3. Then compute the conditional probabilities P (A|B) and P (B|A).

5. If F (x) denotes the distribution function of a random variable X, then show that

 (i)P (a < X < b) = F (b − 0) − F (a), (ii)P (a ≤ X ≤ b) = F (b) − F (a − 0).

6. Show that the function deﬁned by

f(x)

=

 

  

x, 0 x < 1

k 2 x, 1 x < 2

0, elsewhere

1

7.

8.

9.

10.

11.

is a probability density function of the random variable X for a suitable value of the constant k. Cal-

culate the probability that the random variable X lies between 2 and 3

1

2 .

Let u and v be two n-bit numbers, where for simplicity n is a power of 2. The traditional multiplication

algorithm requires O(n 2 ) operations. A divide-and-conquer algorithm splits the number into two equal

parts and then computes the multiplication. Let u and v be divided into two n/2 parts as a, b, c, d such

that u = a2 n/2 + b and v = c2 n/2 + d. Then, uv = (a2 n/2 + b)(c2 n/2 + d).

(i) Write a recursive algorithm for computing uv using the divide-and-conquer algorithm. What is the

time complexity of this algorithm?

(ii) Devise an efﬁcient algorithm for computing the product uv than the algorithm in Part (i).

(iii) Discuss this issue when n is not a power of 2.

Let a, b, c be non-negative constants. Consider the following recurrence relation:

T(n)

=

b, if n = 1,

  aT (n/c) + bn, if n > 1

Find the solution of T (n), for the following two cases:

(i) a < c,

(ii) a = c.

Using the generating function, solve the following recurrence relation

a n 7a n1 + 9a n2 = 3 n ,

with the initial conditions a 0 = 1 and a 1 = 3.

Using the generating function, ﬁnd the sum 1 3 + 2 3 + 3 3 + ··· + n 3 .

Consider an air trafﬁc-control system in which the desired altitude of an aircraft, a r , is computed by a

computer every second and is compared with the actual altitude of the aircraft, b r1 , determined by a

tracking radar 1 second earlier. Depending on whether a r is larger or smaller than b r1 , the altitude of

the aircraft will be changed accordingly. Speciﬁcally, the change in altitude at the r-th second, b r b r1 ,

is proportional to the difference a r b r1 . That is,

b r b r1 = K(a r b r1 )

2

where K is a proportional constant.

(a)

(b)

Determine b r , given that a r = 1000( 3 ) 2 , K = 4, and b 0 = 0.

Determine b r , given that

2

a r

=

  1000( 3 ) r , 0 r 9

2

1000( 3 ) 10 , r 10

2

K = 5, and b 0 = 0.

12. There are 33 students in the class and sum of their ages 430 years. Applying the pigeonhole principle,

verify the following. Is it true that one can ﬁnd 20 students in the class such that sum of their ages

greater 260 ?

13. A chess player wants to prepare for a championship match by playing some practice games in 77 days.

She wants to play at least one game a day but no more than 132 games altogether. Show that no matter

how she schedules the games there is a period of consecutive days within which she plays exactly 21

games.

Submission Instructions

Copying in assignments leads to award ZERO marks in assignment marks. Also, the source from which you

have copied, that source student will be treated under the same rule.

Please submit the assignment in hard copy stating the following at the top in my ofﬁce CSTAR, B3-307

(Vindhya Block):

Discrete Mathematics and Algorithms (CSE 611)

Assignment Set 3

submitted by

Name: XYZ

Roll No: abc

3