作者l314 (红虫)
看板Logic
标题请问两个logic问题(in English)
时间Mon Oct 25 16:24:29 2004
两题皆来自<<Discrete Mathematics and its applications)
请高手们指导...orz
1.Each inhabitant of a remote village always tells the truth or always lies.
A villager will only give a "yes" or a "no" response to a question a tourist
asks. Suppose you are a tourist visiting this area and come to a fork in
the road. One branch leads to the ruins you want to visit; the other branch
leads deep into the jungle. A villager is standing at the fork in the road.
What one question can you ask th villager to determine which branch to take?
2.Steve would like to determine the relative salaries of three coworkers
using two facts. First, he knows that if Fred is not the highest paid of
the three, then Janice is. Second, he knows that if Janice is not the lowest
paid, then Maggie is paid the most. Is it possible to determine the relative
salaried of Fred,Maggie, and Janice from what Steve knows? If so,who is paid
the most and who the least? Explain your reasoning.
--
座右铭:
每天进步一点点~~
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.199.40