CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.

Slides:



Advertisements
Similar presentations
Discrete Math Methods of proof 1.
Advertisements

Introduction to Proofs
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Elementary Number Theory and Methods of Proof
– Alfred North Whitehead,
Quotient-Remainder Theory, Div and Mod
1 Discrete Structures CS Johnnie Baker Comments on Early Term Test.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
CMSC 250 Discrete Structures Number Theory. 20 June 2007Number Theory2 Exactly one car in the plant has color H( a ) := “ a has color”  x  Cars –H(
Proof Must Have Statement of what is to be proven.
Introduction to Proofs ch. 1.6, pg. 87,93 Muhammad Arief download dari
Copyright © Cengage Learning. All rights reserved.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Mathematical Induction Assume that we are given an infinite supply of stamps of two different denominations, 3 cents and and 5 cents. Prove using mathematical.
Adapted from Discrete Math
Methods of Proof & Proof Strategies
Valid Arguments Decide if each argument is valid. If the stones are rolling, they are not gathering moss. If the stones are not gathering moss, they are.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
Introduction to Proofs
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Conditional Statements CS 2312, Discrete Structures II Poorvi L. Vora, GW.
Discrete Mathematics. Propositional Logic 10/8/2015 What’s a proposition? PropositionsNot Propositions = 32Bring me coffee! CS173 is Bryan’s favorite.
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
CSci 2011 Discrete Mathematics Lecture 6
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Predicates and Quantified Statements
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications Kenneth H. Rosen (5 th Edition) Chapter 3 The Foundations: Logic and Proof,
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CS104:Discrete Structures Chapter 2: Proof Techniques.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 CMSC 250 Chapter 3, Number Theory. 2 CMSC 250 Introductory number theory l A good proof should have: –a statement of what is to be proven –"Proof:"
Section 1.7. Definitions A theorem is a statement that can be shown to be true using: definitions other theorems axioms (statements which are given as.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Chapter 1, Part III: Proofs With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without.
Section 1.7. Section Summary Mathematical Proofs Forms of Theorems Direct Proofs Indirect Proofs Proof of the Contrapositive Proof by Contradiction.
Chapter 1 Logic and proofs
CS-7081 Application - 1. CS-7082 Example - 2 CS-7083 Simplifying a Statement – 3.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Chapter 1 Logic and Proof.
2. The Logic of Compound Statements Summary
3. The Logic of Quantified Statements Summary
CSNB 143 Discrete Mathematical Structures
COMP 1380 Discrete Structures I Thompson Rivers University
Methods of proof Section 1.6 & 1.7 Wednesday, June 20, 2018
(CSC 102) Discrete Structures Lecture 2.
Chapter 1: The Foundations: Logic and Proofs
Discrete Math for CS CMPSC 360 LECTURE 4 Last time and recitations:
Information Technology Department
CHAPTER 1: LOGICS AND PROOF
CS 220: Discrete Structures and their Applications
A Brief Summary for Exam 1
COMP 1380 Discrete Structures I Thompson Rivers University
Copyright © Cengage Learning. All rights reserved.
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
Lecture 5 Number Theory & Proof Methods
Presentation transcript:

CMSC 250 Discrete Structures Exam #1 Review

21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q

21 June 2007Exam #1 Review3 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q

21 June 2007Exam #1 Review4 Prove the following … P1 ( p  q )  (~ q v r ) P2 (( p  ~ s )  q  ~ r  s )  q P3 ( r  ~ s )  ~ q  ~p~p P1  P2  P3  ~p (((P ^ Q) -> (~Q v R)) ^ (((P v ~S) ^ Q ^ ~R ^ S) v Q) ^ ((R v ~S) -> ~Q)) -> ~P

21 June 2007Exam #1 Review5 Answer to previous proof

21 June 2007Exam #1 Review6 Can you prove the following … P1 ( p  q )  (~ q v r ) P2 q  ~p~p P1  P2  ~p

21 June 2007Exam #1 Review7 Chapter 1 Statements, arguments (valid/invalid) Translation of statements Truth tables – special results Converse, inverse, contrapositive Logical Equivalences Inference rules Implication – biconditional DeMorgan’s law Proofs (including conditional worlds) Circuits

21 June 2007Exam #1 Review8 Informal to Formal Domain –A = set of all food –P = set of all people Predicates –E(x,y) = “x eats y”; D(x) “x is a dessert” Examples –Someone eats beets   p  P,  a  A, (a = “beet”)  E(p,x) –At least three people eat beets   p,q,r  P,  a  A, (a=“beet”)  E(p,x)  E(q,x)  E(r,x)  (p  q)  (p  r)  (q  r) –Not everyone eats every dessert.   p  P,  a  A, D(a)  ~E(p,a)

21 June 2007Exam #1 Review9 Formal to Informal Domain –D = set of all students at UMD Predicates –C(s) := “s is a CS student” –E(s) := “s is an engineering student” –P(s) := “s eats pizza” –F(s) := “s drinks caffeine” Examples –  s  D, [C(s) → F(s)]  Every CS student drinks caffeine. –  s  D, [C(s)  F(s)  ~ P(s)]  Some CS students drink caffeine but do not eat pizza. –  s  D, [(C(s)  E(s)) → (P(s)  F(s))]  If a student is in CS or Engineering, then they eat pizza and drink caffeine.

21 June 2007Exam #1 Review10 Formal to Informal

21 June 2007Exam #1 Review11 Quiz #2 Solution

21 June 2007Exam #1 Review12 Chapter 2 Predicates – free variable Translation of statements Multiple quantifiers Arguments with quantified statements –Universal instantiation –Existential instantiation –Existential generalization

21 June 2007Exam #1 Review13  a, n  Z, 6|2 n (3 a + 9) Suppose b is an arbitrary, but particular integer that represents a above. Suppose m is an arbitrary, but particular integer that represents n above. 6|2 m (3 b + 9), original 6|2 m  3( b + 3), by algebra (distributive law) 6|6 m ( b + 3), by algebra (associative, commutative, multiplication) Let k = m ( b + 3); k  Z by closure of Z under addition and multiplication 6|6 k by definition of divisible –(d|n   q  Z, such that n=dq), where k is the integer quotient

21 June 2007Exam #1 Review14  n  Z, ( n + n 2 + n 3 )  Z even  n  Z even Contrapositive (which is equivalent to proposition) –  n  Z, n  Z odd  ( n + n 2 + n 3 )  Z odd Suppose m is an arbitrary, but particular integer that represents n above. Let m = 2 k + 1, by definition of odd, where m, k  Z ( m + m 2 + m 3 ) = [(2 k +1) + (2 k +1) 2 + (2 k +1) 3 ], by substitution [(2 k +1) + (4 k 2 +4 k +1) + (8 k 3 +8 k 2 +2 k +4 k 2 +4 k +1)], by algebra (multiplication) [(2 k +1) + (4 k 2 +4 k +1) + (8 k k 2 +6 k +1)], by algebra (addition) [8 k k k +3], by algebra (associative, commutative, addition) [8 k k k +2+1], by algebra (addition) [2(4 k 3 +8 k 2 +6 k +1)+1], by algebra (distributive) Let b = 4 k 3 +8 k 2 +6 k +1; b  Z by closure of Z under addition and multiplication ( n + n 2 + n 3 ) = 2 b + 1, which is odd by definition of odd Therefore we have shown,  n  Z, n  Z odd  ( n + n 2 + n 3 )  Z odd, which is equivalent to the original proposition because it is its contrapositive, therefore, the original proposition is true –  n  Z, ( n + n 2 + n 3 )  Z even  n  Z even

21 June 2007Exam #1 Review15 Chapter 3 Proof types –Direct –Counterexample –Division into cases –Contrapositive –Contradiction Number Theory –Domains –Rational numbers –Divisibility – mod/div –Quotient-Remainder Theorem –Floor and ceiling –Sqrt(2) and infinitude of set of prime numbers

21 June 2007Exam #1 Review16  x  Z,  y  Q, ( y / x )  Q

21 June 2007Exam #1 Review17  x, y, z  Z even, ( x + y + z )/3  Z even

21 June 2007Exam #1 Review18  a, b, c  Z, ( a | b  a | c )  ( b | c  c | b )

21 June 2007Exam #1 Review19  n  Z, (2 n 2 – 5 n + 2)  Z prime

21 June 2007Exam #1 Review20  n, x  Z,  p  Z prime, p | n x  p | n