Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Inputs:
- abc def 123 74 hike bleh
- def 123 75 129 deb bla
- Outputs:
- Enter the string elements of A separated by space :
- abc def 123 74 hike bleh
- Enter the string elements of B separated by space :
- def 123 75 129 deb bla
- 1. The cardinality and roster of the intersection of A and B
- def 123
- Total 2 entries
- 2. The cardinality and roster of the union of A and B
- abc def 123 74 hike bleh 75 129 deb bla
- Total 10 entries
- 3. The cardinality and roster of the relative complement of A and B
- abc 74 hike bleh
- Total 4 entries
- 4. The cardinality and roster of the relative complement of B and B
- 75 129 deb bla
- Total 4 entries
- 5. The cardinality and roster of the cross product of A and B
- (abc x def) (abc x 123) (abc x 75) (abc x 129) (abc x deb) (abc x bla) (def x def) (def x 123) (def x 75) (def x 129) (def x deb) (def x bla) (123 x def) (123 x 123) (123 x 75) (123 x 129) (123 x deb) (123 x bla) (74 x def) (74 x 123) (74 x 75) (74 x 129) (74 x deb) (74 x bla) (hike x def) (hike x 123) (hike x 75) (hike x 129) (hike x deb) (hike x bla) (bleh x def) (bleh x 123) (bleh x 75) (bleh x 129) (bleh x deb) (bleh x bla)
- Total 36 entries
- 6. The cardinality of the power set of the cross product of A and B
- |P(A x B)| = 68719476736
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement