有什么方法来解决这样的逻辑问题? [英] What's the approach to solving this kind of logic problem?
本文介绍了有什么方法来解决这样的逻辑问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
会是什么方式,以那样的问题,听起来是这样的:
一个说B酒店位于
乙说ç谎言
ð说B酒店位于
ç说B酒店位于
电子表示,A和D的谎言
有多少谎言,有多少说实话? 我不是在寻找的答案上述问题,但处理这一类问题。非常感谢。
解决方案
A - > !乙
乙 - > !C
ð - > !乙
C - > !乙
Ë - > !急症室; D!
提醒:
X - > Y'LT; => !X | ÿ
变换5方程化为逻辑命题,你会找到答案。
What would be the approach to a kind of problem that sounds like this:
A says B lies
B says C lies
D says B lies
C says B lies
E says A and D lie
How many lie and how many tell the truth? I am not looking for the answer to the problem above, but the approach to this kind of problem. Thanks a lot.
解决方案
A -> !B
B -> !C
D -> !B
C -> !B
E -> !A & !D
Reminder:
X -> Y <=> !X | Y
Transform the 5 equations into logical propositions, and you will find answers.
这篇关于有什么方法来解决这样的逻辑问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文