Database Management Systems
Relational Algebra
GATE 2008
Hard
Which of the following tuple relational calculus expression(s) is/are equivalent to ∀t ∈ r(P(t))?
I. ¬∃t ∈ r(P(t)) II. ∃t ∉ r(P(t)) III. ¬∃t ∈ r(¬P(t)) IV. ∃t ∉ r(¬P(t))
- AI only
- BII only
- III only
- DIII and IV only
Explanation
∀t∈r P(t) is logically equivalent to ¬∃t∈r ¬P(t) — the standard universal-to-existential conversion (III). I negates P(t) itself inside the existential rather than negating the whole quantified statement — wrong. II and IV talk about tuples OUTSIDE r, which is entirely unrelated to a statement about tuples IN r. Only III is equivalent.
Source: GATE CS 2008 (2008)
This question is part of a 15-day revision cycle — sign in and Project Forge will bring it back the day before you'd forget it.