lgbasallote
how to set up a truth table with three variables?
Delete
Share
This Question is Closed
myininaya
Best Response
You've already chosen the best response.
2
2^3 rows
myininaya
Best Response
You've already chosen the best response.
2
Let me know if you need more help
lgbasallote
Best Response
You've already chosen the best response.
2
yes. but how does the T and F look like?
myininaya
Best Response
You've already chosen the best response.
2
Do all possible combinations
precal
Best Response
You've already chosen the best response.
1
you have to list all possibilites
precal
Best Response
You've already chosen the best response.
1
T,T,T
T,T,F
T,F,F,
T,F,T
F,F,F
and so on
myininaya
Best Response
You've already chosen the best response.
2
TTT
TTF
TFF
TFT
FFF
FFT
FTT
FTF
lgbasallote
Best Response
You've already chosen the best response.
2
hmm....
lgbasallote
Best Response
You've already chosen the best response.
2
buffering....
myininaya
Best Response
You've already chosen the best response.
2
?
lgbasallote
Best Response
You've already chosen the best response.
2
is there any pattern? or are those randomly arranged?
lgbasallote
Best Response
You've already chosen the best response.
2
i can see the first column is organized though
ganeshie8
Best Response
You've already chosen the best response.
0
1. toggle the right most variable in every row
lgbasallote
Best Response
You've already chosen the best response.
2
toggle?
ganeshie8
Best Response
You've already chosen the best response.
0
2. toggle the middle variable every 2 rows
toggle : T->F or F->T
ganeshie8
Best Response
You've already chosen the best response.
0
3. toggle the left most variable every 4 rows
precal
Best Response
You've already chosen the best response.
1
Just have to make sure all of your cases are represented
lgbasallote
Best Response
You've already chosen the best response.
2
will you please elaborate what these "toggle" words that keep popping out on every first word of each step?
ganeshie8
Best Response
You've already chosen the best response.
0
toggle means, if the previous state of a variable is T, change it to F
lgbasallote
Best Response
You've already chosen the best response.
2
what does it mean in video games then?
ganeshie8
Best Response
You've already chosen the best response.
0
if the previous state of variable is F, change it to T
lgbasallote
Best Response
You've already chosen the best response.
2
hmm i see
ganeshie8
Best Response
You've already chosen the best response.
0
sometime i get to draw a truthtable with 5-6 variables... this trick helps me
ganeshie8
Best Response
You've already chosen the best response.
0
32 rows, 64 rows... that gets pretty long... but sometimes we have to do it painfully..
lgbasallote
Best Response
You've already chosen the best response.
2
so in four variables
T F T F
T F T F
T T F F
T T F F
T F T F
T F T F
T T F F
T T F F
F F T T
F F T T
F T F T
F T F T
F F T T
F F T T
F T F T
F T F T
lol
ganeshie8
Best Response
You've already chosen the best response.
0
looks perfect !
lgbasallote
Best Response
You've already chosen the best response.
2
i doubt you read that....
ganeshie8
Best Response
You've already chosen the best response.
0
hey but check the 3rd column is it incomplete or what
ganeshie8
Best Response
You've already chosen the best response.
0
3rd column from right side
ganeshie8
Best Response
You've already chosen the best response.
0
you toggling it every 2 rows, u should toggle it every 4 rows
lgbasallote
Best Response
You've already chosen the best response.
2
wait...i think i may have an idea....
ganeshie8
Best Response
You've already chosen the best response.
0
start with TTTT
myininaya
Best Response
You've already chosen the best response.
2
I would start a truth table with 4 variables this way:
(We will need 2^4=16 rows)
TTTT FFFF
TTTF FFFT
TTFF FFTT
TTFT FFTF
TFTT FTFF
TFTF FTFT
TFFF FTTT
TFFT FTTF
I wrote it like this to show for my last 8 rows I just replaced my T's with F's and my F's with T's that I had in the 1st 8 rows.
I said okay also I'm gonna start with 8 T's and 8 F's pattern
Then second column I did 8/2 T's and 8/2 F's pattern
Third colmn I did 4/2 T's and 4/2 F's pattern
And fourth column I did 2/2 T's and 2/2 F's pattern
Does that make sense?
lgbasallote
Best Response
You've already chosen the best response.
2
i see...
myininaya
Best Response
You've already chosen the best response.
2
Like look at the "first column" which is the first 8 rows first
myininaya
Best Response
You've already chosen the best response.
2
And use what I said
ganeshie8
Best Response
You've already chosen the best response.
0
i do like this usually : 4 variables => 16 rows
1) last column : toggle every row
T
F
T
F
T
F
T
F
T
F
T
F
T
F
T
F
ganeshie8
Best Response
You've already chosen the best response.
0
2) 2nd column from right : toggle every 2 rows
TT
TF
FT
FF
TT
TF
FT
FF
TT
TF
FT
FF
TT
TF
FT
FF
ganeshie8
Best Response
You've already chosen the best response.
0
3) 3rd columnn from right : toggle every 4 rows
TTT
TTF
TFT
TFF
FTT
FTF
FFT
FFF
TTT
TTF
TFT
TFF
FTT
FTF
FFT
FFF
ganeshie8
Best Response
You've already chosen the best response.
0
4) 4th column from right : toggle every 8 rows
TTTT
TTTF
TTFT
TTFF
TFTT
TFTF
TFFT
TFFF
FTTT
FTTF
FTFT
FTFF
FFTT
FFTF
FFFT
FFFF
lgbasallote
Best Response
You've already chosen the best response.
2
so for 5 variables
T T T T T
T T T T F
T T T F T
T T T F F
T T F T T
T T F T F
T T F F T
T T F F F
T F T T T
T F T T F
T F T F T
T F T F F
T F F T T
T F F T F
T F F F T
T F F F F
F F F F F
F F F F T
F F F T F
F F F T T
F F T F F
F F T F T
F F T T F
F F T T T
F T F F F
F T F F T
F T F T F
F T F T T
F T T F F
F T T F T
F T T T F
F T T T T
looks wrong,,,?
ganeshie8
Best Response
You've already chosen the best response.
0
looks correct but u shouldnt have flipped the second section
lgbasallote
Best Response
You've already chosen the best response.
2
@myininaya 's directions....
ganeshie8
Best Response
You've already chosen the best response.
0
if you're showing first rows as TTTTT, you must show last row as FFFFF
lgbasallote
Best Response
You've already chosen the best response.
2
same shiz
ganeshie8
Best Response
You've already chosen the best response.
0
u can work out using any directions, but the general way we represent truth tables is common everywhere
lgbasallote
Best Response
You've already chosen the best response.
2
order of the first column doesn't matter right?
ganeshie8
Best Response
You've already chosen the best response.
0
what is order ?
lgbasallote
Best Response
You've already chosen the best response.
2
@myininaya 's method is very efficient..i must say
ganeshie8
Best Response
You've already chosen the best response.
0
individual opinion.. i find the method i use is very effecient
lgbasallote
Best Response
You've already chosen the best response.
2
"toggle" confuses me
ganeshie8
Best Response
You've already chosen the best response.
0
i get u :) 'toggle' is industry word.. idk if they use in academic... .