Question

In: Computer Science

Create truth tables for the following expressions. Include all necessary negations and sub-expressions. ( p ∧...

Create truth tables for the following expressions. Include all necessary negations and sub-expressions.

  1. ( p ∧ q ) ∨ ( ¬ r )
  2. ¬ ( p ∨ q ) ∧ ( r ⊕ s )
  3. [ ( q ⊕ r ) ∧ s ] ⟶ p

If you could explain the thought process behind how you did these that would be amazing, I am trying to learn the reasoning as I practice. Thanks

Solutions

Expert Solution

Just make column for first single terms involved , then for each subexpression and then using columns of these subexpressions evaluate final expression.and also if you know the basic truth tables of or , AND , negation,xor and implication then it is pretty much simple.

( p ∧ q ) ∨ ( ¬ r )

p q r ¬ r p ∧ q ( p ∧ q ) ∨ ( ¬ r )
T T T F T T
T T F T T T
T F T F F F
T F F T F T
F T T F F F
F T F T F T
F F T F F F
F F F T F T

¬ ( p ∨ q ) ∧ ( r ⊕ s )

p q r s p ∨ q ¬ ( p ∨ q ) r ⊕ s ¬ ( p ∨ q ) ∧ ( r ⊕ s )
T T T T T F F F
T T T F T F T F
T T F T T F T F
T T F F T F F F
T F T T T F F F
T F T F T F T F
T F F T T F T F
T F F F T F F F
F T T T T F F F
F T T F T F T F
F T F T T F T F
F T F F T F F F
F F T T F T F F
F F T F F T T T
F F F T F T T T
F F F F F T F F

[ ( q ⊕ r ) ∧ s ] ⟶ p

p q r s q ⊕ r ( q ⊕ r ) ∧ s [ ( q ⊕ r ) ∧ s ] ⟶ p
T T T T F F T
T T T F F F T
T T F T T T T
T T F F T F T
T F T T T T T
T F T F T F T
T F F T F F T
T F F F F F T
F T T T F F T
F T T F F F T
F T F T T T F
F T F F T F T
F F T T T T F
F F T F T F T
F F F T F F T
F F F F F F T

Related Solutions

a) Use truth tables to show that the following are valid arguments: i. [p  (p...
a) Use truth tables to show that the following are valid arguments: i. [p  (p → q)] → q ii. [(p → q) ∧ (q → r)] → (p → r) b) Use truth tables to show the logical equivalence of: i. (p → q) ⇔ (¬p ∨ q ) ii. (¬p ∨ q) ∨ (¬p  q) ⇔ p
A. Use truth tables to verify these equivalences 1. p∨p ≡ p 2. p∧p ≡ p...
A. Use truth tables to verify these equivalences 1. p∨p ≡ p 2. p∧p ≡ p 3. p∨(p∧q) ≡ p 4. p∨q ≡¬p → q 5. p∧q ≡¬(p →¬q) 6. p ↔ q ≡ (p → q)∧(q → p) B. Determine the truth value of each of these statements. (Assume the domain of variables consist of all real numbers). 1. ∃x(x2 = 2) 2. ∃x(x + 2 = x) 3. ∀x(x2 + 2 > 0) 4. ∀x(x2 = x)
1. Create an ERD that has at least 5 tables in it and include all of...
1. Create an ERD that has at least 5 tables in it and include all of the details and the correct notation (Min/Max cardinality and relationship name.) 2. Write a paragraph that explains the ERD. 3. Write the SQL Create, Insert, and Update statement to insert one of the entities from this ERD into a database.
Write a program that generates and prints out in a neat format all possible truth tables...
Write a program that generates and prints out in a neat format all possible truth tables with three propositional variables p, q, and r. Your program should also number generated truth tables and output the numbers so it is clear how many total tables were generated. Your program output may look like the following (Note: only the beginning of the output is shown): Truth table 1: p q r proposition ----------------- F F F F F F T F F...
use truth tables to determine whether or not the following arguments are valid: a) if jones...
use truth tables to determine whether or not the following arguments are valid: a) if jones is convicted then he will go to prison. Jones will be convicted only if Smith testifies against him. Therefore , Jones won't go to prison unless smith testifies against him. b) either the Democrats or the Republicans will have a majority in the Senate. but not both. Having a Democratic majority is a necessary condition for the bill to pass. Therefore, if the republicans...
Prepaid items for which adjusting entries may be necessary include all of the following except:
Prepaid items for which adjusting entries may be necessary include all of the following except:A.prepaid insuranceB.prepaid rentC.unearned revenueD.office supplies
Answer to the following questions. Give mathematical expressions and physical explanations if it is necessary. 1....
Answer to the following questions. Give mathematical expressions and physical explanations if it is necessary. 1. What is polarization of light? (Electromagnetic formulations should be given) 2. What is the difference between polarized light and nonpolarized light? 3. How can polarized light be created? (Explain in detail the physical background) 4. Polarization states: Linear, Circular and Elliptic (Give mathematical formulations and draw graphics) 5. TM and TE polarizations: Reflection and Refraction (Mathematical formulations) 6. How does polarization by reflection work?...
Prove the following equivalences without using truth tables, and specify at each step of your proof...
Prove the following equivalences without using truth tables, and specify at each step of your proof the equivalence law you are using. (a) ¬ (p ∨ (¬ p ∧ q)) ≡ ¬ p ∧ ¬ q (b) ( x → y) ∧ ( x → z) ≡ x → ( y ∧ z) (c) (q → (p → r)) ≡ (p → (q → r)) (d) ( Q → P) ∧ ( ¬Q → P) ≡ P
Develop the SQL scripts that will create the tables and enforce all the appropriate constraints •...
Develop the SQL scripts that will create the tables and enforce all the appropriate constraints • Develop sample SQL scripts that will insert the data to the database (one row in each table) • Convert at least 2 entities to MongoDB Collections. Write the scripts that will Create the collection(s)
Linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may...
Linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may use grep or egrep to answer these questions. 1.Match any lines that contain a phone number with the format 222-222-2222.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT