In dynamic resource allocation r tasks are assigned at random to n computers, with no restriction on the...
$begingroup$
I have never done this type of question (with arbitrary variables in a counting problem), so I had a lot of difficulty. Please let me know if my approach is wrong. Thanks!
- "Computer number 1 is assigned no jobs";
- "Computers number 1 and 2 are assigned no jobs";
- "exactly two of the computers are assigned no jobs"
- "No computer is assigned more than one job".
Here are my attempts:
Firstly, the total number of combinations is $r^n$, since for each of the n computers, an unlimited number of tasks from r can be allocated.
Since Computer 1 can be assigned no jobs, there are $r^{n-1}$ ways to assign the tasks to the remaining tasks. Thus P = $frac{r^{n-1}}{r^n}$.
Same idea to the one above, P = $frac{r^{n-2}}{r^n}$
There are $r^{n-2}$ resources to allocate, but since any two computers, there would be $n choose 2$ different ways to choose the two computers. Thus $P=frac{(r^{n-2}) {n choose 2}}{r^n}$
This one I have no idea how to even begin. Please help!
probability combinatorics permutations
$endgroup$
add a comment |
$begingroup$
I have never done this type of question (with arbitrary variables in a counting problem), so I had a lot of difficulty. Please let me know if my approach is wrong. Thanks!
- "Computer number 1 is assigned no jobs";
- "Computers number 1 and 2 are assigned no jobs";
- "exactly two of the computers are assigned no jobs"
- "No computer is assigned more than one job".
Here are my attempts:
Firstly, the total number of combinations is $r^n$, since for each of the n computers, an unlimited number of tasks from r can be allocated.
Since Computer 1 can be assigned no jobs, there are $r^{n-1}$ ways to assign the tasks to the remaining tasks. Thus P = $frac{r^{n-1}}{r^n}$.
Same idea to the one above, P = $frac{r^{n-2}}{r^n}$
There are $r^{n-2}$ resources to allocate, but since any two computers, there would be $n choose 2$ different ways to choose the two computers. Thus $P=frac{(r^{n-2}) {n choose 2}}{r^n}$
This one I have no idea how to even begin. Please help!
probability combinatorics permutations
$endgroup$
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
1
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48
add a comment |
$begingroup$
I have never done this type of question (with arbitrary variables in a counting problem), so I had a lot of difficulty. Please let me know if my approach is wrong. Thanks!
- "Computer number 1 is assigned no jobs";
- "Computers number 1 and 2 are assigned no jobs";
- "exactly two of the computers are assigned no jobs"
- "No computer is assigned more than one job".
Here are my attempts:
Firstly, the total number of combinations is $r^n$, since for each of the n computers, an unlimited number of tasks from r can be allocated.
Since Computer 1 can be assigned no jobs, there are $r^{n-1}$ ways to assign the tasks to the remaining tasks. Thus P = $frac{r^{n-1}}{r^n}$.
Same idea to the one above, P = $frac{r^{n-2}}{r^n}$
There are $r^{n-2}$ resources to allocate, but since any two computers, there would be $n choose 2$ different ways to choose the two computers. Thus $P=frac{(r^{n-2}) {n choose 2}}{r^n}$
This one I have no idea how to even begin. Please help!
probability combinatorics permutations
$endgroup$
I have never done this type of question (with arbitrary variables in a counting problem), so I had a lot of difficulty. Please let me know if my approach is wrong. Thanks!
- "Computer number 1 is assigned no jobs";
- "Computers number 1 and 2 are assigned no jobs";
- "exactly two of the computers are assigned no jobs"
- "No computer is assigned more than one job".
Here are my attempts:
Firstly, the total number of combinations is $r^n$, since for each of the n computers, an unlimited number of tasks from r can be allocated.
Since Computer 1 can be assigned no jobs, there are $r^{n-1}$ ways to assign the tasks to the remaining tasks. Thus P = $frac{r^{n-1}}{r^n}$.
Same idea to the one above, P = $frac{r^{n-2}}{r^n}$
There are $r^{n-2}$ resources to allocate, but since any two computers, there would be $n choose 2$ different ways to choose the two computers. Thus $P=frac{(r^{n-2}) {n choose 2}}{r^n}$
This one I have no idea how to even begin. Please help!
probability combinatorics permutations
probability combinatorics permutations
edited Jan 19 at 20:48
Did
249k23228466
249k23228466
asked Jan 16 at 23:41
PanasoPanaso
143
143
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
1
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48
add a comment |
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
1
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
1
1
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
The total number of ways to assign tasks to computer is $n^r$, not $r^n$. This is because each of the $r$ tasks needs to be assigned to be assigned to exactly one computer, and there are $n$ choices for where to assign each task. Once you make this switch, you will have the correct answer to questions $1$ and $2$.
Question $4$ is easier than $3$. The first task can be assigned to any of the $n$ computers. The second can be assigned to any of $(n-1)$ computers, since it cannot be assigned to the first. The third task can be assigned to any of $(n-2)$ computers, and so on. The final answer is
$$
frac{n(n-1)(n-2)cdots(n-r+1)}{n^r}=frac{n!}{n^r(n-r)!}.
$$
Question $3$ is actually pretty tricky. There are $binom{n}2$ ways to choose the computers which get no tasks. We now need to assign tasks to the remaining computers so that each computer gets at least one task. This condition is hard to account for; you cannot just do $(n-2)^r$. Rather, we need to use the principle of inclusion exclusion. If you are unfamiliar with this method, then whoever asked you this question was being unfair!
Specifically, take all of the ways to assign tasks to these $(n-2)$ computers, $(n-2)^r$. For each computer, we then subtract the "bad" assignments where that computer did not receive a task. The result is $(n-2)^r-(n-2)(n-3)^r$. However, assignments which were "doubly bad" have been subtracted twice, so these must be added back in, resulting in $(n-2)^r-(n-2)(n-3)^r+binom{n-2}2(n-4)^r$. It turns out we have to then subtract the "triple bads," add back the quadruple bads, and so on all the way down, resulting in a final answer of
$$
frac1{n^r}sum_{k=0}^{n-2}(-1)^kbinom{n-2}k(n-2-k)^r.
$$
$endgroup$
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
|
show 5 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3076435%2fin-dynamic-resource-allocation-r-tasks-are-assigned-at-random-to-n-computers-wi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
The total number of ways to assign tasks to computer is $n^r$, not $r^n$. This is because each of the $r$ tasks needs to be assigned to be assigned to exactly one computer, and there are $n$ choices for where to assign each task. Once you make this switch, you will have the correct answer to questions $1$ and $2$.
Question $4$ is easier than $3$. The first task can be assigned to any of the $n$ computers. The second can be assigned to any of $(n-1)$ computers, since it cannot be assigned to the first. The third task can be assigned to any of $(n-2)$ computers, and so on. The final answer is
$$
frac{n(n-1)(n-2)cdots(n-r+1)}{n^r}=frac{n!}{n^r(n-r)!}.
$$
Question $3$ is actually pretty tricky. There are $binom{n}2$ ways to choose the computers which get no tasks. We now need to assign tasks to the remaining computers so that each computer gets at least one task. This condition is hard to account for; you cannot just do $(n-2)^r$. Rather, we need to use the principle of inclusion exclusion. If you are unfamiliar with this method, then whoever asked you this question was being unfair!
Specifically, take all of the ways to assign tasks to these $(n-2)$ computers, $(n-2)^r$. For each computer, we then subtract the "bad" assignments where that computer did not receive a task. The result is $(n-2)^r-(n-2)(n-3)^r$. However, assignments which were "doubly bad" have been subtracted twice, so these must be added back in, resulting in $(n-2)^r-(n-2)(n-3)^r+binom{n-2}2(n-4)^r$. It turns out we have to then subtract the "triple bads," add back the quadruple bads, and so on all the way down, resulting in a final answer of
$$
frac1{n^r}sum_{k=0}^{n-2}(-1)^kbinom{n-2}k(n-2-k)^r.
$$
$endgroup$
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
|
show 5 more comments
$begingroup$
The total number of ways to assign tasks to computer is $n^r$, not $r^n$. This is because each of the $r$ tasks needs to be assigned to be assigned to exactly one computer, and there are $n$ choices for where to assign each task. Once you make this switch, you will have the correct answer to questions $1$ and $2$.
Question $4$ is easier than $3$. The first task can be assigned to any of the $n$ computers. The second can be assigned to any of $(n-1)$ computers, since it cannot be assigned to the first. The third task can be assigned to any of $(n-2)$ computers, and so on. The final answer is
$$
frac{n(n-1)(n-2)cdots(n-r+1)}{n^r}=frac{n!}{n^r(n-r)!}.
$$
Question $3$ is actually pretty tricky. There are $binom{n}2$ ways to choose the computers which get no tasks. We now need to assign tasks to the remaining computers so that each computer gets at least one task. This condition is hard to account for; you cannot just do $(n-2)^r$. Rather, we need to use the principle of inclusion exclusion. If you are unfamiliar with this method, then whoever asked you this question was being unfair!
Specifically, take all of the ways to assign tasks to these $(n-2)$ computers, $(n-2)^r$. For each computer, we then subtract the "bad" assignments where that computer did not receive a task. The result is $(n-2)^r-(n-2)(n-3)^r$. However, assignments which were "doubly bad" have been subtracted twice, so these must be added back in, resulting in $(n-2)^r-(n-2)(n-3)^r+binom{n-2}2(n-4)^r$. It turns out we have to then subtract the "triple bads," add back the quadruple bads, and so on all the way down, resulting in a final answer of
$$
frac1{n^r}sum_{k=0}^{n-2}(-1)^kbinom{n-2}k(n-2-k)^r.
$$
$endgroup$
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
|
show 5 more comments
$begingroup$
The total number of ways to assign tasks to computer is $n^r$, not $r^n$. This is because each of the $r$ tasks needs to be assigned to be assigned to exactly one computer, and there are $n$ choices for where to assign each task. Once you make this switch, you will have the correct answer to questions $1$ and $2$.
Question $4$ is easier than $3$. The first task can be assigned to any of the $n$ computers. The second can be assigned to any of $(n-1)$ computers, since it cannot be assigned to the first. The third task can be assigned to any of $(n-2)$ computers, and so on. The final answer is
$$
frac{n(n-1)(n-2)cdots(n-r+1)}{n^r}=frac{n!}{n^r(n-r)!}.
$$
Question $3$ is actually pretty tricky. There are $binom{n}2$ ways to choose the computers which get no tasks. We now need to assign tasks to the remaining computers so that each computer gets at least one task. This condition is hard to account for; you cannot just do $(n-2)^r$. Rather, we need to use the principle of inclusion exclusion. If you are unfamiliar with this method, then whoever asked you this question was being unfair!
Specifically, take all of the ways to assign tasks to these $(n-2)$ computers, $(n-2)^r$. For each computer, we then subtract the "bad" assignments where that computer did not receive a task. The result is $(n-2)^r-(n-2)(n-3)^r$. However, assignments which were "doubly bad" have been subtracted twice, so these must be added back in, resulting in $(n-2)^r-(n-2)(n-3)^r+binom{n-2}2(n-4)^r$. It turns out we have to then subtract the "triple bads," add back the quadruple bads, and so on all the way down, resulting in a final answer of
$$
frac1{n^r}sum_{k=0}^{n-2}(-1)^kbinom{n-2}k(n-2-k)^r.
$$
$endgroup$
The total number of ways to assign tasks to computer is $n^r$, not $r^n$. This is because each of the $r$ tasks needs to be assigned to be assigned to exactly one computer, and there are $n$ choices for where to assign each task. Once you make this switch, you will have the correct answer to questions $1$ and $2$.
Question $4$ is easier than $3$. The first task can be assigned to any of the $n$ computers. The second can be assigned to any of $(n-1)$ computers, since it cannot be assigned to the first. The third task can be assigned to any of $(n-2)$ computers, and so on. The final answer is
$$
frac{n(n-1)(n-2)cdots(n-r+1)}{n^r}=frac{n!}{n^r(n-r)!}.
$$
Question $3$ is actually pretty tricky. There are $binom{n}2$ ways to choose the computers which get no tasks. We now need to assign tasks to the remaining computers so that each computer gets at least one task. This condition is hard to account for; you cannot just do $(n-2)^r$. Rather, we need to use the principle of inclusion exclusion. If you are unfamiliar with this method, then whoever asked you this question was being unfair!
Specifically, take all of the ways to assign tasks to these $(n-2)$ computers, $(n-2)^r$. For each computer, we then subtract the "bad" assignments where that computer did not receive a task. The result is $(n-2)^r-(n-2)(n-3)^r$. However, assignments which were "doubly bad" have been subtracted twice, so these must be added back in, resulting in $(n-2)^r-(n-2)(n-3)^r+binom{n-2}2(n-4)^r$. It turns out we have to then subtract the "triple bads," add back the quadruple bads, and so on all the way down, resulting in a final answer of
$$
frac1{n^r}sum_{k=0}^{n-2}(-1)^kbinom{n-2}k(n-2-k)^r.
$$
edited Jan 17 at 23:17
answered Jan 17 at 1:19
Mike EarnestMike Earnest
27.6k22152
27.6k22152
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
|
show 5 more comments
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
Wouldn't it be $r^n$ because for each of the n computers, we can assign up to r tasks? For example, if we have 5 computers and 10 tasks, for each of the 5 computers, we can (potentially) assign up to 10 tasks for each computer. So there will be a total of $10^5$ different combinations. (If we're tossing 5 coins, then for each of the coins, we have 2 possible results, resulting in $2^5$ different possibilities)
$endgroup$
– Panaso
Jan 17 at 14:54
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso The way I read it, every task must be assigned to exactly one computer, so there are n choices for where the first task is assigned, n choices for the second, etc. For example, if there are 10 computers, and the tasks are (1) doing my taxes and (2) downloading an ebook, then there are 10 ways to choose which computer does task (1), and 10 ways to choose which does task (2), for a total of $10^2$ ways, not $2^{10}$.
$endgroup$
– Mike Earnest
Jan 17 at 16:27
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
@Panaso Still, in your interpretation, the answer would be $(r+1)^n$, since each computer can assigned between $0$ and $r$ tasks (inclusive), which is $r+1$ choices.
$endgroup$
– Mike Earnest
Jan 17 at 16:29
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
how did you get the (n-r+1) term in the numerator for Question4?
$endgroup$
– Panaso
Jan 17 at 23:08
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
$begingroup$
The factors in the numerator drop by $1$ each time, they start with $n$, and there are exactly $r$ factors. This implies the last factor is $(n-r+1)$. For example, if you start with $10$, and drop by one each time for seven terms, you get $10times 9times 8times times 7 times 6times 5times 4=10times 9times dotstimes (10-7+1)$. @Panaso
$endgroup$
– Mike Earnest
Jan 17 at 23:15
|
show 5 more comments
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3076435%2fin-dynamic-resource-allocation-r-tasks-are-assigned-at-random-to-n-computers-wi%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
The total number of combinations should be $n^r$, not $r^n$.
$endgroup$
– Mike Earnest
Jan 17 at 0:19
1
$begingroup$
@Panaso Trying to cover your tracks? Don't do this.
$endgroup$
– Did
Jan 19 at 20:48