Discrete mathematics concerns processes that consist of a sequence of individual steps. Logic is the study of principles and methods that distinguish between valid and invalid arguments. A statement is a declarative sentence that is either true or false. Simple statements can be combined using logical connectives like negation, conjunction, and disjunction to form compound statements. Truth tables specify the truth value of compound propositions based on the truth values of their constituent propositions and can be used to analyze compound statements. De Morgan's laws describe the relationships between logical connectives when negating compound propositions.
A truth table is a mathematical table utilized in logic - more specifically—specifically in relation with Boolean algebra, boolean functions, and propositional calculus.
Propositional Equivalences
CMSC 56 | Discrete Mathematical Structure for Computer Science
August 23, 2018
Instructor: Allyn Joy D. Calcaben
College of Arts & Sciences
University of the Philippines Visayas
Discrete Mathematics is a branch of mathematics involving discrete elements that uses algebra and arithmetic. It is increasingly being applied in the practical fields of mathematics and computer science. It is a very good tool for improving reasoning and problem-solving capabilities.
A truth table is a mathematical table utilized in logic - more specifically—specifically in relation with Boolean algebra, boolean functions, and propositional calculus.
Propositional Equivalences
CMSC 56 | Discrete Mathematical Structure for Computer Science
August 23, 2018
Instructor: Allyn Joy D. Calcaben
College of Arts & Sciences
University of the Philippines Visayas
Discrete Mathematics is a branch of mathematics involving discrete elements that uses algebra and arithmetic. It is increasingly being applied in the practical fields of mathematics and computer science. It is a very good tool for improving reasoning and problem-solving capabilities.
1. Determine the truth value of the following statement Paris is .pdfakramali786
1. Determine the truth value of the following statement:
Paris is a city in France and all prime numbers are divisible by 10.
True
False
2. Construct a truth table for (~p v q)--> p . Be sure to include all intermediate steps in your
table.
3. Fill in the heading of the following truth table using any of p, q, ~, --> , ?, v , and ^ . Use
keyboard shortcuts of --> for--> , <--> for ?, V for v , and ^ for ^ .
p q _________
T T F
T F F
F T T
F F F
4. Construct a truth table for (q v p) --> ~q. Be sure to include all intermediate steps in your
table.
5.
Given p is true, q is true, and r is false, find the truth value of the statement ~p--> (q v ~r).
Show step by step work. Use keyboard shortcuts of --> for--> , <--> for ?, V for v , and ^ for ^ ,
if needed.
6. Determine which, if any, of the three statements are equivalent.
I) If the carpet is not clean, then Sheila will run the vacuum.
II) It is not the case that both the carpet is clean and Sheila will run the vacuum.
III) If the carpet is clean, then Sheila will not run the vacuum
I, II, and III are equivalent
I and II are equivalent
I and III are equivalent
II and III are equivalent
None are equivalent
7. Write the argument below in symbols to determine whether it is valid or invalid. State a
reason for your conclusion. Specify the p and q you used. detailed solution to
If the gazebo is made of wood, then the vine is growing on the gazebo.
The vine is growing on the gazebo.
The gazebo is made of wood.
8. Determine which, if any, of the three statements are equivalent. Give a reason for your
conclusion. Show complete work.
I) If the boat was leaking, then Mary was not seated in the boat.
II) If the boat was leaking then Mary was seated in the boat.
III) If Mary was not seated in the boat, then the boat was not leaking.
a. I, II, and III are equivalent
b. I and II are equivalent
c. I and III are equivalent
d. II and III are equivalent
e. None are equivalent
9. Create a Euler diagram to determine whether the syllogism is valid or invalid.
All saxophonists have agile fingers.
Darren is a saxophonist.
Darren has agile fingers.
10. If the argument below is valid, name which of the four valid forms of argument is
represented. If it is not valid, name the fallacy that is represented.
If the water is filtered, then it does not contain lead.
The water does not contain lead.
Therefore, the water is filtered.
11. Form the contrapositive: If I eat a lot of sweets, then I will not feel well.
If I do not feel well, then I ate a lot of sweets.
If I do not eat a lot of sweets, then I will feel well.
If I feel well, then I did not eat a lot of sweets.
If I do not feel well, then I did not eat a lot of sweets.
If I feel well, then I ate a lot of sweets.
12. Write the compound statement in symbols.
Let r = The food is good, p = I eat too much, q = I\'ll exercise.
If the food is not good, I won\'t eat too much.
~(r--> p)
~r--> ~p
r--> ~p
~p --> ~r
Solution
Answers:
1: Paris is the city in France, but no prime num.
With vocabulary
1. The Statements, Open Sentences, and Trurth Values
2. Negation
3. Compound Statement
4. Equivalence, Tautology, Contradiction, and Contingency
5. Converse, Invers, and Contraposition
6. Making Conclusion
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Normal Labour/ Stages of Labour/ Mechanism of LabourWasim Ak
Normal labor is also termed spontaneous labor, defined as the natural physiological process through which the fetus, placenta, and membranes are expelled from the uterus through the birth canal at term (37 to 42 weeks
1. Discrete Mathematics
Defecation of Discrete Mathematics:
Concerns processesthatconsist of a sequence of individual step are calledDiscrete Mathematics
Continuous Discrete
LOGIC:
Logic studyof principlesandmethodthatdistinguishes/differenceb/w validandinvalidargumentis
calledlogic.
Simple statement:
A statementisdeclarativesentence thatiseithertrue orfalse butnotboth.
A statementisalsoreferredtoasa proposition
Examples:
1. If a propositionistrue thenwe saythata value istrue.
2. Andif propositionisfalse thenwe saythattruth value isfalse.
3. Truth & false are denotedbyT and F
Examples:
Propositions: NotProposition:
1. Grass is green. Close the door.
2. 4+3=6. X isgreaterthan 2.
3. 4+2=6. He isveryrich.
Rules:
If the sentence isprecededbyothersentencesthatmake the pronounorvariable referenceclear,then
the sentence isa statement.
2. Examples:
False True
I. X=1 Bill gatesisan American
II. x>3 He is veryRich
III. x>3 is a statementwithtruth-value He is veryrichis a statementwith
truth-value
UNDERSTANDINGSTATEMENTS:
1. X+2 ispositive Nota statement
2. May I come in? Nota statement
3. Logic isinteresting A statement
4. It ishot today A statement
Compound Statement:
Simple statementcouldbe usedtobuildacompoundstatement.
Examples:
1. 3+2=5 and Multan isa city of Pakistan
2. The grass is greenor itis hottoday
3. Ali isnot veryrich
And,Not,ORare called Logical Connectives.
SYMBOLICREPRESENTATION:
Statementis symbolicallyrepresentedbyletterssuchas“p,q, r…
EXAMPLES:
p=”Multan isa cityof Pakistan”
q=”17 is divisible by3”
CONNECTIV MEANING SYMBOL CALLED
NEGATION NOT ˜ TILDE
CONJUNCTION AND ^ HAT
DISJUNCTION OR v VEL
CONDITIONAL IF……THEN ARROW
BICONDITIONAL IF ANDONLY IF DOUBLE ARROW
3. EXAMPLES:
p=”Multan isa cityof Pakistan”
q=”Ali isa Muslim”
p ^ q=”Multanis a city of Pakistan”AND“Ali isa Muslim”
p v q=” Multan isa cityof Pakistan”OR”Ali isa Muslim”
˜p=”Multanis nota cityof Pakistan”
TRANSLATINGFROMENGLISHTO SYMBOLIS:
Let p=”itis cold”,AND“it isAli”
SENTENCE SYMBOLIC
1. It isnot cold ˜P
2. It iscold ANDAli P ^ q
3. It iscold OR Ali p v q
4. It isNOT coldBUT Ali ˜p ^ q
COMPOUNDSTATEMENTEXAMPLES:
Let a=”Ali isHealthy” b=”Ali isWealthy” c=”Ali is Wise”
i. Ali ishealthyANDwealthyButNOTwise. (a ^ b) ^ (˜c)
ii. Ali isNOT healthyBUThe iswealthyANDwise. (˜a) ^ (b^ c)
iii. Ali isNEITHER healthy,WealthyNORwise. (˜a ^ ~ b v ~ c)
TRANSLATINGFROMSYMBOLSTO ENGLISH:
Let: m=”Ali isa good inmath” c=”Ali is a com. science student”
I. ~ C Ali is“NOT” com. Science student.
II. C v m Ali iscom. Science student”OR“goodinmath.
III. M ^ ~ c Ali isgoodin math” BUT AND NOT“a com. Science student.
4. WHAT IS TRUTH TABLE?
A truthtable specifiesthe truthvalue of acompoundpropositionforall possibletruthvaluesof its
constituentproposition.
A convenientmethodforanalyzingacompoundstatement istomake a truth table toit
NEGATION (~)
If p=statementvariable,thennegationof p“NOTp”, isdenotedby“~p”
If p istrue,~p is false
If p isfalse ~p istrue
TRUTH TABLE FOR ~P
P ~P
T F
F T
CONJUNCTION (^)
If p andq is statementthenconjunctionis“pand q”
Denotedby“p ^q”
If p andq are true thentrue
If both or eitherfalse thenFalse
P ^q
P q P ^q
T T T
T F F
F T F
F F F
DISJUNCTION (v)
If P and q is statementthen“por q”
Denotedby“p v q”
If both are false thenfalse
If both or eitheristrue thentrue
5. P v q
P q P v q
T T T
T F T
F T T
F F F
Truth Table for this statement ~p^ q
P q ~p ~p ^q
T T F F
T F F F
F T T T
F F T F
Truth Table for ~p^ (qv ~r)
P q r ~r (q v ~r) ~p ~p ^(q v ~r)
T T T F T F F
T T F T T F F
T F T F F F F
T F F T T F F
F T T F T T T
F T F T T T T
F F T F F T F
F F F T T T T
Truth table for (p v q) ^ ~ (p^q)
P q (p v q) (p ^ q) ~(p ^q) (p v q)^~(p ^q)
T T T T F F
T F T F T T
F T T F T T
F F F F T F
Double negationproperty ~ (~p) =p
P (~p) ~(~p)
T F T
F T F
So itis clearthat “p” and double negationof “p”isequal.
Example
Englishtosymbolic
P= I am Umair Shah
6. ~p= I am not Umair Shah
~ (~p) = I am Umair Shah
So itis clearthat double negationof “p”isalsoequal to “p”.
~ (p^q) & ~p ^~q are not Equal.
P q (p ^q) ~(p ^q) ~p ~q ~p ^~q
T T T F F F F
T F F T F T F
F T F T T F F
F F F T T T T
So itis clearthat “~ (p^q) & ~p ^~q” are not equal
De Morgan’sLaw
1. The negationof “AND” statementislogicallyequivalenttothe “OR” statementinwhicheach
componentisnegated.
Symbolically~(p ^q) = ~p v ~q
P q P ^q ~(p ^q) ~p ~q ~p v ~q
T T T F F F F
T F F T F T T
F T F T T F T
F F F T T T T
So itis clearthat ~ (p^q) = ~p v ~q are logicallyequivalent
2. The negationof “OR” statementislogicallyequivalenttothe “AND”statementinwhichcomponent
isnegated.
Symbolically~(p v q) = ~p ^ ~q
P q (P v q) ~(p v q) ~p ~q ~p ^ ~q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
So itis clearthat ~ (pv q) = ~p ^ ~q is Equal.
Application
Negationforeachof the following:
a. The fanis slowor itis veryhot
7. b. Ali isfitor Awaisis injured.
Solution:
a. The fan isnot slow“AND”it is not veryhot
b. Ali is not fit“AND” Awaisisnotinjured
InequalitiesandDE MORGANESlaw:
Exercise:
1. (p ^q) ^ r = P^(q ^ r)
p q r (p ^q) (p ^q)^r (q ^r) P^(q ^r)
T T T T T T T
T T F T F F F
T F T F F F F
T F F F F F F
F T T F F T F
F T F F F F F
F F T F F F F
F F F F F F F
So itclearsthat Colum5 and Colum7 are equal
2. (P ^q) v r = p ^ (qv r)?????
P q r (p ^q) (p ^q) v r (q v r) P ^(q v r)
T T T T T T T
T T F T T T T
T F T F T T T
T F F F F F F
F T T F T T F
F T F F F T F
F F T F T T F
F F F F F F F
So itclear that Colum5 and Colum7 are not equal.