SlideShare a Scribd company logo
1 of 2
Download to read offline
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

Viewers also liked

Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solutionH K
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1H K
 
Solution3
Solution3Solution3
Solution3H K
 
Violinphoenix
ViolinphoenixViolinphoenix
ViolinphoenixH K
 
Assignment3
Assignment3Assignment3
Assignment3H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Mid-
Mid-Mid-
Mid-H K
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 solH K
 
Assignment uplaodfile
Assignment uplaodfileAssignment uplaodfile
Assignment uplaodfileH K
 

Viewers also liked (9)

Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solution
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
 
Solution3
Solution3Solution3
Solution3
 
Violinphoenix
ViolinphoenixViolinphoenix
Violinphoenix
 
Assignment3
Assignment3Assignment3
Assignment3
 
Assignment4
Assignment4Assignment4
Assignment4
 
Mid-
Mid-Mid-
Mid-
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 sol
 
Assignment uplaodfile
Assignment uplaodfileAssignment uplaodfile
Assignment uplaodfile
 

Similar to Dm assignment2

Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmeticguest9fa195
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmeticvcuesta
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Introkrusarawut
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำkrusarawut
 
10 ความร้อน
10 ความร้อน10 ความร้อน
10 ความร้อนtopofzeed
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อนDoc Edu
 
Danilorodriguezch
DanilorodriguezchDanilorodriguezch
DanilorodriguezchFacebook
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นwanwilai
 
Maths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdfMaths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdfhabtamu292245
 
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2อานนท์ มากมี
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุนDoc Edu
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุนtopofzeed
 

Similar to Dm assignment2 (12)

Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
 
10 ความร้อน
10 ความร้อน10 ความร้อน
10 ความร้อน
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อน
 
Danilorodriguezch
DanilorodriguezchDanilorodriguezch
Danilorodriguezch
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
 
Maths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdfMaths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdf
 
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
 

More from H K

Induction
InductionInduction
InductionH K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3H K
 
Proof
ProofProof
ProofH K
 
Resolution
ResolutionResolution
ResolutionH K
 
Assignment description
Assignment descriptionAssignment description
Assignment descriptionH K
 
Set
SetSet
SetH K
 
Logic
LogicLogic
LogicH K
 
Assignment sw
Assignment swAssignment sw
Assignment swH K
 
Assignment sw
Assignment swAssignment sw
Assignment swH K
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tlH K
 
Dc assignment 2
Dc assignment 2Dc assignment 2
Dc assignment 2H K
 
Mid term exam
Mid term examMid term exam
Mid term examH K
 
Week32
Week32Week32
Week32H K
 
Week32
Week32Week32
Week32H K
 
Week31
Week31Week31
Week31H K
 

More from H K (17)

Induction
InductionInduction
Induction
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment4
Assignment4Assignment4
Assignment4
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3
 
Proof
ProofProof
Proof
 
Resolution
ResolutionResolution
Resolution
 
Assignment description
Assignment descriptionAssignment description
Assignment description
 
Set
SetSet
Set
 
Logic
LogicLogic
Logic
 
Assignment sw
Assignment swAssignment sw
Assignment sw
 
Assignment sw
Assignment swAssignment sw
Assignment sw
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tl
 
Dc assignment 2
Dc assignment 2Dc assignment 2
Dc assignment 2
 
Mid term exam
Mid term examMid term exam
Mid term exam
 
Week32
Week32Week32
Week32
 
Week32
Week32Week32
Week32
 
Week31
Week31Week31
Week31
 

Recently uploaded

How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandIES VE
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceSamy Fodil
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxNeo4j
 

Recently uploaded (20)

How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 

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