Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

There are three jobs that need to be processed, with the processing time of job \(i\) being exponential with rate \(\mu_{i} .\) There are two processors available, so processing on two of the jobs can immediately start, with processing on the final job to start when one of the initial ones is finished. (a) Let \(T_{i}\) denote the time at which the processing of job \(i\) is completed. If the objective is to minimize \(E\left[T_{1}+T_{2}+T_{3}\right]\), which jobs should be initially processed if \(\mu_{1}<\mu_{2}<\mu_{3} ?\) (b) Let \(M\), called the makespan, be the time until all three jobs have been processed. With \(S\) equal to the time that there is only a single processor working, show that $$ 2 E[M]=E[S]+\sum_{i=1}^{3} 1 / \mu_{i} $$ For the rest of this problem, suppose that \(\mu_{1}=\mu_{2}=\mu, \quad \mu_{3}=\lambda .\) Also, let \(P(\mu)\) be the probability that the last job to finish is either job 1 or job 2, and let \(P(\lambda)=1-P(\mu)\) be the probability that the last job to finish is job 3 . (c) Express \(E[S]\) in terms of \(P(\mu)\) and \(P(\lambda)\). Let \(P_{i, j}(\mu)\) be the value of \(P(\mu)\) when \(i\) and \(j\) are the jobs that are initially started. (d) Show that \(P_{1,2}(\mu) \leqslant P_{1,3}(\mu)\). (e) If \(\mu>\lambda\) show that \(E[M]\) is minimized when job 3 is one of the jobs that is initially started. (f) If \(\mu<\lambda\) show that \(E[M]\) is minimized when processing is initially started on jobs 1 and \(2 .\)

Short Answer

Expert verified
To minimize the expected total completion time, we should initially process the two jobs with the smallest rates, in this case, \(\mu_1\) and \(\mu_2\). Furthermore, we have the following results: 1. \(2 E[M] = E[S] + \sum_{i=1}^{3} \frac{1}{\mu_i}\). 2. \(E[S] = P(\mu) E[S\mid \text{last job is } 1 \text{ or } 2] + P(\lambda) E[S\mid \text{last job is } 3]\). 3. \(P_{1,2}(\mu) \leq P_{1,3}(\mu)\). When \(\mu > \lambda\), we should start processing jobs 1 and 3 initially to minimize E[M]. On the other hand, when \(\mu < \lambda\), we should start processing jobs 1 and 2 initially to minimize E[M].

Step by step solution

01

(a) Minimizing Expected Completion Time

To minimize the expected total completion time, we should start processing the two jobs with the smallest rates (\(\mu_1\) and \(\mu_2\) in this case). If we do so, the total expected completion time for all jobs will be smaller than for any other combination. When one of them is finished, the remaining job with the higher rate will start processing. Following this approach, the expected total completion time is minimized.
02

(b) Finding the relationship between Makespan and other variables

First, let's denote the processing times for jobs \(i = 1, 2, 3\) as \(X_i\), where \(X_i\) is an exponential random variable with rate \(\mu_i\). We have two processors, so let's denote the processing times for each processor as \(P_1\) and \(P_2\). Now, we know that the makespan, \(M\), is the maximum of the two processing times for each processor. Therefore, we can write \(M = \max(P_1, P_2)\). Notice that: 1. The total processing time is the sum of all individual processing times: \(P_1 + P_2 = X_1 + X_2 + X_3\). 2. The time with only one processor working is the difference between the total processing time and the makespan: \(S = (P_1 + P_2) - M\). Using these two observations, we can find the expected value of the makespan: $$ 2 E[M] = E[P_1 + P_2 - S] + E[P_1 + P_2] = E[P_1 + P_2] - E[S] + E[P_1 + P_2]. $$ Recall that \(P_1 + P_2 = X_1 + X_2 + X_3\). Thus, we can write: $$ 2 E[M] = E[X_1 + X_2 + X_3] - E[S] + E[X_1 + X_2 + X_3]. $$ Since expectations are additive, we get: $$ 2 E[M] = E[S] + \sum_{i=1}^{3} \frac{1}{\mu_i}. $$
03

(c) Express E[S] using probabilities

We are given that \(\mu_1 = \mu_2 = \mu\) and \(\mu_3 = \lambda\). Also, let \(P(\mu)\) be the probability that the last job to finish is either job 1 or job 2, and let \(P(\lambda) = 1 - P(\mu)\) be the probability that the last job to finish is job 3. Then, we can express the expected value of the single processor working time, \(E[S]\), as: $$ E[S] = P(\mu) E[S\mid \text{last job is } 1 \text{ or } 2] + P(\lambda) E[S\mid \text{last job is } 3], $$ where \(E[S\mid \text{last job is } i]\) is the conditional expectation of \(S\) given that job \(i\) is the last one to finish.
04

