Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Caesar murder logic problem

Posted on 2011-03-17
8
Medium Priority
?
735 Views
Last Modified: 2012-05-11
it is a problem of logic concerning who killed Julius Caesar.
I have written the logical sentences and build the truth table, but I cannot find a way to combine all these...

p: Marcus Antonius(says): Cassius or Brutus or both
q: Cassius(says): not me. Marcus Antonius is lying
r: Brutus(says): if I did it, then the other two are guilty also.

m: Marcus Antonius is guilty
c: Cassius is guilty
b: Brutus is guilty

A guilty person always lies.
A non-guilty person always tells the truth

p: c OR b OR (c AND b)
q: c’ AND m (because a guilty always lies)
r: b => (c AND m)

 
0
Comment
Question by:dimi67
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 4

Expert Comment

by:sgvill
ID: 35161012
not sure about the truth table, but... if marcus antonious did it, his statement being a lie and the other two being true is consistant.
0
 
LVL 84

Expert Comment

by:ozo
ID: 35162527
Cassius being guilty is also consistent.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 2000 total points
ID: 35162720
So here's the main truth table. For the left three T means guilty. For the right three T means told the truth.
M	C	B	C v B	C' ^ p'	B' v (C ^ M)
T	T	T	T	F	T
T	T	F	T	F	T
T	F	T	T	F	F
T	F	F	F	T	T
F	T	T	T	F	F
F	T	F	T	F	T
F	F	T	T	F	F
F	F	F	F	T	T

Open in new window

But if anyone is guilty, then they must be lying and the innocent are truthful so we can blank out all the rows where there are two Ts or two Fs in someone's columns.
					
M	C	B	C v B	C' ^ p'	B' v (C ^ M)
T	T	T		F	
T	T	F		F	T
T	F	T			F
T	F	F	F	T	T
F	T	T	T	F	F
F	T	F	T	F	T
F	F	T	T		F
F	F	F		T	T

Open in new window

This leaves three valid possible scenarios
M did it
C and B did it
C did it
All three (and only these three) satisfy all the given conditions.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dimi67
ID: 35167724
I understand the hole concept, but what is the answer?
We have only 1 answer, or not?
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 35167791
The way you have defined the problem yields three possible answers. If the question implies there is one answer, then please check to make sure you haven't missed anything. If you look at the three scenarios I listed, all of them work given the criteria in your original post.
So there are three possible answers.
0
 

Author Comment

by:dimi67
ID: 35172743
There is one more sentence: only one of the persons is telling the truth, so, at line 5, Brutus is guilty, and what he says is false, so this is the solution...
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 35172913
I see. If only one is telling the truth, then there must be two guilty ones. So it's C and B (which is line 7 in the second table).
0
 

Author Comment

by:dimi67
ID: 35173118
yes, at line 7...thank you...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a brief introduction to tissue engineering, the process by which organs can be grown artificially. It covers the problems with organ transplants, the tissue engineering process, and the current successes and problems of the tec…
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question