This is one of the problem I have been working:
Analyze the logical forms of the following statements:
(a) Either Alice or Bob is not in the room.
(a) Neither Alice nor Bob is in the room.
Now, I have come up with the following logical forms:
A = Alice is in the room.
B = Bob is in the room.
(a) (A ∨ ¬B) ∧ (¬A ∨ B)
(b) ¬(A ∧ B)
Now, I have been verifying my answer from here and it has an completely different answer:
(a) ¬A ∨ ¬B
(a) ¬A ∧ ¬B
Can somebody provide more insights into this ?
You might benefit from an answer that explains where you went wrong in the train of thought that led to your answers. Unfortunately, you don't describe your train of thought, and I can't think of a plausible one that would lead to your answers. So I'll just indicate what your answers are saying, without worrying about how you got them.
In part (a), your answer $(A\lor\neg B)\land(\neg A\lor B)$ is logically equivalent to $(A\iff B)$, i.e., "Alice is in the room if and only Bob is." In particular, it's true if both of them are in the room, and it's false if one is in the room and the other is out. (You should check what I wrote here, using truth tables.) Both of these disagree with what (a) is supposed to say.
In part (b), your answer $\neg(A\land B)$ says that it's not the case that they're both in the room; equivalently, at least one is out. So it would be true if one is in the room and the other is out. (Again, check using truth tables.) That disagrees with what (b) is supposed to say.
By the way, you should probably also work out the truth tables of the correct answers, to see that they do indeed say what they're supposed to say.