SlideShare a Scribd company logo
Assignment 2
Deadline: April 5 (Thursday Class), April 6(Friday Class)


                      Harshit Kumar

                      March 29, 2012
Q1. Which of the following are proposition? (You answer should be T/F.)
     1. y < 20
     2. It is sunny.
     3. open the closet.
     4. 10 > 5
     5. a2 + b2 = c2
     Q2. Let H=”Kim is smart”, C=”Kim is cunning”, O=”Kim is intelligent”. Rewrite the following using the logical operators ∧, ∨, and ¬
     1. Kim is smart and cunning but not intelligent.
     2. Kim is either smart or cunning or both.
     3. Kim is either smart or cunning but not both.
     4. Kim is neither smart, cunning nor intelligent.
     5. Kim is not both smart and cunning, but he is intelligent.
     6. Kim is intelligent but not cunning nor smart.
     Q3. Simplify the following logical formula
     1. p ⊕ q
     2. p → ¬q
     3. (¬p ↔ ¬q) ∧ q
     4. ¬(p → q)
     Q4. Construct logical formula for the truth table below. After constructing the logical formula, simplify it.
a.

                                                                        a    b   c    f(a,b,c)
                                                                        T    T   T    T
                                                                        T    T   F    F
                                                                        T    F   T    F
                                                                        T    F   F    F
                                                                        F    T   T    F
                                                                        F    T   F    F
                                                                        F    F   T    T
                                                                        F    F   F    T

     b.

                                                                        a    b   c    f(a,b,c)
                                                                        T    T   T    T
                                                                        T    T   F    F
                                                                        T    F   T    T
                                                                        T    F   F    T
                                                                        F    T   T    T
                                                                        F    T   F    F
                                                                        F    F   T    T
                                                                        F    F   F    F

     Q5. Prove the equivalence of following logical formula? You answer should be T/F. You answer should also show why it is T/F. Show each step.
     1. (P ∧ Q) ∨ R and P ∧ (Q ∨ R)
     2. ¬(P ⊕ Q) and P ↔ Q
     3. ¬(P ∨ Q ∨ R) and ¬P ∧ ¬Q ∧ ¬R
     4. P ∧ (P ∨ Q) and P ∨ (P ∧ Q)
     5. (P ∧ Q) ∨ (Q ∧ R) and Q ∨ (P ∧ R)
     Q6. Simplify the following logical formula.
     1. ¬((¬P ∧ (¬Q ∨ P )) ∨ ¬R).
     2. (¬P ∧ ¬(P ∧ R)) ∨ ((Q ∨ (Q ∧ R)) ∧ (Q ∨ S)).
     3. ((¬P ∧ Q) ∧ (Q ∧ R)) ∧ ¬Q.
     4. ¬(¬Q ∧ ¬(¬Q ∨ S)) ∨ (Q ∧ (r → r)).
     5. ¬P ∧ (P ∨ Q) ∨ (Q ∨ (P ∧ P )) ∧ (P ∨ ¬Q).
Q7. Simplify the following logical formula.
     1. P → Q.
     2. ¬Q → ¬P.
     3. Q → P.
     4. ¬P → ¬Q.
     5. ¬(P → Q.)
     Q8. Prove the following using resolution.
     1. ((A → B) → C) → (¬C → A)
     2. ¬(¬P ∨ ¬Q) → ((P → R) ∧ (Q → R))


                                                                                  1

More Related Content

PDF
Solution2
 
PPT
Truth table analysis
PPT
Indirect-table Analysis
PPTX
Logic (LESSON) - Truth Table, Negation, Conjunction, Dis junction,
PDF
PDF
Ie project
 
DOCX
Introduction
 
PDF
Assignment cn subnetting
 
Solution2
 
Truth table analysis
Indirect-table Analysis
Logic (LESSON) - Truth Table, Negation, Conjunction, Dis junction,
Ie project
 
Introduction
 
Assignment cn subnetting
 

Viewers also liked (9)

PDF
Assignment sw solution
 
PDF
Dm assignment1
 
PDF
Solution3
 
PDF
Violinphoenix
 
DOCX
Assignment3
 
PDF
Assignment4
 
DOCX
Mid-
 
PDF
Assignment 2 sol
 
PDF
Assignment uplaodfile
 
Assignment sw solution
 
Dm assignment1
 
Solution3
 
Violinphoenix
 
Assignment3
 
Assignment4
 
Mid-
 
Assignment 2 sol
 
Assignment uplaodfile
 
Ad

Similar to Dm assignment2 (20)

