1 / 15

CSE 20 – Discrete Mathematics

emilie
Télécharger la présentation

CSE 20 – Discrete Mathematics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.Based on a work at http://peerinstruction4cs.org.Permissions beyond the scope of this license may be available at http://peerinstruction4cs.org. CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett

  2. Today’s Topics: Equivalenceand Validity • Proving equivalence of two propositions using truth tables • Proving validity of an argument form using truth tables • Converse, iff, contrapositive

  3. 1. Proving equivalence of two propositions using truth tables

  4. Which pair of propositions are equivalent to each other? p, ¬p p → q, ¬p q, ¬p ∨ q ¬q, ¬p Other/none/more than one

  5. Truth table for (p → q) ∧ ¬p (p → q) ∧ ¬p is equivalent to: q p → q ¬p ∨ q ¬p Other/none/more than one

  6. Hardware for (p → q) ∧ ¬p Hardware for ¬p Back to the Algebra analogy: we do similar simplification in jr. high math: a + b – 2a + 3b + a –(8b/2) + a = a

  7. Hardware design efficiency • Improved performance of CPUs depends in part on squeezing logic onto as tiny amount of silicon as possible, and using as little electricity/heat as possible. • Minimizing logic gates helps both.

  8. How can we prove that two propositions are not equivalent? • Make a truth table that has columns for both, and verify that not all the entries in the two columns are T • Make a truth table that has columns for both, and verify that at least one of the entries in the two columns is F • Make a truth table that has columns for both, and make sure that the two columns are not identical to each other. • Make a truth table that has columns for both, and make sure that in the row where the input variables are all T, the propositions are both F

  9. 2. Proving validity of an argument form using truth tables Also: converse, iff, and contrapositive

  10. Be the fact-checker! If Sally is one of the 47% who do not pay income tax, then Sally is an Obama voter. Therefore, if Sally is an Obama voter, then Sally is one of the 47% who do not pay income tax.*What is the argument form? • (p → q) (q → p) • (¬p → ¬q)  (¬q → ¬p) • (p → q)  (p → q) • (¬p → ¬q)  (¬p → ¬q) • Other/none/more than one * I made up this example, this is not what he said in the video.

  11. Be the fact-checker! • Translate to logic form: (p→q)  (q→p) • Change the “therefore” into “implies” • (p→q) →(q→p) • Make a truth table for that proposition (preferably step-by-step), and see if ________________________... Same argument form as this: “If this shape is a square, then this shape has four equal-length sides connected at right angles. Therefore, if this shape has four equal-length sides connected at right angles, then this shape is a square.” Whether or not you agree with the statement, is the argument form valid? Steps to determining if it is valid:

  12. Step-by-step truth table for (p→q) → (q→p) So, is the argument form valid? • Valid • Not valid In your groups, say in words what it is about this table that shows it is valid or not valid.

  13. Converse error Here is another example with the same form: • If this shape is a square, then this shape is a rectangle. Therefore, if this shape is a rectangle, then this shape is a square. No! • p→ q and q→p are the converseof each other. • It is not safe to assume that if p→q is true, then q→p is also true! • The converse could be true though…as in the equal sides/square example. If both p→q and q→p are true, then we say p↔q (“p iff q”).

  14. Converse Error • Here is another argument a similar form. Remember this? • “If something is made out of wood, then it floats. • Therefore, if she floats, then she is made out of wood • [and therefore a witch!]”

  15. Argument validity What about this? • If this shape is a square, then this shape is a rectangle. Therefore, if this shape is not a rectangle, then this shape is not a square. • Translate to logic, then replace with →, giving: (p→q)→(¬q→¬p) • Make a truth table: Argument form is? Valid Not valid Why?

More Related