•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 425,774 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,334 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser: Programming Forums
Views: 505 | Replies: 1
![]() |
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
A detective has interviewed four witnesses to a crime. From the stories of the witnesses the detective has concluded that if the butler is telling the truth then so is the cook; the cook and the gardener cannot be be telling the truth, the gardener and the handyman are not both lying; and if the handyman is telling the truth then the cook is lying. For each of the four witnesses, can the detective determine whether that person is telling the truth or lying?
Can some help me to solve this problem using Mathematical Logic? No need to put it into prolog. I spent 6.5 hours so far trying and had to give up.
-Shahabudeen
Can some help me to solve this problem using Mathematical Logic? No need to put it into prolog. I spent 6.5 hours so far trying and had to give up.
-Shahabudeen
•
•
Join Date: May 2008
Posts: 31
Reputation:
Rep Power: 1
Solved Threads: 5
The handyman is telling the truth, the rest are lying.
The detective could tell which witnesses were lying through instinct, experience, story comparison and knowledge of human behavior, although circumstance (dark light, only getting a glimse of the subject, etc etc) could create a situation where the witness story was wrong and suspect, but they were telling the truth about what they thought they saw so would pass a lie detector test. The detective would have to use his better judgement to come to a determination. I'm sure he'd probably get it right if he was pretty experienced, even if he couldn't prove it. He'd know...
This isn't a mathematical problem. There are 8 people involved. This might be a trick question and I gave the trick answer in the second paragraph. The fact that 4 witnesses are not directly associated with the 4 subjects tipped me off to this.
If they were it would have started off with:
A detective has interviewed four witnesses to a crime, the butler, handyman, gardener and cook.
You cannot assume that these witnesses were the butler, handyman, gardener and cook because the problem doesn't explicitly state that they are. It's either a very poorly worded problem, or the professor is trying to trick you.
-Viz
The detective could tell which witnesses were lying through instinct, experience, story comparison and knowledge of human behavior, although circumstance (dark light, only getting a glimse of the subject, etc etc) could create a situation where the witness story was wrong and suspect, but they were telling the truth about what they thought they saw so would pass a lie detector test. The detective would have to use his better judgement to come to a determination. I'm sure he'd probably get it right if he was pretty experienced, even if he couldn't prove it. He'd know...
This isn't a mathematical problem. There are 8 people involved. This might be a trick question and I gave the trick answer in the second paragraph. The fact that 4 witnesses are not directly associated with the 4 subjects tipped me off to this.
If they were it would have started off with:
A detective has interviewed four witnesses to a crime, the butler, handyman, gardener and cook.
You cannot assume that these witnesses were the butler, handyman, gardener and cook because the problem doesn't explicitly state that they are. It's either a very poorly worded problem, or the professor is trying to trick you.
-Viz
![]() |
•
•
•
•
•
•
•
•
DaniWeb Legacy and Other Languages Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- Gewttin File and Directories using interrupts (Assembly)
- Re: IPO I Need Process Examples (Computer Science and Software Design)
- Math or Logic Puzzles (Posting Games)
- Data Abstraction (Computer Science and Software Design)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: Turbo C Fixup Error
- Next Thread: Mohamed Shahabudeen in need of help!


Linear Mode