Math  /  Discrete

Question5. Construct the truth table for: 6 points each a) pq\sim p \vee q \begin{tabular}{|l|l|l|l|} \hline & & & \\ \hline & & & \\ \hline & & & \\ \hline & & & \\ \hline & & \\ \hline & & \\ \hline \end{tabular} b) (pq)\sim(p \vee q) \begin{tabular}{|l|l|l|l|} \hline & & & \\ \hline & & & \\ \hline & & & \\ \hline & & & \\ \hline & & & \\ \hline \end{tabular}

Studdy Solution

STEP 1

1. A truth table is a mathematical table used in logic to compute the functional values of logical expressions on each of their functional arguments.
2. The logical operators involved are negation (\sim) and disjunction (\vee).
3. The variables pp and qq can each be either true (T) or false (F).

STEP 2

1. Construct the truth table for pq\sim p \vee q.
2. Construct the truth table for (pq)\sim(p \vee q).

STEP 3

List all possible truth values for pp and qq. Since each can be true or false, there are 4 combinations:
1. p=T,q=Tp = \text{T}, q = \text{T}
2. p=T,q=Fp = \text{T}, q = \text{F}
3. p=F,q=Tp = \text{F}, q = \text{T}
4. p=F,q=Fp = \text{F}, q = \text{F}

STEP 4

Calculate p\sim p for each combination:
1. If p=Tp = \text{T}, then p=F\sim p = \text{F}.
2. If p=Fp = \text{F}, then p=T\sim p = \text{T}.

STEP 5

Calculate pq\sim p \vee q for each combination:
1. p=F,q=Tpq=T\sim p = \text{F}, q = \text{T} \Rightarrow \sim p \vee q = \text{T}
2. p=F,q=Fpq=F\sim p = \text{F}, q = \text{F} \Rightarrow \sim p \vee q = \text{F}
3. p=T,q=Tpq=T\sim p = \text{T}, q = \text{T} \Rightarrow \sim p \vee q = \text{T}
4. p=T,q=Fpq=T\sim p = \text{T}, q = \text{F} \Rightarrow \sim p \vee q = \text{T}

STEP 6

Construct the truth table for pq\sim p \vee q:
pqppqTTFTTFFFFTTTFFTT\begin{array}{|c|c|c|c|} \hline p & q & \sim p & \sim p \vee q \\ \hline \text{T} & \text{T} & \text{F} & \text{T} \\ \text{T} & \text{F} & \text{F} & \text{F} \\ \text{F} & \text{T} & \text{T} & \text{T} \\ \text{F} & \text{F} & \text{T} & \text{T} \\ \hline \end{array}

STEP 7

Calculate pqp \vee q for each combination:
1. p=T,q=Tpq=Tp = \text{T}, q = \text{T} \Rightarrow p \vee q = \text{T}
2. p=T,q=Fpq=Tp = \text{T}, q = \text{F} \Rightarrow p \vee q = \text{T}
3. p=F,q=Tpq=Tp = \text{F}, q = \text{T} \Rightarrow p \vee q = \text{T}
4. p=F,q=Fpq=Fp = \text{F}, q = \text{F} \Rightarrow p \vee q = \text{F}

STEP 8

Calculate (pq)\sim(p \vee q) for each combination:
1. pq=T(pq)=Fp \vee q = \text{T} \Rightarrow \sim(p \vee q) = \text{F}
2. pq=T(pq)=Fp \vee q = \text{T} \Rightarrow \sim(p \vee q) = \text{F}
3. pq=T(pq)=Fp \vee q = \text{T} \Rightarrow \sim(p \vee q) = \text{F}
4. pq=F(pq)=Tp \vee q = \text{F} \Rightarrow \sim(p \vee q) = \text{T}

STEP 9

Construct the truth table for (pq)\sim(p \vee q):
pqpq(pq)TTTFTFTFFTTFFFFT\begin{array}{|c|c|c|c|} \hline p & q & p \vee q & \sim(p \vee q) \\ \hline \text{T} & \text{T} & \text{T} & \text{F} \\ \text{T} & \text{F} & \text{T} & \text{F} \\ \text{F} & \text{T} & \text{T} & \text{F} \\ \text{F} & \text{F} & \text{F} & \text{T} \\ \hline \end{array}

Was this helpful?

Studdy solves anything!

banner

Start learning now

Download Studdy AI Tutor now. Learn with ease and get all help you need to be successful at school.

ParentsInfluencer programContactPolicyTerms
TwitterInstagramFacebookTikTokDiscord