Skip to main content

GATE CSE 2008Databases › Relational Algebra & CalculusVerified

GATE CSE 2008 PYQ: Which of the following tuple relational calculus expression(s) is/are equivalent to ∀ t ∈ r ( P ( t ) )…

Which of the following tuple relational calculus expression(s) is/are equivalent to ∀t∈r(P(t))\forall t \in r \left(P\left(t\right)\right)?

  1. ¬∃t∈r(P(t))\neg \exists t \in r \left(P\left(t\right)\right)
  2. ∃t∉r(P(t))\exists t \notin r \left(P\left(t\right)\right)
  3. ¬∃t∈r(¬P(t))\neg \exists t \in r \left(\neg P\left(t\right)\right)
  4. ∃t∉r(¬P(t))\exists t \notin r \left(\neg P\left(t\right)\right)
  1. A
    I only
  2. B
    II only
  3. C
    III only
    Correct answer
  4. D
    III and IV only

Answer

(C) III only

Approach

Use the standard quantifier-negation equivalence for tuple relational calculus. The original formula says that every tuple belonging to relation \(r\) satisfies \(P\). The equivalent form must therefore negate the existence of a counterexample inside \(r\).

The original tuple relational calculus formula \(\forall t \in r\,(P(t))\) is equivalent to \(\neg \exists t \in r\,(\neg P(t))\), which is expression III. Expressions I, II, and IV have different truth conditions. Hence the correct option is C, "III only".

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.