SlideShare a Scribd company logo
1 of 3
Download to read offline
Department of Inter Disciplinary Studies,
Faculty of Engineering,
University of Jaffna, Sri Lanka
MC 4010 : Discrete Mathematics
Tutorial-02 March 2023
1. Express these system specifications using the propositions p “The user enters a valid
password,” q “Access is granted,” and r “The user has paid the subscription fee” and
logical connectives (including negations).
a) “The user has paid the subscription fee, but does not enter a valid password.”
b) “Access is granted whenever the user has paid the subscription fee and enters a valid
password.”
c) “Access is denied if the user has not paid the subscription fee.”
d) “If the user has not entered a valid password but has paid the subscription fee, then
access is granted.”
2. Show that the following are tautologies
a) (p ∧ (q ∧ r)) → [((r ∧ p) ∧ q) ∨ q)]
b) [p → (r → q)] ↔ [(p ∧ r) → q]
c) [p → q] → [(r ∨ p) → (r ∨ q)]
d) [(p ∨ q) ∧ (p → r) ∧ (q → r)] → r
3. Construct a truth table for each of these compound propositions.
a) p ↔ ¬p
b) p ⊕ (p ∨ q)
c) (p ∧ q) → (p ∨ q)
d) (q → ¬p) ↔ (p ↔ q)
e) (p ↔ q) ⊕ (p ↔ ¬q)
4. Construct a combinatorial circuit using inverters, OR gates, and AND gates that produces
the following outputs from input bits p, q, and r.
a) (p ∧ ¬r) ∨ (¬q ∧ r)
b) ((¬p ∨ ¬r) ∧ ¬q) ∨ (¬p ∧ (q ∨ r))
5. In the circuit below, X and Y are digital inputs and Z is a digital output. Find the output
Z and verify that, output is equivalent to XOR gate.
1
6. Find the values of A, B, C
7. which of the following pairs of propositional forms are logically equivalent,
a) p → (q ∧ r), (p → q) ∧ (p → r);
b) p ↔ q, (¬p ∨ q) ∧ (p ∨ ¬q);
c) p ↔ q, (p ∧ q) ∨ (¬p ∧ ¬q);
d) (p → q) → r, (p ∧ ¬r) → ¬q;
e) p → (q ∨ r), [p → (q ∨ p)] → r;
8. Let p, q, r be three statements. Simplify the following expressions,
a) ¬(p ∨ q) ∨ (¬p ∧ q);
b) [(p → q) → p] → p;
c) [(p → q) ∧ ¬q] → ¬p;
9. Determine the validity of the following argument
a) Robbery was the motive for the crime only if the victim had money in his pockets.
But robbery or vengeance was the motive for the crime. Therefore, vengeance must
have been the motive for the crime.
b) If students play cricket they study well. Either students do not study well or they
pass annual examinations. But students are failing the annual examination. There-
fore, students do not play cricket.
c) Either John is exhausted or he is sick. If he is exhausted then he is contrary. He is
not contrary. Therefore he is sick.
10. Let C(x) be the statement “x has a cat,” let D(x) be the statement “x has a dog,” and
let F(x) be the statement “x has a parrot.” Express each of these statements in terms
of C(x), D(x), F(x), quantifiers, and logical connectives. Let the domain consist of all
students in your class.
a) A student in your class has a cat, a dog, and a parrot.
b) All students in your class have a cat, a dog, or a parrot.
c) Some student in your class has a cat and a ferret, but not a dog.
d) No student in your class has a cat, a dog, and a parrot.
e) For each of the three animals, cats, dogs, and parrots,there is a student in your class
who has this animal as a pet.
2
11. Find the logic expression for given truth table
a)
p q r A
T T T F
T T F T
T F T F
T F F T
F T T T
F T F F
F F T F
F F F F
b)
p q r A
T T T T
T T F F
T F T T
F T T F
T F F T
F T F T
F F T F
F F F T
3

More Related Content

Similar to Tutorial_2.pdf

Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
Wongyos Keardsri
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System -
Michael Soltys
 

Similar to Tutorial_2.pdf (20)

Infinite and Standard Computation with Unconventional and Quantum Methods Usi...
Infinite and Standard Computation with Unconventional and Quantum Methods Usi...Infinite and Standard Computation with Unconventional and Quantum Methods Usi...
Infinite and Standard Computation with Unconventional and Quantum Methods Usi...
 
OTTER 2017-12-03
OTTER 2017-12-03OTTER 2017-12-03
OTTER 2017-12-03
 
Otter 2016-11-28-01-ss
Otter 2016-11-28-01-ssOtter 2016-11-28-01-ss
Otter 2016-11-28-01-ss
 
PAGOdA poster
PAGOdA posterPAGOdA poster
PAGOdA poster
 
Computational logic First Order Logic
Computational logic First Order LogicComputational logic First Order Logic
Computational logic First Order Logic
 
4th Semester (June-2016) Computer Science and Information Science Engineering...
4th Semester (June-2016) Computer Science and Information Science Engineering...4th Semester (June-2016) Computer Science and Information Science Engineering...
4th Semester (June-2016) Computer Science and Information Science Engineering...
 
