a && b) == (a || b) 怎么化简?Which of the following best describes the set of all \x05\x05pairs of values for boolean variables a and b,\x05\x05such that(!a && b) == (a || b)evaluates to true?A Empty setB Only one pair:\x05\x05\x05\x05 a == true,
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/24 16:46:11
![a && b) == (a || b) 怎么化简?Which of the following best describes the set of all \x05\x05pairs of values for boolean variables a and b,\x05\x05such that(!a && b) == (a || b)evaluates to true?A Empty setB Only one pair:\x05\x05\x05\x05 a == true,](/uploads/image/z/5436414-54-4.jpg?t=a+%26%26+b%29+%3D%3D+%28a+%7C%7C+b%29+%E6%80%8E%E4%B9%88%E5%8C%96%E7%AE%80%3FWhich+of+the+following+best+describes+the+set+of+all+%5Cx05%5Cx05pairs+of+values+for+boolean+variables+a+and+b%2C%5Cx05%5Cx05such+that%28%21a+%26%26+b%29+%3D%3D+%28a+%7C%7C+b%29evaluates+to+true%3FA+Empty+setB+Only+one+pair%3A%5Cx05%5Cx05%5Cx05%5Cx05+a+%3D%3D+true%2C)
a && b) == (a || b) 怎么化简?Which of the following best describes the set of all \x05\x05pairs of values for boolean variables a and b,\x05\x05such that(!a && b) == (a || b)evaluates to true?A Empty setB Only one pair:\x05\x05\x05\x05 a == true,
a && b) == (a || b) 怎么化简?
Which of the following best describes the set of all \x05\x05pairs of values for boolean variables a and b,\x05\x05such that(!a && b) == (a || b)
evaluates to true?
A Empty set
B Only one pair:\x05\x05\x05\x05 a == true,b == false
C Two pairs in which\x05\x05\x05\x05 a == true
D Two pairs in which\x05\x05\x05\x05 a = b
E All four possible \x05\x05\x05\x05combinations of values
直到答案是C
我是怎么想的:把右面的!移到左边,左边变为a || b ,这种想法对么?
如果不对的话,
a && b) == (a || b) 怎么化简?Which of the following best describes the set of all \x05\x05pairs of values for boolean variables a and b,\x05\x05such that(!a && b) == (a || b)evaluates to true?A Empty setB Only one pair:\x05\x05\x05\x05 a == true,
你的思路是对的,下一步就是
a或!b == a 或 b
但是b和!b中间一定有一个1,有个0
也就是说 a + (0) == a + (1) ——或就是+
带入a==0,错了,左边是0.右边是1
带入a==1就对了,两边都是1.