How do I calculate permutations of a multi-set with limited elements?

In summary, the problem is to find the number of 4-digit numbers that can be created from a multiset of 6 numbers. This can be approached by using the permutation of a multi-set formula, which takes into account the repetitions within the set. The solution is to enumerate all possible combinations, which results in 21 permutations.
  • #1
Crazorin
4
0
[mentor note: THis is not a homework assignment. It is for a work project.]

I need a formula that is probably based on permutations of multi-set. Except in my case you will not use up all elements of the sets, only some of them.

For example I have the following sets: {1,1,1}{2}{3};

Altogether 5 elements and I need to find out how many 3 digit numbers can be created. So I would use only 3 of the 5 elements.

Or the sets could be {1,1}{2,2,2}{3}; 6 elements to create 4 digit number.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Why are there multiple sets? Is the first set allowed elements for the first digit?

Can you give a more concrete example as sets like {1,1,1} is really the set {1}?
 
  • #3
jedishrfu said:
Why are there multiple sets? Is the first set allowed elements for the first digit?

Can you give a more concrete example as sets like {1,1,1} is really the set {1}?

When I originally wrote up the problem, I didn't used sets.
I approached it as I have 6 numbers: 1, 1, 2, 2, 2, 3. How many different 4 digit number can be created of these 6 numbers?
Then someone said, what I need is the permutation of multi-set. In that case you handle each repetition as a set and than use the size of the sets in the formula.
Following this line you would get 3 sets with the size of 2, 3 and 1; and the permutation of the multi-set would be 5!/(2!3!1!)

So I thought after a learned that the permutation of multi-set seems to be the closest what I need out of the million different permutation/combination formulas, I decided to write up the problem with sets, instead of just a list of numbers.

I am not sure if the solution to my problem is a modification of the permutation of a multi-set, or I need a completely different approach.
 
  • #4
This is indeed a multiset problem, but not a simple one. You want the number of permutations of 4 items from the multiset {1, 1, 1, 2, 3}. I am not sure there is an analytical formula for this but they are simple to enumerate algorithmically:
Code:
1    1    1
1    1    2
1    1    3
1    2    1
1    2    3
1    3    1
1    3    2
2    1    1
2    1    3
2    3    1
3    1    1
3    1    2
3    2    1
So the answer is 21.
 

1. What is a permutation of a multi-set?

A permutation of a multi-set is a rearrangement of the elements within the multi-set. It is different from a combination, as the order of the elements matters in a permutation.

2. How do you calculate the number of permutations for a given multi-set?

The number of permutations for a multi-set can be calculated using the formula n! / (a!b!...), where n is the total number of elements in the multi-set and a, b, etc. represent the number of repetitions for each unique element.

3. Can a multi-set have repeated elements in a permutation?

Yes, a multi-set can have repeated elements in a permutation. In fact, the number of permutations for a multi-set with repeated elements will be greater than a multi-set with unique elements.

4. What is the difference between a permutation of a multi-set and a permutation of a set?

A permutation of a multi-set takes into account the number of repetitions for each element, while a permutation of a set does not. This means that a permutation of a multi-set can have repeated elements, while a permutation of a set cannot.

5. How is a permutation of a multi-set useful in real-life applications?

Permutations of multi-sets are useful in various fields such as computer science, statistics, and genetics. They can be used to generate unique combinations of elements in a given sequence, analyze data, and study genetic mutations, among other applications.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
12
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
758
  • Precalculus Mathematics Homework Help
Replies
23
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
14
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
933
  • Set Theory, Logic, Probability, Statistics
2
Replies
55
Views
4K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
820
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
2K
Back
Top