r/AskComputerScience • • Dec 16 '19

How does one attempt and visualize this?

Post image
35 Upvotes

19 comments sorted by

View all comments

8

u/Audiblade Dec 16 '19

I think this problem could have used notation that's just a touch clearer. When I saw X = {n | n ∈ M, I first thought it meant, "consider all n such that n is in M." That is, it initially looked like the order of operations was X = {(n | n ∈ M) ⇒ (n ∉ L & n ∉ H)}, not X = {n | [(n ∈ M) ⇒ (n ∉ L & n ∉ H)]}.

The way I initially read it doesn't end up making any sense, so looking at the problem closely eventually leads one to the correct way of reading it. So the notation isn't badly ambiguous. I'm bringing it up because I think it's just ambiguous enough that maybe that's part of what made this problem difficult for you to solve.

2

u/pinkytoeyeezys Dec 17 '19

I was thinking the same thing, sometimes understanding what the problem is asking can be more difficult than the solution.