How to construct a truth table with 1 and 0

  • Thread starter Thread starter Her-0
  • Start date Start date
  • Tags Tags
    Table Truth table
AI Thread Summary
To construct a truth table for the function F = (W'.Z)(X.Y')+(Y'+X)+(Z+W), start by setting up five columns: W, X, Y, Z, and F. Each of the first four columns will represent the binary combinations of the inputs, while the fifth column will display the output for each combination. To calculate the output, substitute the binary values into the Boolean expression and evaluate it step by step, applying the rules of Boolean algebra. For example, for the input 1101, substitute W=1, X=1, Y=0, Z=1 into the function and simplify to find F. Repeat this process for all possible input combinations to complete the truth table.
Her-0
Messages
8
Reaction score
0
I have written the function for the circuit as --> F= (W'.Z)(X.Y')+(Y'+X)+(Z+W)

I am very confused on how to set up the truth table can someone help me?
 
Physics news on Phys.org
Her-0 said:
I have written the function for the circuit as --> F= (W'.Z)(X.Y')+(Y'+X)+(Z+W)

I am very confused on how to set up the truth table can someone help me?

You appear to have 4 inputs and one output. Make your table with 5 columns, with the 1st 4 columns counting binary, and the 5th column with the result for each combination of inputs

0000 F(0000)
0001 F(0001)
etc...
 
berkeman said:
You appear to have 4 inputs and one output. Make your table with 5 columns, with the 1st 4 columns counting binary, and the 5th column with the result for each combination of inputs

0000 F(0000)
0001 F(0001)
etc...

So what you are saying is set up 5 columns W,X,Y,Z than the last as F but how would I come about calculating the result that's what I am confused at.
 
Assume you had just 2 variables: X and Y, there would be 4 combinations for them:
(0,1), (1,0), (1,1), (0,0)

Let's assume your function was X and Y, so figure out what would T and T = ? T and F = ? , etc.
 
NoMoreExams said:
Assume you had just 2 variables: X and Y, there would be 4 combinations for them:
(0,1), (1,0), (1,1), (0,0)

Let's assume your function was X and Y, so figure out what would T and T = ? T and F = ? , etc.

Okay, but than what about if its an and/or the values would differ
For and:
X Y
T T T
T F F
F T F
F F F

For or:
X Y
T T T
T F T
F T T
F F F
 
Yes so you would have shown that X and Y is not logically equivalent to X or Y which you should've known.
 
I'll work with 1's and 0's. It's easier to read the symbols. As for evaluating the logic expression, you have to work with certain results from Boolean algebra.

Take this as an example:
Suppose the configuration from a particular line in your truth table is 1101 which is an ordered input for WXYZ. Then after substituting the Boolean values for W,X,Y,Z the Boolean expression becomes (0*1)(1*1)+(1+1)+(1+1) where * denotes AND and + denotes OR.

Evaluate this in order of parantheses:
(0*1) = 0, (1*1)=1, 1+1=1, 1+1=1

so it now becomes: 0*1+1+1 = 0+1+1 = 1.

So for that particular input configuration F=1. Now apply this method to all the other possible inputs for WXYZ and you have the truth table.
 

Similar threads

Replies
4
Views
5K
Replies
20
Views
3K
Replies
1
Views
1K
Replies
1
Views
2K
Replies
10
Views
3K
Back
Top