d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Help With Truth Table > Boolean Expression
Add Reply New Topic New Poll
Member
Posts: 11,316
Joined: Nov 6 2004
Gold: 1,500.03
Mar 9 2014 04:11pm
If i am making a truth table based on this boolean expression, what order do i go in?

NOT (X OR NOT(Y AND Z))
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Mar 9 2014 04:18pm
follow the parenthesis. that's why they're there.
Member
Posts: 11,316
Joined: Nov 6 2004
Gold: 1,500.03
Mar 9 2014 04:28pm
so i do y and z first
which equals
0
0
0
1
0
0
0
1

then what do i do?

the rest is confusing to me
when do i incorporate x?
Code

X Y Z | | | |
0 0 0 . . . .
0 0 1 . . . .
0 1 0 . . . .
0 1 1 . . . .
1 0 0 . . . .
1 0 1 . . . .
1 1 0 . . . .
1 1 1 . . . .
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Mar 9 2014 04:32pm
so the columns would have (Y AND Z), NOT(Y AND Z), X OR NOT(Y AND Z), NOT(X OR NOT(Y AND Z)

Code

X Y Z Y&Z !(Y&Z) X|!(Y&Z) !(X|!(Y&Z)
0 0 0 0 1 1 0
0 0 1 0 1 1 0
0 1 0 0 1 1 0
0 1 1 1 0 0 1
1 0 0 0 1 1 0
1 0 1 0 1 1 0
1 1 0 0 1 1 0
1 1 1 1 0 1 0


This post was edited by Minkomonster on Mar 9 2014 04:43pm
Member
Posts: 11,316
Joined: Nov 6 2004
Gold: 1,500.03
Mar 9 2014 04:34pm
thank you

can you tell me what i am comparing x to in the last 2 columns?
ok i get the last column but not the one before it

am i comparing X|!(Y&Z) to the x column?
if so then i get it now

This post was edited by shenk on Mar 9 2014 04:55pm
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 9 2014 04:59pm
Quote (shenk @ Mar 9 2014 06:34pm)
thank you

can you tell me what i am comparing x to in the last 2 columns?
ok i get the last column but not the one before it

am i comparing X|!(Y&Z) to the x column?
if so then i get it now


You are ORing X and the result of !(Y&Z) together. Whats not to understand?

So you have three input variables columns depicting each possible state for the three variables. From there you are simply answering for each sub logic in the equation.

X|!(Y&Z)

where X = 1, Y = 0, Z = 1 would be

(0 & 1) = 0
!(0) = 1
1 | 1 = 1

So X|!(Y&Z) where X = 1, Y = 0, Z = 1 would equate to 1.

This post was edited by AbDuCt on Mar 9 2014 05:05pm
Member
Posts: 11,316
Joined: Nov 6 2004
Gold: 1,500.03
Mar 9 2014 05:02pm
Quote (AbDuCt @ Mar 9 2014 11:59am)
You are ORing X and the result of !(Y&Z) together. Whats not to understand?



obviously i am new to this...

anyway thank you minkomonster for your help
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Mar 9 2014 05:03pm
Quote (shenk @ Mar 9 2014 07:02pm)
obviously i am new to this...

anyway thank you minkomonster for your help


Read my edit, hopefully it will make more sense.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll