Finding Ways to Execute Concurrent Processes: An Urn Model

  • Thread starter Thread starter MartinWDK
  • Start date Start date
  • Tags Tags
    Model
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
<br /> \frac {N!}{n_1!\dots n_k!}<br />
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
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Replies
14
Views
2K
Replies
14
Views
6K
Replies
1
Views
4K
Replies
3
Views
461
Replies
62
Views
11K
Replies
46
Views
13K
Back
Top