answersLogoWhite

0


Best Answer

A truth table is used to simplify complex logic expressions, showing outputs for all possible inputs.

For the following examples, please forgive formatting. I've not yet learned how to make proper tables in plaintext.

Logical operations and their associated symbols:

* A OR B -- A + B

* A AND B -- A & B * A XOR B -- A ^ B * NOT A -- ~A * TRUE -- 1 * FALSE -- 0

A simple example with two variables. Evaluates the following boolean expression: A + B

A | B | A + B

----------------

0 | 0 | 0

0 | 1 | 1

1 | 0 | 1

1 | 1 | 1

Note how the first two columns correspond to the two inputs. Also note how the rows under those two columns show all possible combinations of inputs.

The next column shows our expression. In each row we use the inputs to find the output for the expression.

Of course, we could have figured all this out just by looking at the expression. So let's look at one that's a little more complex.

(A + B) & C

This one isn't as intuitive. So let's split it up. First we'll evaluate the A + B part the same way we did last time. Then we'll combine that information to evaluate the whole expression.

| A | B | C | A + B | (A + B) & C

|------------------------------------

| 0 | 0 | 0 | _ 0 _| 0

| 0 | 0 | 1 | _ 0 _| 0

| 0 | 1 | 0 | _ 1 _| 0

| 0 | 1 | 1 | _ 1 _| 1

| 1 | 0 | 0 | _ 1 _| 0

| 1 | 0 | 1 | _ 1 _| 1

| 1 | 1 | 0 | _ 1 _| 0

| 1 | 1 | 1 | _ 1 _| 1

So this expression will evaluate to true when given the inputs (0, 1, 1), (1, 0, 1), and (1, 1, 1).

By now you should be getting the hang of it. Use the earlier (simpler) parts of the truth table to evaluate the later (more complex) parts.

One more example for the sake of completeness.

~((A + B) ^ (B & C))

| A | B | C | A + B | B & C | (A + B) ^ (B & C) | ~((A + B) ^ (B & C))|

|---------------------------------------------------------------------------------|

| 0 | 0 | 0 | _ 0 _ | _ 0 _ | ______ 0 _____ | 1

| 0 | 0 | 1 | _ 0 _ | _ 0 _ | ______ 0 _____ | 1

| 0 | 1 | 0 | _ 1 _ | _ 0 _ | ______ 1 _____ | 0

| 0 | 1 | 1 | _ 1 _ | _ 1 _ | ______ 0 _____ | 1

| 1 | 0 | 0 | _ 1 _ | _ 0 _ | ______ 1 _____ | 0

| 1 | 0 | 1 | _ 1 _ | _ 0 _ | ______ 1 _____ | 0

| 1 | 1 | 0 | _ 1 _ | _ 0 _ | ______ 1 _____ | 0

| 1 | 1 | 1 | _ 1 _ | _ 1 _ | ______ 0 _____ | 1

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define truth table and how to create one?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the disadvantages of truth table?

One of the disadvantages of using truth tables is


Who do transcendentalists define truth?

How Do Transcendentalists Define Truth answer 2. How a transcendentalist define truth will come to know only when you become so. But in Buddhism a transcendentalist will define a set of relative truths as per our capacity and then keep on rising the quality of that relative truth as we grow in to that path. One day suddenly you will come to know the real truth. Truth is importantly a feeling or experience which is tough to reach. Though truth is visible everyday and every time in the physical aspects , but it helps only when it is seen by the inner most reality of our existence.


Which one is a system privilege a select b delete c execute d alter table e create table?

Create table


How can one create tables in Oracle?

If one is wanting to create a table in Oracle one must use the "Create Table" statement. These tables are partially defined by the columns contained and the information in the column. One must first decide the proper column type and then these data types are used in the Create Table statement. One must be somewhat familiar with Oracle in order to create these tables and additional information can be found on the DBA-Oracle website.


To what extent is truth different in mathematics the arts and ethics?

the truth is different in all three. you maybe thinking that the truth in art and ethics is the same but it isn't. the truth in ethics is what you belive, which most of the time will not harm anyone else. it is what you belive and execute that shows your ethics and that defines who you are. the truth in arts is that there is no truth it is absolute and there will nver be a truth, there might be a truth of how it was made or where it came from but the real art has no truth it comes from the feelings and the mind of the creator we can assume thins and give it our own perception but there will never be only one truth. the truth in mathematics is that it is all proved. all the formulas are derived and all sums are solved before we solved them. the only thing we can question is the origin of maths and if that has solid and secure. i hoped these small tips helped. -define mathematics -define arts -define ethics -define truth -your opinion about(with persoal experiences): truth in arts truth in ethics truth in mathematics and your TOK essay will be graded as A. :)


What is a relation as used in database design?

When you create a relation (Relationship) within an DBMS you are establishing a relationship of a field in one table to a field another table. Example. We Have a table Customers CustomerID FirstName LastName StatusID The sample fields above are for table Customers Now the StatusID is an INT field and we need to define a relationship between this field and the StatusID column in the Status table StatusID StatusDescription isActive Above are examples of the Status table. To complete our example here we will create a relationship that looks as follows: Customers->StatusID ---> Status->StatusID


Is it true that no one has actually said the truth on Wikianswers and has only answered by what they think is true?

true! But to really understand that answer, you must first define what truth is for you. Most people will agree that there is no such thing as an universal truth.


How would you define truth and how would you distinguish it from opinion?

Truth is a fact that can be proven one way or another and opinion is what someone thinks about something but someone else might disagree


What table tag sets off the table header?

<th> can be used to indicate a table header cell. <thead> is used to define a header area which could consist of one or more rows.


How many non collinear points are needed to create a plane?

To create a plane, infinitely many. But to uniquely define one, 3 are enough.


How do they define truth?

"They" define truth as not speaking things that are not true and not doings things that make people think a false premise. Truth is defined in a number of ways; something based on the actual fact of the matter, conformity to reality, a verified and indisputable fact, the state of being true, an obvious accepted fact, ideal or fundamental reality, fidelity or constancy.


How can one create their own power league table?

One can create their own power league table online at the Power League website. One needs to simply go to the website, register, and then either join a league or create one's own league. Power League will generate tables based on the votes from the league.