r/AskComputerScience • • Dec 16 '19

How does one attempt and visualize this?

Post image
35 Upvotes

19 comments sorted by

View all comments

3

u/[deleted] Dec 16 '19 edited Dec 16 '19

Try drawing out a 3 circle venn diagram with each set. I believe the answer is {2,3}, as they are the two elements that are in M and in either L or H but not both Edit: I missed the “not in” symbol, so i think the answer is {1,4}

5

u/Ruszkowski217 Dec 16 '19

I disagree however I may be wrong. I believe it is saying let a number in subset M (2,3) while the number in not in subset L(1,2) AND not in H(3,4). By elimination you are left with an empty subset or {} because n is at first {2,3} due to M and then then it can’t be populated with values in L and H. However I still might be wrong as it has been some time since I took a logic course. I do agree with using diagrams to visualize it and seeing what can be used.

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

2

u/[deleted] Dec 16 '19

oh this makes sense . Thank you for the explanation

1

u/DJRhetorik Dec 16 '19

I’m curious too