User Name Password Register
DaniWeb IT Discussion Community
All
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 403,041 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 2,915 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: 460 | Replies: 1
Reply
Join Date: Jun 2008
Posts: 5
Reputation: ADeen02 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ADeen02 ADeen02 is offline Offline
Newbie Poster

Mathematical Logic Question

  #1  
Jun 4th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 31
Reputation: rgviza is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
rgviza rgviza is offline Offline
Light Poster

Re: Mathematical Logic Question

  #2  
Jun 4th, 2008
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Legacy and Other Languages Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Legacy and Other Languages Forum

All times are GMT -4. The time now is 11:30 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC