Logic and Truth Tables

Verified

Added on  2020/04/21

|9
|1133
|119
AI Summary
This assignment focuses on understanding and applying truth tables in logic. It presents various problems involving logical operators like implication, conjunction, disjunction, negation, and quantifiers. Students are tasked with constructing truth tables for given propositions, analyzing the validity of arguments, and simplifying complex expressions using logical equivalences.

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
CBMA2103MATHEMATIC DISCRETE
ASSIGNMENT
Student id and name
[Pick the date]

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Question 1
Universal set and the subsets are given below:
U = { 1,2,3,4,5,6 }= { x Z :1 x 6 }
A= { 2 ,3 4 }= { x Z :2 x 4 }
B= {3,4,5 }= { x Z :3 x 5 }
(a) The respective sets are shown below:
(i) A B= {2 , 3 , 4 , 5 }= { x Z :2 x 5 }
(ii) A B= {3 , 4 }= { x Z :3 x 4 }
(iii) AB= { 2 }
(iv) B A= { 5 }
(b) The respective Venn diagram to represent U, A and B is highlighted below:
1
Document Page
Question 2
The given diagram represents set V such that V ={u , v , w , x , y , z } of the six cities and the direct
flights between them.
(a) Relation R on V by aRb ( including zero flights and fly from a to b with the help of even
number of flights)
(i) “R is an equivalence relation on V”
It is essential to note that R is an equivalence relation on V only when it would be reflexive,
symmetric and transitive as highlighted below:
Reflexive: (aRa for all a V )
Symmetric: ( aRa represents bRa )
Transitive: (aRbbRc represents aRc)
It can be seen that the relation is reflexive. It is because one can fly from one city to same city
with the help of zero flight. Kindly note that zero is considered as even. Additionally, it is
symmetric also because one can fly from a ¿ b with the help of even number of flights. Similarly,
if one wants to fly back from b to a then also they need even number of flights. This relation is
also considered as transitive since aRbbRc and then the total number of flights required to fly
from a ¿ c is mainly the sum of number of flights from a ¿ balso ¿ b ¿ c . Hence, the conclusion
can be made that R is an equivalence relation on V.
(ii) “Partition the set into equivalence classes”
For this, let one element in such a way that for the given cities which can be reached from
particular city with the help of even number flights, there would be two equivalence classes.
Hence, the partition the set into equivalence classes is true.
2
Document Page
(b) The aim is to prove that when relation R on V with the help of aRb such that one would
fly from a ¿ b by using an odd number flight, then R is not considered as an equivalence
relation. If one fly from a given city to another city with the help of odd number flight
then in such case they are related to R. It has been considered that zero is not an off
number. It is the indication of the fact that any of the cities is not R related. Moreover,
when the case is for off number flights then it is essential to find whether the new relation
is reflexive or transitive. In present case, let the new relation is termed as R' then it I
essential to note that y R' x and x R' w are relative but y R' x and y R' w does not show any
relation.
Question 3
a) In the given case, the relevant function is the modulus function which tends to given the
remainder.
Hence, f(n) = Mod[(5n+2)/12]
i) We need to ascertain if the function is one to one or not.
It is evident that f(3) = f(15) as both yield the remainder as 5.
A condition to be fulfilled in one to one functions is that if f(a) = f(b) then, this should imply
that a=b.
Clearly, using the given example, it is apparent that this condition is violated and hence the given
function is not a one to one function.
ii) The given function would be onto if for any element existing in the range, it is possible to
compute a corresponding value of n which tends to belong to the domain. Here for all
potential F(n) values, corresponding n value exists. Hence, the given function would be
considered as onto function.
b) Now there is a modification in the function with the new function being the follows.
f(n) = Mod[(4n+2)/12]
3

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
One to One Check
It is evident that f(3) = f(6) as both yield the remainder as 2.
A condition to be fulfilled in one to one functions is that if f(a) = f(b) then, this should imply
that a=b.
Clearly, using the given example, it is apparent that this condition is violated and hence the given
function is not a one to one function.
Onto Check
The given function would be onto if for any element existing in the range, it is possible to
compute a corresponding value of n which tends to belong to the domain. Here there are some
potential F(n) values for which no corresponding n exists. This is because the numerator and
denominator are both even and for odd values of remainder, there would not exist any n. Hence,
the given function cannot be considered as onto function.
Question 4
(a) The value of terms a0 , a1 , a2 a3of the given sequences needs to be determined.
(i) (2)n
a0=(2)0 =1
a1=(2)1=2
a2=(2)2=4
a3=(2)3=8
(ii) 7+4n
4
Document Page
a0=7+ 40 =8
a1=7+ 41=11
a2=7+ 42=23
a3=7+ 43=71
(iii) 2n +(2)n
a0=20 +(2)0 =2
a1=21+(2)1=0
a2=22+(2)2=8
a3=23 +(2)3=0
(b) First 10 terms of the given sequences is presented below:
(i) Begin with 2 and each successive tem is 3 higher than preceding term
Let a1=2
a2=a1 +3=2+3=5
a3=a2 +3=5+3=8
a4=a3 +3=8+3=11
a5=a4 +3=11+3=14
a6=a5 +3=14+3=17
a7=a6 +3=17+3=20
5
Document Page
a8=a7 +3=20+3=23
a9=a8+ 3=23+3=26
a10=a9 +3=26+3=29
Therefore, the sequence would be 2,5,8,11,14,17,20,23,26,29.
(ii) Begin with 3 and each successive tem is twice the preceding term
Let a1=3
a2=2 a1=23=6
a3=2 a2=26=12
a4=2 a3=212=24
a5=2 a4 =224=48
a6=2 a5=248=96
a7=2 a6=296=192
a8=2 a7=2192=384
a9=2 a8=2384=768
a10=2 a9=2768=1536
Therefore, the sequence would be 3 , 6 , 12, 24 , 48 ,96 ,192 , 384 , 768 ,1536.
(iii) Sequences first two terms are 1 and succeeding term is the sum of two preceding
terms
Let
6

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Let a1=1
a2=1
a3=a1 +a2=1+1=2
a4=a2+a3=1+ 2=3
a5=a3 +a4 =2+3=5
a6=a4 +a5 =3+5=8
a7=a5 + a6=5+ 8=13
a8=a6+a7=8+13=21
a9=a7 +a8=13+ 21=34
a10=a8 +a9=21+34=55
Therefore, the sequence would be 1 ,1 , 2 ,3 , 5 , 8 , 13 ,21 , 34 , 55.
Question 5
True table for ( p q)
p q p → q
T T T
T F F
F T T
F F T
True table for (~q ~p)
~q ~p
~q
~p
7
Document Page
F T T
T F F
F T T
T F F
Final true table
p q p → q ~q ~p ~q
~p
T T T F T T
T F F T F F
F T T F T T
F F T T F F
As per the applicability of contrapositive law, it can be said that the given statement is
contingency.
(b) ((~p q) (~q r)) (~p r))
p q r ~p ᴧ
q
~p V
q
~q r (~p q) (~q
r)
~p r
T T T F T T T T
T F T T F T F T
F T F T T T T T
F F F T T T T F
The true table for the statement represents logically equivalent proposition and hence, it is
tautologies.
8
1 out of 9
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]