Tuesday, January 18, 2022

Ex 1: Visualizing Permutation-Combination Problem Using JavaScript


1 - Permutation and Combination Go to Index of Math Lessons

Ques: Find the number of ways of distributing 8 identical balls in 3 distinct boxes so that none of the boxes is empty.

Ans: Let the number of balls in three boxes be X, Y and Z.

Browsers that do not support canvas show this message!

We see that X + Y + Z = 8 with X, Y, Z >= 1 and <=6 .

And from the above diagram, there are only 7C 2 ways of doing it, that is the number of ways you can put two sticks in any of the seven gaps between the eight balls.

Tags: Technology,Mathematical Foundations for Data Science,JavaScript,Web Development,

No comments:

Post a Comment