Homework 6: Due Dec 10, 2008

November 26th, 2008

PDF and LaTeX

16 Responses to “Homework 6: Due Dec 10, 2008”

  1. Mike Clark Says:

    For problem 6.2, should there be an absolute value around X_H - X_T since X_T could be greater than X_H?

  2. admin Says:

    it’s symmetric, so it doesn’t really matter asymptotically. you can do it either way

  3. Dafang Says:

    For question 6.1 b, can you explain what “the expected number of bits” means?

    Also, is this question related to 1(a)? That is, shall we simply toss the coin 2n times, or toss 2n times but follow the Neumann method in (a)?

  4. Dafang Says:

    For question 6.2, it says the constant c may be a function of epsilon, is c also a function of n or constant with respect to n?

    This questions appears trivial in that if c=2n, the probability Pr(x_H - x_T > 2n*sqrt(n) ) will always be zero, because there are at most 2n tosses. Is this what the question is asking for?

  5. admin Says:

    In response to Dafang’s questions:

    * the number of truly random bits you extract is a random variable. what is the expectation of this random variable
    * this question is related to 1(a) yes.
    * c is a constant that you need to determine. it is not a function of n
    * again: c is a constant, and so it can’t be 2n. You are of course right that if c = 2n, this probability is zero, but that’s not the interesting case, is it ? the interesting case is when c is a constant.

  6. Dafang Says:

    So 6.2 can be stated as, for any epsilon, there exists a constant c such that for any value of n, that inequation holds, right?

  7. admin Says:

    Or rather, for any epsilon, FIND a constant c such that the inequality holds for all n (or all n above a certain n_0, as usual)

  8. Parasaran Says:

    I am not sure if I get the question 4 right. The randomized load balancing says each job j_i has exactly 2n processes. Does the processes have any preference on the machine on which it should be run (p_o has to run on M_1 and so on)? If not, isnt the problem trivial - jus assign the first n jobs of each p_i to M_1 and the next n jobs to M_2. I know I am missing something here.

  9. admin Says:

    Think of this example (and btw you’ve flipped jobs and processes).

    There’s a fixed set of processes (A, B, C, D) say. Each Job chooses a subset of 2n = 2 (n=1) processes.

    So a job sequence could be

    J1: A, B
    J2: A, C
    J3: C, D
    J4: B, C

    Processes are mapped to machines in advance: say, A, B are on machine 1, and C, D are on machine 2.

    By this assignment, J1 and J3 are not balanced, and J2 and J4 are.

    To answer your question now, each job doesn’t have the flexibility to decide where its processes go. J1 cannot decide to run B on machine 2, and then J4 can’t run B on machine 1. The processes are assigned to machines independently of the jobs.

  10. Mike Clark Says:

    On problem 4, it says there are n jobs and each job has 2n processes. Are those 2 n’s the same?

  11. admin Says:

    yes. both ns are the same

  12. John Moeller Says:

    Problem 4 again:

    Can a process “stop” and then “start” again? I.e., is your above job sequence a valid sequence?

  13. admin Says:

    think of these as processes that are applied repeatedly

  14. Dafang Says:

    In question 6.4(a), what does “arbitrary large value of n” mean? Does it mean that for any value of n, there is a non-balanced sequence; or does it mean when n is large enough there exists such a sequence.

    If it’s the latter case, what’s the relation between n and k. Obviously, when n becomes close to k there aren’t n distinct jobs, in which case it’s relatively simple to prove the argument. But I’m not sure if this is what the question is asking for…..

  15. admin Says:

    Just show it to be true when n is large enough. The only assumption you need is that k > 2n.

  16. Dafang Says:

    To your previous response, I think k should have a larger lower bound than 2n. If k=2n+1, and each job includes 2n processes, than there are at most 2 distinct jobs, rather than n. We must assume each job is distinct (that is, any two jobs must differ in at least one process), right?

Leave a Reply