In this question, I asked about a confusion I had counting the size of the sampl
ID: 650389 • Letter: I
Question
In this question, I asked about a confusion I had counting the size of the sample space for allocation of n processes to n servers. Bangye gave a simple answer by approaching the counting problem from the perspective of the choice when allocating each process.
I'd like to know -- to expand my understanding of counting -- how we might count in a different way, from the server perspective: assigning each server to some number of processes.
The obvious problem I see is if I have already allocated one process to a server, I then can't allocate it to another, and so the analysis becomes complicated -- each server-based count is dependent on all other server-based counts.
Is this a common problem, and there's actually a heuristic to know which way to count things?
Explanation / Answer
The heuristic is: "try both ways, and see which works". As you get more practice you might start to develop a sixth sense about which one to try first, but that's the most useful principle I can suggest.
The general mathematical principle is the bijection principle. If you have two finite sets S,T and you can find a bijection between S and T, then they must have the same size. So, if you can count the number of elements in either of them, you can infer the number of elements in the other one.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.