S1:for each x in domain:
if P(x) is false:
return FALSE
return TRUE
S2:for each x in domain:
if P(x) is true:
return TRUE
return FALSE
Which of the following is correct?
(A) S1 represents $\exists x\,P(x)$, S2 represents $\forall x\,P(x)$
(B) S1 represents $\forall x\,P(x)$, S2 represents $\exists x\,P(x)$
(C) Both represent $\forall x\,P(x)$
(D) Both represent $\exists x\,P(x)$