Propositional Satisfiability - Answer-A compound proposition is satisfiable if there is an
assignment of truth values to its variables that
makes it true. When no such assignments exists, that is, when the compound
proposition is false
for all assignments of truth values to its variables, the compound proposition is
unsatisfiable.
Predicate, Quantifier - Answer-x = y + 3, "computer x is under attack by an intruder"
x and y are variables. The part other than variables is predicate.
PRECONDITIONS AND POSTCONDITIONS - Answer-The statements that describe
valid input are known
as preconditions and the conditions that the output should satisfy when the program has
run
are known as postconditions.
, Universal quantifier - Answer-For all values of a variable in a particular domain, called
the domain of discourse (or
the universe of discourse)
"for all", "for every," "all of," "for each," "given any," "for arbitrary," "for each," and "for
any."
Ex: ∀xN(x)
Existential quantifier - Answer-We form a proposition that is true if and only if P(x) is true
for at least one value of x in the domain.
"There exists a such that ".
∃xP(x)
∃, ∀ - Answer-"∀" applies the variable over every values of the domain (conjunction)
"∃" applies the variable over at least one of the values of the domain (disjunction)
Precedence of Quantifiers - Answer-∀ and ∃ have higher precedence than all logical
operators from propositional calculus.
∀xP(x) ∨ Q(x) ≡ (∀xP(x)) ∨ Q(x)
Bound, Free Variables - Answer-∃x(x + y = 1)
x is bound because a quantifier is used over it. But y is free.
Logical Equivalences Involving Quantifiers - Answer-Statements involving predicates
and quantifiers are logically equivalent if and only if they
have the same truth value no matter which predicates are substituted into these
statements
and which domain of discourse is used for the variables in these propositional functions.
Notation used: S ≡ T
Nested Quantifiers - Answer-∀x∀yP(x, y) ≡ ∀y∀xP(x, y)
∃x∃yP(x, y) ≡ ∃y∃xP(x, y)
∀x∃yP(x, y) =! ∃y∀xP(x, y) {remember x+y=0 example the RHS makes no sense}
∃y∀xP(x, y) → ∀x∃yP(x, y)
Proposition - Answer-A proposition is a declarative sentence (that is, a sentence that
declares a fact) that is either true
or false, but not both. It is a basic building block of logic.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller victoryguide. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.