Finding Ways to Execute Concurrent Processes: An Urn Model

  • Thread starter MartinWDK
  • Start date
  • Tags
    Model
In summary, the group is trying to determine the number of ways for a computer to execute concurrent processes, which is equivalent to asking how many different color sequences can be constructed from an urn filled with k different colored balls with varying quantities. The formula for this is N! divided by n1!...nk!, where N is the total number of balls and nk represents the number of balls of a given color. This is because there are N! possibilities if the colors were all different, but since they are not, we must account for the multiple permutations of each color by dividing by n1!...nk!. After discussing and confirming this formula, the group believes they have their answer.
  • #1
MartinWDK
2
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
  • #2
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!
 
  • #3
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
 

Related to Finding Ways to Execute Concurrent Processes: An Urn Model

1. What is an Urn Model?

The Urn Model is a mathematical model used to represent systems that involve randomly selecting objects or events from a group. It is named after the idea of drawing balls from an urn, where each ball represents a specific event or outcome.

2. How can the Urn Model be applied to concurrent processes?

The Urn Model can be used to analyze and improve the execution of concurrent processes by representing each process as a ball in the urn and simulating the random selection of balls to determine the order in which processes are executed.

3. What are the advantages of using the Urn Model for concurrent processes?

Using the Urn Model allows for a more accurate analysis of the execution of concurrent processes compared to traditional models. It also provides a visual representation that can help identify potential bottlenecks and optimize the execution process.

4. Are there any limitations to using the Urn Model for concurrent processes?

While the Urn Model can be a useful tool, it may not accurately represent all real-world scenarios. It also relies on the assumptions that processes are independent and have equal probabilities of being selected, which may not always be the case.

5. How can the results from the Urn Model be applied to real-world situations?

The insights gained from the Urn Model can inform decision-making and help improve the execution of concurrent processes in various fields, such as computer science, operations management, and manufacturing. However, it is important to consider the limitations and adjust the model accordingly for more accurate results.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
977
Replies
2
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
6K
  • Calculus and Beyond Homework Help
Replies
1
Views
3K
  • Math Proof Training and Practice
2
Replies
62
Views
8K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Math Proof Training and Practice
2
Replies
46
Views
10K
  • Math Proof Training and Practice
2
Replies
42
Views
9K
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Cosmology
Replies
4
Views
2K
Back
Top