r/AskComputerScience • • Dec 16 '19

How does one attempt and visualize this?

Post image
35 Upvotes

19 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Dec 16 '19

its sadly neither. i thought it was empty. i drew diagrams but still could not see it

3

u/Ruszkowski217 Dec 16 '19

What’s the correct answer? Just curious :)

10

u/SuityBarney Dec 16 '19

I think it should be {1,4}, because when put into words, the set builder notation says, that X is the set of n (from the universe U) such that if n belongs to M, then it is not in L and it is not in H.

This is trivially true for 1 and 4, because the left side of the implication is false, therefore the whole implication is true.

Now, for 2 and 3, the left side is true, therefore the right side has to be true too. But 2 is in L, which violates the conjuction, and 3 is in H, which violates the conjunction as well.

3

u/[deleted] Dec 16 '19

1,4 is correct