lgbasallote 3 years ago how to set up a truth table with three variables?

1. myininaya

2^3 rows

2. myininaya

Let me know if you need more help

3. lgbasallote

yes. but how does the T and F look like?

4. myininaya

Do all possible combinations

5. precal

you have to list all possibilites

6. precal

T,T,T T,T,F T,F,F, T,F,T F,F,F and so on

7. myininaya

TTT TTF TFF TFT FFF FFT FTT FTF

8. lgbasallote

hmm....

9. lgbasallote

buffering....

10. myininaya

?

11. lgbasallote

is there any pattern? or are those randomly arranged?

12. lgbasallote

i can see the first column is organized though

13. ganeshie8

1. toggle the right most variable in every row

14. lgbasallote

toggle?

15. ganeshie8

2. toggle the middle variable every 2 rows toggle : T->F or F->T

16. ganeshie8

3. toggle the left most variable every 4 rows

17. precal

Just have to make sure all of your cases are represented

18. lgbasallote

will you please elaborate what these "toggle" words that keep popping out on every first word of each step?

19. ganeshie8

toggle means, if the previous state of a variable is T, change it to F

20. lgbasallote

what does it mean in video games then?

21. ganeshie8

if the previous state of variable is F, change it to T

22. lgbasallote

hmm i see

23. ganeshie8

sometime i get to draw a truthtable with 5-6 variables... this trick helps me

24. ganeshie8

32 rows, 64 rows... that gets pretty long... but sometimes we have to do it painfully..

25. lgbasallote

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

26. ganeshie8

looks perfect !

27. lgbasallote

28. ganeshie8

hey but check the 3rd column is it incomplete or what

29. ganeshie8

3rd column from right side

30. ganeshie8

you toggling it every 2 rows, u should toggle it every 4 rows

31. lgbasallote

wait...i think i may have an idea....

32. ganeshie8

33. myininaya

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?

34. lgbasallote

i see...

35. myininaya

Like look at the "first column" which is the first 8 rows first

36. myininaya

And use what I said

37. ganeshie8

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

38. ganeshie8

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

39. ganeshie8

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

40. ganeshie8

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

41. lgbasallote

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,,,?

42. ganeshie8

looks correct but u shouldnt have flipped the second section

43. lgbasallote

@myininaya 's directions....

44. ganeshie8

if you're showing first rows as TTTTT, you must show last row as FFFFF

45. lgbasallote

same shiz

46. ganeshie8

u can work out using any directions, but the general way we represent truth tables is common everywhere

47. lgbasallote

order of the first column doesn't matter right?

48. ganeshie8

what is order ?

49. lgbasallote

@myininaya 's method is very efficient..i must say

50. ganeshie8

individual opinion.. i find the method i use is very effecient

51. lgbasallote

"toggle" confuses me

52. ganeshie8

i get u :) 'toggle' is industry word.. idk if they use in academic... .