(d) Comparing probabilities for different job combinations

We need to show that \(P_{1,2}(\mu) \leq P_{1,3}(\mu)\). First, we can define a random variable \(Y = X_3 - X_2\), denoting the difference in completion times between jobs 2 and 3. Then, we can calculate the probabilities \(P_{1,2}(\mu)\) and \(P_{1,3}(\mu)\) as follows: $$ P_{1,2}(\mu) = P(X_1 - X_2 > Y) \quad \text{and} \quad P_{1,3}(\mu) = P(X_1 - X_3 > Y). $$ Now, observe that \(\mu_1 = \mu_2 < \mu_3 = \lambda\). Therefore, the rate of job 3 is higher than the rate of jobs 1 and 2. Using this fact, it is easy to verify that: $$ P_{1,2}(\mu) \leq P_{1,3}(\mu). $$
05

(e) Minimizing E[M] with mu > lambda

We found the relationship between expected makespan, single processor working time, and individual job processing times: $$ 2 E[M] = E[S] + \sum_{i=1}^{3} \frac{1}{\mu_i}. $$ Now we want to minimize E[M] when \(\mu > \lambda\). We already know that \(P_{1,2}(\mu) \leq P_{1,3}(\mu)\), and from part (c), we have: $$ E[S] = P(\mu)(E[S\mid \text{last job is } 1 \text{ or } 2]) + P(\lambda)(E[S\mid \text{last job is } 3]). $$ If \(\mu > \lambda\), then it is better to start processing job 3 immediately, as this minimizes the expected value of \(S\). Thus, E[M] is minimized when job 3 is one of the initial jobs to be processed.
06

(f) Minimizing E[M] with mu < lambda

We need to show that E[M] is minimized when processing initially starts on jobs 1 and 2 if \(\mu < \lambda\). We know that \(P_{1,2}(\mu) \leq P_{1,3}(\mu)\), and from part (c), we can express E[S]: $$ E[S] = P(\mu)(E[S\mid \text{last job is } 1 \text{ or } 2]) + P(\lambda)(E[S\mid \text{last job is } 3]). $$ Since \(\mu < \lambda\), it is better to start processing jobs 1 and 2 initially, as this minimizes the expected single processor working time, \(E[S]\). Consequently, E[M] is also minimized under this strategy.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Let \(X_{1}, X_{2}, \ldots, X_{n}\) be independent and identically distributed exponential random variables. Show that the probability that the largest of them is greater than the sum of the others is \(n / 2^{n-1}\). That is, if $$ M=\max _{j} X_{j} $$ then show $$ P\left\\{M>\sum_{i=1}^{n} X_{i}-M\right\\}=\frac{n}{2^{n-1}} $$ Hint: What is \(P\left[X_{1}>\sum_{i=2}^{n} X_{i}\right\\} ?\)

Consider a conditional Poisson process in which the rate \(L\) is, as in Example \(5.29\), gamma distributed with parameters \(m\) and \(p\). Find the conditional density function of \(L\) given that \(N(t)=n\).

Let \(X_{1}, X_{2}, \ldots\) be independent and identically distributed nonnegative continuous random variables having density function \(f(x) .\) We say that a record occurs at time \(n\) if \(X_{n}\) is larger than each of the previous values \(X_{1}, \ldots, X_{n-1} .\) (A record automatically occurs at time 1.) If a record occurs at time \(n\), then \(X_{n}\) is called a record value. In other words, a record occurs whenever a new high is reached, and that new high is called the record value. Let \(N(t)\) denote the number of record values that are less than or equal to \(t .\) Characterize the process \(\\{N(t), t \geqslant 0\\}\) when (a) \(f\) is an arbitrary continuous density function. (b) \(f(x)=\lambda e^{-\lambda x}\). Hint: Finish the following sentence: There will be a record whose value is between \(t\) and \(t+d t\) if the first \(X_{i}\) that is greater than \(t\) lies between \(\ldots\)

Cars pass a certain street location according to a Poisson process with rate \(\lambda\). A woman who wants to cross the street at that location waits until she can see that no cars will come by in the next \(T\) time units. (a) Find the probability that her waiting time is \(0 .\) (b) Find her expected waiting time. Hint: Condition on the time of the first car.

Let \(X\) be an exponential random variable. Without any computations, tell which one of the following is correct. Explain your answer. (a) \(E\left[X^{2} \mid X>1\right]=E\left[(X+1)^{2}\right]\) (b) \(E\left[X^{2} \mid X>1\right]=E\left[X^{2}\right]+1\) (c) \(E\left[X^{2} \mid X>1\right]=(1+E[X])^{2}\)

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free