The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Permutation

Permutation

0
Votes
1
Answer

There are 1000 red, orange and green t-shirts. We need to arrange them such that red orange pair can be a max of 25, red green pair can be a max of 15, orange red pair can be a max of 20, orange green pair can be max of 10, green red pair can be a max of 5, green orange pair can be a max of 22. The order matters. We need to arrange all 1000 tshirts in a horizontal line (left to right). The pair count given above is the tshirts placed next to each other (left to right). We do not have the count of each colour t-shirt, we only have the total number of t-shirts. So how to calculate the order possibilities?

1 Answer

365 Team
0
Votes

Hey Sujitha, 
 
I’m not entirely sure if we can compute this with a simple formula, since there are many moving parts in this problem.
 
What we would need to do is figure out the different ways we can arrange these t-shirts in consecutive chunks of t-shirts (i.e.112 red shirts, followed by 150 red shirts) and then for each one use the formula for permutations with repetition (which would be 1000!/(r! * o! * g!) in this case. However, to solve it we would need to know the number of shirts of each color. 
 
Best,
365 Vik

×
LAST CHANCE
Ready to Learn Data Science?
50% OFF