SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
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

Contenu connexe

En vedette (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
 

Similaire à 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 Arithmetic
guest9fa195
 
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
vcuesta
 
Lesson 1 Intro
Lesson 1 IntroLesson 1 Intro
Lesson 1 Intro
krusarawut
 
หน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำหน่วยที่ 1 บทนำ
หน่วยที่ 1 บทนำ
krusarawut
 
10 ความร้อน
10 ความร้อน10 ความร้อน
10 ความร้อน
topofzeed
 
10ความร้อน
10ความร้อน10ความร้อน
10ความร้อน
Doc Edu
 
ตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้นตรรกศาสตร์เบื้องต้น
ตรรกศาสตร์เบื้องต้น
wanwilai
 
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
แบบฝึกทักษะการเขียนโปรแกรมภาษาซีเล่ม2
อานนท์ มากมี
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
topofzeed
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
Doc Edu
 

Similaire à 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
 
7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน7 การเคลื่อนที่แบบหมุน
7 การเคลื่อนที่แบบหมุน
 
07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน07การเคลื่อนที่แบบหมุน
07การเคลื่อนที่แบบหมุน
 

Plus de 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
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

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