CS 2210 (22C:019) Discrete Structures Introduction and Scope: Propositions Spring 2015 Sukumar Ghosh.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

Discrete Mathematics Lecture 5 Alexander Bukharovich New York University.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Instructor: Hayk Melikya
(CSC 102) Discrete Structures Lecture 14.
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
Sets 1.
Sets 1.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/17/12 Ming-Hsuan Yang UC Merced 1.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
22C:19 Discrete Math Introduction and Scope Propositions Fall 2011 Sukumar Ghosh.
Adapted from Discrete Math
CSCI2110 – Discrete Mathematics Tutorial 8 Propositional Logic Wong Chung Hoi (Hollis)
The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
Propositions and Truth Tables
Propositions and Truth Tables. Proposition: Makes a claim that may be either true or false; it must have the structure of a complete sentence.
The Foundations: Logic and Proofs
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Discrete Mathematics and Its Applications
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
CSci 2011 Textbook ^Discrete Mathematics and Its Applications,  Rosen  6th Edition  McGraw Hill  2006.
Copyright © Curt Hill Mathematical Logic An Introduction.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
MATH 224 – Discrete Mathematics
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
CS201: Data Structures and Discrete Mathematics I
September1999 CMSC 203 / 0201 Fall 2002 Week #1 – 28/30 August 2002 Prof. Marie desJardins.
CompSci 102 Discrete Math for Computer Science
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
CSci 2011 Recap ^Propositional operation summary not andorconditionalBi-conditional pq ppqqpqpqpqpqpqpqpqpq TTFFTTTT TFFTFTFF FTTFFTTF FFTTFFTT.
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Discrete Mathematics Lecture # 4. Conditional Statements or Implication  If p and q are statement variables, the conditional of q by p is “If p then.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Chapter 1 Propositional Logic
Discrete Mathematical
22C:19 Discrete Structures Introduction and Scope: Propositions
CS 2210:0001 Discrete Structures Introduction and Scope: Propositions
CSNB 143 Discrete Mathematical Structures
CS 202, Spring 2008 Epp, sections 1.1 and 1.2
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
COMP 1380 Discrete Structures I Thompson Rivers University
Lecture 03 Logic and Propositional Calculus Profs. Koike and Yukita
Citra Noviyasari, S.Si, MT
MATH 245 Spring 2009 This is mathematics for computer science
(CSC 102) Discrete Structures Lecture 2.
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Chapter 8 Logic Topics
CSCI 3310 Mathematical Foundation of Computer Science
Information Technology Department
CS 220: Discrete Structures and their Applications
CHAPTER 1: LOGICS AND PROOF
Discrete Math (2) Haiming Chen Associate Professor, PhD
CSS 342 Data Structures, Algorithms, and Discrete Mathematics I
Discrete Mathematics and Its Applications Kenneth H
CSE 321 Discrete Structures
COMP 1380 Discrete Structures I Thompson Rivers University
The Foundations: Logic and Proofs
Discrete Structures Prepositional Logic 2
The Foundations: Logic and Proofs
Presentation transcript:

CS 2210 (22C:019) Discrete Structures Introduction and Scope: Propositions Spring 2015 Sukumar Ghosh

The Scope Discrete mathematics studies mathematical structures that are fundamentally discrete, not supporting or requiring the notion of continuity (Wikipedia). Deals with countable things.

Why Discrete Math? Discrete math forms the basis for computer science: Sequences Counting, large numbers, cryptography Digital logic (how computers compute) Algorithms Program correctness Probability (includes analysis of taking risks) “Continuous” math forms the basis for most physical and biological sciences

Propositions A proposition is a statement that is either true or false “The sky is blue” “Today the temperature is below freezing” “9 + 3 = 12” Not propositions: “Who is Bob?” “How many persons are there in this group?” “X + 1 = 7.”

Propositional (or Boolean) variables These are variables that refer to propositions. Let us denote them by lower case letters p, q, r, s, etc. Each can have one of two values true (T) or false (F) A proposition can be: A single variable p A formula of multiple variables like p ∧ q, s ∨ ¬r)

Propositional (or Boolean) operators

Logical operator: NOT

Logical operator: AND

Logical operator: OR

Logical operator: EXCLUSIVE OR Note. p ⊕ q is false if both p, q are true or both are false

(Inclusive) OR or EXCLUSIVE OR?

Logical Operator NAND and NOR

Conditional Operator A conditional, also means an implication means “if then ”: Symbol: as in Example: If this is an apple ( ) then it is a fruit ( ) The antecedent The consequence

Conditional operators If pigs can fly then 2+2=44. True or False?

Conditional operators

Set representations A proposition can also be represented by a set of elements for which the proposition is true. (Venn diagram) Venn diagram

Bi-conditional Statements

Translating into English

Great for developing intuition about propositional operators. IF p (is true) then q (must be true) p (is true) ONLY IF q (is true) IF I am elected (p) then I will lower taxes (q) p is a sufficient condition for q q is a necessary condition for p

Translating into English

Example 1. p = Iowaq =Midwest IF I live in Iowa then I live in the Midwest I live in Iowa ONLY IF I live in the Midwest Example 2. You can access the Internet from campus ONLY IF you are a CS major or an ECE major or a MATH major, or you are not a freshman (f): (CS ∨ ECE ∨ MATH ∨ ¬ f) Access Internet

Precedence of Operators

Boolean operators in search

Tautology and Contradiction

Equivalence

Examples of Equivalence

More Equivalences Associative Laws Distributive Law Law of absorption See page for a complete list

De Morgan’s Law You can take 22C:21 if you take 22C:16 and 22M:26 You cannot take 22C:21 if you have not taken 22C:16 or 22M:26

How to prove Equivalences Examples ?

How to prove Equivalences

Propositional Satisfiability A compound propositional statement is satisfiable, when some assignment of truth values to the variables makes is true. Otherwise, the compound propositional statement is not satisfiable. Check if the following are satisfiable

Solve this There are three suspects for a murder: Adams, Brown, and Clark. Adams says: “I didn't do it. The victim was old acquaintance of Brown. But Clark hated him.” Brown says: “I didn't do it. I didn't know the guy. Besides I was out of town all the week.” Clark says: “I didn't do it. I saw both Adams and Brown downtown with the victim that day; one of them must have done it.” Assume that the two innocent men are telling the truth, but that the guilty man might not be. Who is possibly the murderer? (Taken from

Muddy Children Puzzle A father tells his two children, a boy and a girl, to play in the backyard without getting dirty. While playing, both children get mud on their foreheads. After they returned home, the father said: “at least one of you has a muddy forehead,” and then asked the children to answer YES or NO to the question: “Do you know if you have a muddy forehead?” The father asked the question twice. How will the children answer each time?

(Russel’s) Paradox In a town, there is just one barber, he is male. In this town, every man keeps himself clean-shaven. He does so by one of the following two methods. 1. By shaving himself; or 2. Being shaved by the barber. The barber shaves all those, and those only, who do not shave themselves. Question: Does the barber shave himself? What is the answer is Yes? What if the answer is No?

Wrap up Understand propositions, logical operators and their usage. Understand equivalence, tautology, and contradictions. Practice proving equivalences, tautology, and contradictions.