mathgenerator
mathgenerator copied to clipboard
Principle of Inclusion and Exclusion problems
the problem would generate a sample space of 3 sets and assign random no. of elements to each set and their intersections. problem will be to calculate the no. of elements in their union. example problem : Suppose you are using the inclusion-exclusion principle to compute the number of elements in the union of 3 sets. Each set has 14 elements. The pair-wise intersections have 9 elements each. There are 3 elements in the intersection of all four sets What is the size of the union? answer: (3x14)-(3x9)+3=18
i would like to add the function for this problem. please assign it to me