Sunday, July 24, 2022

Ex 4 - Problem on Derangement Theorem

Derangement Theorem Go to Index of Math Lessons

Ques: There are four balls of different colors and four boxes of the same colors as of the balls. Find the number of ways in which the balls, one in each of the box, could be placed such that the ball does not go to the box of its own color.

Ans: This problem comes directly from the 'derangement theorem'.

In combinatorial mathematics, a derangement is a permutation of the elements of a set, such that no element appears in its original position.

If A, B, C, D are four balls and a, b, c, d are four boxes then derangements are:

Let the number of balls be:  
Then, the balls are:  
And, the boxes are:  
All derangements of the balls are:   {{generateDerangements()}}
The number of derangements of 'n' balls is equal to: round(n!/e) = {{generateDerangementsCount()}}
Tags: Mathematical Foundations for Data Science,

No comments:

Post a Comment