Math 为算法创建真值表

Math 为算法创建真值表,math,logic,truthtable,Math,Logic,Truthtable,我是一名计算机科学本科生,我被要求创建一个算法,然后创建相应的真值表 a = ants are angry b = birds are busy c = cats are cool If ants are angry, then birds are not busy. If cats are cool then birds are busy. Cats are not cool. Therefore ants are angry. 就是这里,对吗?谢谢你的帮助 您应该查看真值表以了解

我是一名计算机科学本科生,我被要求创建一个算法,然后创建相应的真值表

a =  ants are angry
b =  birds are busy
c =  cats are cool

If ants are angry, then birds are not busy. 
If cats are cool then birds are busy.
Cats are not cool. Therefore ants are angry.
就是这里,对吗?谢谢你的帮助


您应该查看真值表以了解更多信息<如果
x
false
,那么无论
y
是什么,code>x->y都是真的。“如果蚂蚁生气了,那么鸟儿就不忙。”——这是什么疯狂的BS?当然,讲师可以创建比这更有意义的示例@马特克拉克你确定,。。。当我在教学时,为每个学生每学期每节课生成不同意义的完整任务是一个问题。。。(暂时还可以,但几年后很难产生适合任务的独特(不是复制品…)问题,对实践有意义,并且有一定的意义…)。。。对于数学,你可以做一个小的变化,并得到新的分配,但在编程中,一个小的变化会导致复制粘贴解决方案,这是不可取的。。。