Truth table to equation question (comp Sci)

In summary, for part a, the solution is F1 = x⊕y (XOR) and F2 = x .y (AND). For part b, you can implement xy' and x'y with NAND gates and use DeMorgan's law to get an OR gate with inverted inputs.
  • #1
dancingmaple
1
0

Homework Statement


http://imgur.com/BSntip0

The Attempt at a Solution



for part a, i got the solution to be F1 = xy'+x'y= x⊕y (XOR) , F2 = x .y (AND)

for part b i don't understand how i would derive an equal equation that uses only NAND which is (xy') and inverter which is x'
 
Physics news on Phys.org
  • #2
You can start by implememting xy' and x'y with AND gates and their sum with an OR gate. So you have two ANDS feeding an OR. Now on each line connecting an AND with the OR, put two bubbles, one on the AND output and the other on the OR input. The two bubbles are cancelling inverters, but they make the ANDS into NANDS and you have an OR gate with inverted inputs. What does DeMorgan's law tell you that makes?
 

Related to Truth table to equation question (comp Sci)

What is a truth table?

A truth table is a mathematical table used in logic to determine the truth values of logical expressions. It displays all possible combinations of inputs and their corresponding outputs in a clear and organized manner.

How is a truth table used to create an equation?

A truth table helps to identify the patterns and relationships between the inputs and outputs of a logical expression. By analyzing these patterns, an equation can be derived that represents the logic of the expression.

What are the basic components of a truth table?

A truth table consists of columns representing the inputs or variables, and rows representing the different combinations of inputs. The final column represents the output or result of the logical expression.

What is the importance of a truth table in computer science?

Truth tables are essential in computer science as they help to understand the logical operations and decision-making processes used in programming. They are also used in circuit design and verification, and in creating efficient algorithms.

Are there any limitations to using a truth table?

Truth tables can become very large and complex for expressions with multiple inputs. This can make it difficult to identify patterns and derive equations. In these cases, other methods such as Karnaugh maps may be more useful.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
15
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
20
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
Back
Top