PDF
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
PDF
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
PDF
11คลื่นกล
PDF
11 คลื่นกล
PDF
C3 test Doc
PDF
C3 test
PDF
14แสงและทัศนอุปกรณ์
PDF
14 แสงและทัศนอุปกรณ์
PDF
เรียนรู้ฟิสิกส์รอบสระพังทอง
PDF
คลื่นกล
PDF
คลื่นกล
PDF
วารสารเทคโนโลยีสื่อสารการศึกษา
PDF
PDF
Km ref&research-260154
PDF
Personality test
PDF
Microsoft word ใบกิจกรรมระบบหายใจสิ่งมีชีวิตเซลล์เดียวและสัตว์
PDF
Microsoft word ใบกิจกรรมโครงสร้างของปอดหมู
PDF
2553 10-vision missionvalues
PDF
Toykafare
PDF
Toykafare
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
11คลื่นกล
11 คลื่นกล
C3 test Doc
C3 test
14แสงและทัศนอุปกรณ์
14 แสงและทัศนอุปกรณ์
เรียนรู้ฟิสิกส์รอบสระพังทอง
คลื่นกล
คลื่นกล
วารสารเทคโนโลยีสื่อสารการศึกษา
Km ref&research-260154
Personality test
Microsoft word ใบกิจกรรมระบบหายใจสิ่งมีชีวิตเซลล์เดียวและสัตว์
Microsoft word ใบกิจกรรมโครงสร้างของปอดหมู
2553 10-vision missionvalues
Toykafare
Toykafare
Ad

More from H K (17)

PDF
Induction
 
PDF
Assignment4
 
PDF
Assignment4
 
PDF
Dm assignment3
 
PPT
Proof
 
PDF
Resolution
 
DOCX
Assignment description
 
PDF
Set
 
PPTX
Logic
 
PDF
Assignment sw
 
PDF
Assignment sw
 
PDF
Assignment cn tl
 
PDF
Dc assignment 2
 
PDF
Mid term exam
 
PDF
Week32
 
PPT
Week32
 
PPT
Week31
 
Induction
 
Assignment4
 
Assignment4
 
Dm assignment3
 
Proof
 
Resolution
 
Assignment description
 
Set
 
Logic
 
Assignment sw
 
Assignment sw
 
Assignment cn tl
 
Dc assignment 2
 
Mid term exam
 
Week32
 
Week32
 
Week31
 

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Machine Learning_overview_presentation.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Encapsulation theory and applications.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
A Presentation on Artificial Intelligence
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Programs and apps: productivity, graphics, security and other tools
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Machine Learning_overview_presentation.pptx
Encapsulation_ Review paper, used for researhc scholars
Encapsulation theory and applications.pdf
Electronic commerce courselecture one. Pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
A Presentation on Artificial Intelligence
Mobile App Security Testing_ A Comprehensive Guide.pdf

Dm assignment2

  • 1. Assignment 2 Deadline: April 5 (Thursday Class), April 6(Friday Class) Harshit Kumar March 29, 2012
  • 2. Q1. Which of the following are proposition? (You answer should be T/F.) 1. y < 20 2. It is sunny. 3. open the closet. 4. 10 > 5 5. a2 + b2 = c2 Q2. Let H=”Kim is smart”, C=”Kim is cunning”, O=”Kim is intelligent”. Rewrite the following using the logical operators ∧, ∨, and ¬ 1. Kim is smart and cunning but not intelligent. 2. Kim is either smart or cunning or both. 3. Kim is either smart or cunning but not both. 4. Kim is neither smart, cunning nor intelligent. 5. Kim is not both smart and cunning, but he is intelligent. 6. Kim is intelligent but not cunning nor smart. Q3. Simplify the following logical formula 1. p ⊕ q 2. p → ¬q 3. (¬p ↔ ¬q) ∧ q 4. ¬(p → q) Q4. Construct logical formula for the truth table below. After constructing the logical formula, simplify it. a. a b c f(a,b,c) T T T T T T F F T F T F T F F F F T T F F T F F F F T T F F F T b. a b c f(a,b,c) T T T T T T F F T F T T T F F T F T T T F T F F F F T T F F F F Q5. Prove the equivalence of following logical formula? You answer should be T/F. You answer should also show why it is T/F. Show each step. 1. (P ∧ Q) ∨ R and P ∧ (Q ∨ R) 2. ¬(P ⊕ Q) and P ↔ Q 3. ¬(P ∨ Q ∨ R) and ¬P ∧ ¬Q ∧ ¬R 4. P ∧ (P ∨ Q) and P ∨ (P ∧ Q) 5. (P ∧ Q) ∨ (Q ∧ R) and Q ∨ (P ∧ R) Q6. Simplify the following logical formula. 1. ¬((¬P ∧ (¬Q ∨ P )) ∨ ¬R). 2. (¬P ∧ ¬(P ∧ R)) ∨ ((Q ∨ (Q ∧ R)) ∧ (Q ∨ S)). 3. ((¬P ∧ Q) ∧ (Q ∧ R)) ∧ ¬Q. 4. ¬(¬Q ∧ ¬(¬Q ∨ S)) ∨ (Q ∧ (r → r)). 5. ¬P ∧ (P ∨ Q) ∨ (Q ∨ (P ∧ P )) ∧ (P ∨ ¬Q). Q7. Simplify the following logical formula. 1. P → Q. 2. ¬Q → ¬P. 3. Q → P. 4. ¬P → ¬Q. 5. ¬(P → Q.) Q8. Prove the following using resolution. 1. ((A → B) → C) → (¬C → A) 2. ¬(¬P ∨ ¬Q) → ((P → R) ∧ (Q → R)) 1