Frenemies of TalkRational: |
Nontheist Nexus | Rants'n'Raves | Secular Cafe | Council of Ex-Muslims | The Skeptical Zone | rationalia | Rational Skepticism | Atheists Today | |
09-20-2015, 09:58 PM | #2564187 / #27 |
ZA... WARUDO!!
RnR/TR Official Historian
: Jun 2008
: 42,699
|
yeah when i was working through the restrictions i labor under (the weird order of operations) i eventually arrived at this. because:
(A and (C or not D)) or (C and not B) = (A OR C) AND ((C or !D) OR C) AND (A OR !B) AND ((C or !D) OR !B) but, as it turns out, ((C OR !D) OR C) = (C OR !D) and (C OR !D) = (C OR !D) AND ((C OR !D) OR !B) so i came to the same thing you did: (A OR C) AND (A OR !B) AND (C OR !D) from there i started really looking at the system this represents because i had the feeling there was a circumstance under which (C or !D) would be sufficient, which would be great for efficiency. i think my method was sorta like what you were talking about in reverse, and this is what i came up with: :
where X = "what i want" A | B | C | D | X | (C OR !D) ------------------------------ 1 | 1 | 1 | 1 | 1 | 1 1 | 1 | 1 | 0 | 1 | 1 1 | 1 | 0 | 1 | 0 | 0 1 | 1 | 0 | 0 | 1 | 1 1 | 0 | 1 | 1 | 1 | 1 1 | 0 | 1 | 0 | 1 | 1 1 | 0 | 0 | 1 | 0 | 0 1 | 0 | 0 | 0 | 1 | 1 0 | 1 | 1 | 1 | 0 | 1 0 | 1 | 1 | 0 | 0 | 1 0 | 1 | 0 | 1 | 0 | 0 0 | 1 | 0 | 0 | 0 | 1 0 | 0 | 1 | 1 | 1 | 1 0 | 0 | 1 | 0 | 1 | 1 0 | 0 | 0 | 1 | 0 | 0 0 | 0 | 0 | 0 | 0 | 1 in that case, C OR !D does exactly what i need, and the design of the program will preclude the user reaching any other state. thank you for all your help mathemagicians!
__________________
OH MY GOD! |
09-20-2015, 10:33 PM | #2564202 / #28 | |
Senior Member
TR Pundit
: Oct 2008
: 30,945
|
:
and, yeah, i think I was thinking of the thing hh posted. |
|
09-20-2015, 10:49 PM | #2564211 / #30 |
Senior Member
: Jul 2008
: 15,106
|
Eh, it's close. "Sums" doesn't quite work for OR; if you want a full ring, you need to use XOR. But it's close - you do have a version of distributivity, which is what you need to turn an arbitrary expression into a "sum of products".
|
09-20-2015, 11:08 PM | #2564217 / #31 |
TRIGGER WARNING
Resident Overlord
: Mar 2008
: 10,991
|
Mathematics is about reducing complicated problems to simpler ones.
A Boolean function which outputs 1 in one row (say, the row A = 1, B = 0, C = 1) and 0 everywhere else is easy to produce: A and not B and C. Likewise, a Boolean function which outputs 0 in one row (say, the row A = 1, B = 0, C = 1 again) and 1 everywhere else is easy to produce: not A or B or not C. If you know how to produce a Boolean function of n variables which outputs 1 in one row and 0 everywhere else, then you know how to produce any Boolean function: take a suitable disjunction of such functions. Likewise, if you know how to produce a Boolean function of n variables which outputs 0 in one row and 0 everywhere else, then you also know how to produce any Boolean function: take a suitable conjunction of such functions. |
09-21-2015, 12:05 AM | #2564230 / #32 |
ZA... WARUDO!!
RnR/TR Official Historian
: Jun 2008
: 42,699
|
noted
__________________
OH MY GOD! |
09-22-2015, 10:56 AM | #2564759 / #33 | |
Superior Member
: Sep 2011
: 2,727
|
:
The Product of Sums output is: y = (A + B) (A + !C) (B + !C) same as BD's answer. |
|
X vBulletin 3.8.6 Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|