Finding Ways to Execute Concurrent Processes: An Urn Model

  • Context: Graduate 
  • Thread starter Thread starter MartinWDK
  • Start date Start date
  • Tags Tags
    Model
Click For Summary
SUMMARY

The discussion centers on calculating the number of distinct sequences of colored balls drawn from an urn, where the urn contains k different colors with varying quantities denoted as n_k. The formula to determine the number of unique sequences is given by N! / (n_1! * n_2! * ... * n_k!), where N is the total number of balls. This formula accounts for the indistinguishability of balls of the same color, ensuring accurate counting of permutations. The participants confirm that this formula aligns with their calculations, providing a definitive solution to the problem posed.

PREREQUISITES
  • Understanding of combinatorial mathematics
  • Familiarity with factorial notation
  • Basic knowledge of probability theory
  • Concept of permutations and combinations
NEXT STEPS
  • Study advanced combinatorial techniques in "Discrete Mathematics" textbooks
  • Explore applications of the multinomial coefficient in probability
  • Learn about generating functions for counting sequences
  • Investigate the use of urn models in statistical mechanics
USEFUL FOR

Mathematicians, computer scientists, and anyone involved in algorithm design or statistical analysis who seeks to understand concurrent process execution and combinatorial counting methods.

MartinWDK
Messages
2
Reaction score
0
Dear all,

We are trying to compute the number of ways for a computer to execute concurrent processes.
It appears that this problem is equivalent to asking the following:

Assume that an urn is filled with different quantities of differently colored balls. There are k different colors, and the number of balls of a given color is denoted nk.
Balls are drawn from the urn it is empty, and the color of the drawn ball is noted.

The question is: how many different color sequences can be constructed in this way?

Thank you,

Martin
 
Physics news on Phys.org
Let N=n1+n2+...+nk

The answer for your question is
[tex] \frac {N!}{n_1!\dots n_k!}[/tex]
because there would be N! possibilities if the colours were pairwise different, but they are not, so we counted each possibility a lot of times. One can permutate the balls from the jth colour n_j! ways but when doing so we don't see any difference in the colour-sequence, so we have to divide N! by n_1!...n_k!
 
Hi csopi,

Thank you for a quick reply and for a clear and coherent explanation!

The formula matches our calculations, so I think we have our answer :)



Martin
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 26 ·
Replies
26
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 27 ·
Replies
27
Views
11K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 21 ·
Replies
21
Views
7K
Replies
8
Views
5K