Locality-sensitive hashing for search in metric space
Locality-sensitive hashing for search in metric space Locality-sensitive hashing for search in metric space
Locality-sensitive hashing for search in metric space
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Cbse Class 12 Maths Sample Paper 2012
Cbse Class 12 Maths Sample Paper 2012Cbse Class 12 Maths Sample Paper 2012
Cbse Class 12 Maths Sample Paper 2012
 
A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...A common fixed point theorem for two random operators using random mann itera...
A common fixed point theorem for two random operators using random mann itera...
 
Gate-Cs 2008
Gate-Cs 2008Gate-Cs 2008
Gate-Cs 2008
 
Cs 2008(1)
Cs 2008(1)Cs 2008(1)
Cs 2008(1)
 
Discrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and ProofsDiscrete-Chapter 05 Inference and Proofs
Discrete-Chapter 05 Inference and Proofs
 
4th Semester CS / IS (2013-June) Question Papers
4th Semester CS / IS (2013-June) Question Papers 4th Semester CS / IS (2013-June) Question Papers
4th Semester CS / IS (2013-June) Question Papers
 
Sensors and Samples: A Homological Approach
Sensors and Samples:  A Homological ApproachSensors and Samples:  A Homological Approach
Sensors and Samples: A Homological Approach
 
Afa 2020
Afa 2020Afa 2020
Afa 2020
 
Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System - Boolean Programs and Quantified Propositional Proof System -
Boolean Programs and Quantified Propositional Proof System -
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Tutorial_2.pdf

  • 1. Department of Inter Disciplinary Studies, Faculty of Engineering, University of Jaffna, Sri Lanka MC 4010 : Discrete Mathematics Tutorial-02 March 2023 1. Express these system specifications using the propositions p “The user enters a valid password,” q “Access is granted,” and r “The user has paid the subscription fee” and logical connectives (including negations). a) “The user has paid the subscription fee, but does not enter a valid password.” b) “Access is granted whenever the user has paid the subscription fee and enters a valid password.” c) “Access is denied if the user has not paid the subscription fee.” d) “If the user has not entered a valid password but has paid the subscription fee, then access is granted.” 2. Show that the following are tautologies a) (p ∧ (q ∧ r)) → [((r ∧ p) ∧ q) ∨ q)] b) [p → (r → q)] ↔ [(p ∧ r) → q] c) [p → q] → [(r ∨ p) → (r ∨ q)] d) [(p ∨ q) ∧ (p → r) ∧ (q → r)] → r 3. Construct a truth table for each of these compound propositions. a) p ↔ ¬p b) p ⊕ (p ∨ q) c) (p ∧ q) → (p ∨ q) d) (q → ¬p) ↔ (p ↔ q) e) (p ↔ q) ⊕ (p ↔ ¬q) 4. Construct a combinatorial circuit using inverters, OR gates, and AND gates that produces the following outputs from input bits p, q, and r. a) (p ∧ ¬r) ∨ (¬q ∧ r) b) ((¬p ∨ ¬r) ∧ ¬q) ∨ (¬p ∧ (q ∨ r)) 5. In the circuit below, X and Y are digital inputs and Z is a digital output. Find the output Z and verify that, output is equivalent to XOR gate. 1
  • 2. 6. Find the values of A, B, C 7. which of the following pairs of propositional forms are logically equivalent, a) p → (q ∧ r), (p → q) ∧ (p → r); b) p ↔ q, (¬p ∨ q) ∧ (p ∨ ¬q); c) p ↔ q, (p ∧ q) ∨ (¬p ∧ ¬q); d) (p → q) → r, (p ∧ ¬r) → ¬q; e) p → (q ∨ r), [p → (q ∨ p)] → r; 8. Let p, q, r be three statements. Simplify the following expressions, a) ¬(p ∨ q) ∨ (¬p ∧ q); b) [(p → q) → p] → p; c) [(p → q) ∧ ¬q] → ¬p; 9. Determine the validity of the following argument a) Robbery was the motive for the crime only if the victim had money in his pockets. But robbery or vengeance was the motive for the crime. Therefore, vengeance must have been the motive for the crime. b) If students play cricket they study well. Either students do not study well or they pass annual examinations. But students are failing the annual examination. There- fore, students do not play cricket. c) Either John is exhausted or he is sick. If he is exhausted then he is contrary. He is not contrary. Therefore he is sick. 10. Let C(x) be the statement “x has a cat,” let D(x) be the statement “x has a dog,” and let F(x) be the statement “x has a parrot.” Express each of these statements in terms of C(x), D(x), F(x), quantifiers, and logical connectives. Let the domain consist of all students in your class. a) A student in your class has a cat, a dog, and a parrot. b) All students in your class have a cat, a dog, or a parrot. c) Some student in your class has a cat and a ferret, but not a dog. d) No student in your class has a cat, a dog, and a parrot. e) For each of the three animals, cats, dogs, and parrots,there is a student in your class who has this animal as a pet. 2
  • 3. 11. Find the logic expression for given truth table a) p q r A T T T F T T F T T F T F T F F T F T T T F T F F F F T F F F F F b) p q r A T T T T T T F F T F T T F T T F T F F T F T F T F F T F F F F T 3