Lab 1 Chapter 1, Sections 1.1, 1.2, 1.3, and 1.4 Book: Discrete Mathematics and Its Applications By Kenneth H. Rosen.

Slides:



Advertisements
Similar presentations
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Advertisements

Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Predicates and Quantifiers
Logic Puzzle Smith. The Setup There are five houses Each of a different color Inhabited by men of different nationalities Each has a different pet Each.
CS128 – Discrete Mathematics for Computer Science
DCP 1172, Homework 2 1 Homework 2 for DCP-1172 ( ) This time, we have 3 different homework assignments.  Homework assignment 2-1 (50%, Ch3 &
Constraint Satisfaction Problems (CSP) (Where we postpone making difficult decisions until they become easy to make) R&N: Chap. 5.
Discrete Mathematics Math 6A Instructor: M. Welling.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
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.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Constraint Satisfaction Problems (CSP) (Where we postpone making difficult decisions until they become easy to make) R&N: Chap. 5 1.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 11 Introduction to Predicate Logic Limitations of Propositional Logic Predicates, quantifiers and propositions.
Harper Langston New York University Summer 2015
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
Discrete Maths Objective to introduce predicate logic (also called the predicate calculus) , Semester 2, Predicate Logic 1.
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 1 The Foundations: Logic and Proofs 歐亞書局.
Artificial Intelligence CS482, CS682, MW 1 – 2:15, SEM 201, MS 227 Prerequisites: 302, 365 Instructor: Sushil Louis,
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
Englishman Italian Spaniard Norwegian The CAT Lounge
Chapter 2 The Logic of Quantified Statements. Section 2.4 Arguments with Quantified Statements.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Puzzle A Puzzle B. When asked about his birthday, a man said: "The day before yesterday I was only 25 and next year I will turn 28." This is true only.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
#tbt #4 Who Owns The Zebra?
Section Predicates & Quantifiers. Open Statement 2 x > 8 p < q -5 x = y + 6 Neither true nor false.
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
1 CS B551: Elements of Artificial Intelligence Instructor: Kris Hauser
Predicates and Quantified Statements
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
Who owns the zebra?. Here’s a small logical puzzle for you. Copy down the information you see. Through elimination, can you discover who owns the zebra.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
Lecture 8 Predicate Logic TF4233 Mathematical Logic Semester 2, 2006/2007 Dr. Rolly Intan & Cherry Ballangan, MAIT Informatics Department, Petra Christian.
Discrete Structures – CNS 2300
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
Constraint Satisfaction Problems Russell and Norvig: Chapter 3, Section 3.7 Chapter 4, Pages CS121 – Winter 2003.
321 Section, Week 2 Natalie Linnell. Extra Credit problem.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical الرياضيات المتقطعة. Example 12 June OR Q(x,y): x+y=x-y a) Q(1,1): 2=0 False b) Q(2,0): 2+0=2-0 True c) Q(1,y): 1+y=1-y False(take.
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations 1.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Lecture 1.2: Equivalences, and Predicate Logic
Logic Puzzle.
Clues 1 The Brit lives in the red house 2 The Swede keeps dogs as pets 3 The Dane drinks tea 4 As you look at the houses from across the street, the.
Solving the ‘Einstein” puzzle
Chapter 1 The Foundations: Logic and Proofs
Using Alloy to Solve the Einstein Puzzle
Discrete Mathematics Lecture 3: Predicate and Quantifier
Constraint Satisfaction Problems
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Einstein’s Riddle.
Predicates and Quantifiers
Logical and Rule-Based Reasoning Part I
Presentation transcript:

Lab 1 Chapter 1, Sections 1.1, 1.2, 1.3, and 1.4 Book: Discrete Mathematics and Its Applications By Kenneth H. Rosen

1.1 Page 13, Example 18 An Island that has two kinds of inhabitants, knights, who always tell the truth, and their opposites, knaves, who always lie. You encounter two people A and B. What are A and B if A says “B is a knight” and B says “The two of us are opposite types”?

1.1 Page 20, Exercise 55 A says “At least one of us is a knave” and B says nothing.

1.1 Page 19, Exercise 29, e Construct the truth table for the following compound proposition. (p  q)  (  p   r)

1.1 Page 19, Exercise 38, b Evaluate each of the expression. (01111  10101)  01000

1.2 Page 26, Example 7 Show that  (p  (  p  q)) and  p  q are logically equivalent.

1.2 Page 28, Exercise 10, c Using Truth tables show that the following is a tautology [p  (p  q)]  q

1.2 Page 28, Exercise 11, f from 9 Without using Truth tables show that the following is a tautology  (p  q)  q

1.3 Page 39, Example 19 Show that  x(P(x)  Q(x)) and  xP(x)   xQ(x) are logically equivalent.

1.3 Page 45, Example 27 “All hummingbirds are highly colored” “No large birds live on honey” “Birds that do not live on honey are dull in color” “Hummingbirds are small” Let P(x),Q(x),R(x), and S(x) be the statements “x is a hummingbird”, “x is large”, “x lives on honey”, and “x is richly colored” Domain: all birds Express the statement in the argument using quantifiers and P(x), Q(x), R(x), and S(x)

1.3 Page 45, Example 28 Instructor(chan, math273) Instructor(patel,ee222) Instructor(grossman,cs301) Enrolled(kevin,math273) Enrolled(juana,ee222) Enrolled(juana,cs301) Enrolled(kiko,math273) Ernolled(kiko,cs301) Teaches(p,s):- instructor(P,C), enrolled(S,C) ?Enrolled(kevin, math) ?enrolled(x,math273) ?teaches(x,juna)

1.3 Page 50, Exercise 55, c Instructor(chan, math273) Instructor(patel,ee222) Instructor(grossman,cs301) Enrolled(kevin,math273) Enrolled(juana,ee222) Enrolled(juana,cs301) Enrolled(kiko,math273) Ernolled(kiko,cs301) Teaches(p,s):- instructor(P,C), enrolled(S,C) ?enrolled(X,CS301)

1.4 Page 61, Exercise 26, g, f Let Q(x,y) be the statement “x+y=x-y.” if the domain for both variables consists of all integers, what are the truth values?

1.4 Page 61, Exercise 32, d Express the negations of each of these statements so that all negation symbols immediately precede predicates.

Five men with different nationalities and with different jobs live in consecutive houses on a street. The houses are painted different colors. The men have different pets and have different favorite drinks. Determine who owns a zebra and whose favorite drink is mineral water (which is one of the favorite drinks) given these clues1: 1.1 Page 21, Exercise 65 Five men with different nationalities and with different jobs live in consecutive houses on a street. The houses are painted different colors. The men have different pets and have different favorite drinks. Determine who owns a zebra and whose favorite drink is mineral water (which is one of the favorite drinks) given these clues1:

1. The Englishman lives in the red house. 2. The Spaniard owns a dog. 3. The Japanese man is a painter. 4. The Italian drinks tea. 5. The Norwegian lives in the first house on the left. 6. The green house is on the right of the white one. 7. The photographer breeds snails. 8. The diplomat lives in the yellow house. 9. Milk is drunk in the middle house. 10. The owner of the green house drinks coffee. 11. The Norwegian’s house is next to the blue one. 12. The violinist drinks orange juice. 13. The fox is in a house next to that of the physician. 14. The horse is in a house next to that of the diplomat. 1.1 Page 21, Exercise 65

color Blue Green Red White Yellow Blue Green Red White Yellow Blue Green Red White Yellow Blue Green Red White Yellow Blue Green Red White Yellow Nationality Englishman Italian Japanese Norwegian Spaniard Englishman Italian Japanese Norwegian Spaniard Englishman Italian Japanese Norwegian Spaniard Englishman Italian Japanese Norwegian Spaniard Englishman Italian Japanese Norwegian Spaniard Job Diplomat Painter Photographer Physician Violinist Diplomat Painter Photographer Physician Violinist Diplomat Painter Photographer Physician Violinist Diplomat Painter Photographer Physician Violinist Diplomat Painter Photographer Physician Violinist Pet Dog Fox Horse Snails Zebra Dog Fox Horse Snails Zebra Dog Fox Horse Snails Zebra Dog Fox Horse Snails Zebra Dog Fox Horse Snails Zebra Drink Coffee Milk Orange Juice Tea Mineral Water Coffee Milk Orange Juice Tea Mineral Water Coffee Milk Orange Juice Tea Mineral Water Coffee Milk Orange Juice Tea Mineral Water Coffee Milk Orange Juice Tea Mineral Water House 12345