Q joan is at the office r laura is at the office use

Info icon This preview shows pages 26–37. Sign up to view the full content.

View Full Document Right Arrow Icon
q: Joan is at the office. r: Laura is at the office. Use logical connectives to express the following sentences: 1. John is not at the office. 2. If Joan and Laura are at the office then John is at the office.
Image of page 26

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
LOGICAL STRUCTURE 3. If John is at the office then either Joan or Laura is at the office. 4. John, Joan and Laura are all at the office. 5. Joan is not at the office and either John or Laura are at the office. 6. If Laura is not at the office then John and Joan are both at the office.
Image of page 27
LOGICAL STRUCTURE B. Translate the following into logical expression. 1. “ You can access the internet from campus only if you are a computer science major or you are not a freshman.” 2. “ You cannot ride the roller coaster if you are under 4 feet tall unless you are older than 16 years old.”
Image of page 28

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
LOGICAL STRUCTURE C. Solve a Crime Four friends have been identified as suspects for an unauthorized access into a computer system. They have made statements to the investigating authorities. Alice said “Carlos did it.” John said “ I did not do it .” Carlos said “ Diana did it.” Diana said “Carlos lied when he said that I did it.” If the authorities also know that exactly one of the four suspects is telling the truth,
Image of page 29
LOGICAL STRUCTURE Theorem The following list of logically equivalent properties can be established using truth tables. 1. Indempotent Laws p p ≡ p p p ≡ p 2. Double Negation ¬(¬p) ≡ p 3. De Morgan’s Laws ¬ (p q) ≡ ¬p ¬q
Image of page 30

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
LOGICAL STRUCTURE 5. Associative properties p (q r) ≡ (p q) r p (q r) ≡ (p q) r 6. Distributive properties p (q r) ≡ (p q) (p r) p (q r) ≡ (p q) (p r) 7. Equivalence of Contrapositive p→q ≡ ¬q→¬p 8. Other useful properties
Image of page 31
LOGICAL STRUCTURE QUANTIFIERS Definition Let P(x) be a statement involving the variable x and let D be a set. We call P a propositional function (with respect to D ) if for each x in D , P(x) is a proposition. We call D the domain of discourse of P .
Image of page 32

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
LOGICAL STRUCTURE P(x) : value of the propositional function P of x . Example: “x>5” these statement is not a proposition because whether it is true or false depends on the value of x. Once a value has been assigned to the variable x, the statement P(x) becomes a proposition and has a truth value.
Image of page 33
LOGICAL STRUCTURE In general, a statement involving n variables x 1 , x 2 ,…,x n can be denoted by P(x 1 , x 2 ,…,x n ). A statement of the form P(x 1 , x 2 , …,x n ) is the value of the propositional function P at the n-tuples (x 1 , x 2 ,…,x n ) and P is also called a predicate.
Image of page 34

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
LOGICAL STRUCTURE To create proposition from a propositional function: Assign values to the variables Quantification types: 1. universal quantification 2. existential quantification
Image of page 35
LOGICAL STRUCTURE Definition The universal quantification of P(x) is the proposition “P(x) is true for all values of x in the domain of discourse.” Notation: denotes the universal quantification of P(x) called the universal quantifier read as “for all x P(x)
Image of page 36

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 37
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern