Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Principle of Inclusion and Exclusion problems #171

Open
Swayam221 opened this issue Oct 17, 2020 · 0 comments
Open

Principle of Inclusion and Exclusion problems #171

Swayam221 opened this issue Oct 17, 2020 · 0 comments
Assignees
Labels
New generator Use this label for proposing a new generator

Comments

@Swayam221
Copy link
Contributor

Swayam221 commented Oct 17, 2020

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

@lukew3 lukew3 added the New generator Use this label for proposing a new generator label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New generator Use this label for proposing a new generator
Projects
None yet
Development

No branches or pull requests

2 participants