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/11/17 02:29:14
a&&b)==(a||b)怎么化简?Whichofthefollowingbestdescribesthesetofall\x05\x05pairsofvaluesforbooleanvariable

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.