CSC108H5 Lecture Notes - Lecture 5: If And Only If

19 views2 pages
School
Course
897wjface and 39475 others unlocked
CSC108H5 Full Course Notes
12
CSC108H5 Full Course Notes
Verified Note
12 documents

Document Summary

F (a == true and b == false) or (a == false and b == true) (a and (not b)) or ((not a) and b) (a or b) and (not (a and b)) a != b. For this mini exercise, you needed to come up with an expression that resembled. Xor. i. e. a xor b is equal to true iff exactly one of "a" or "b" are true (and false otherwise). So the truth table for your expression should be: a | b | (expression) Now, we have to find an expression that would evaluate to the above table. We could just explicitly write out exactly the cases that our expression should be true for: (a == true and b == false) or (a == false and b == true) Basically, this lists out the two cases that we would be happy with.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions