Question

In: Computer Science

Obtain expressions for the exclusive-OR and the equivalence functions of two variables A and B.

Obtain expressions for the exclusive-OR and the equivalence functions of two variables A and B.

Solutions

Expert Solution

ANSWER :

The Exclusive-OR function is defined as a function which gives an output 1 whenever either A or B is 1, but gives an output 0 whenever A and B are both 1 or both 0.
The equivalence function of two variables A and B is defined as a function which gives an output 1 whenever both A and B are equal (both 1 or both 0), but gives an output 0 whenever A and B are unequal.
These two functions can be represented by a Truth Table as follows: If A and B are binary variables, they can be represented in 4 different ways, giving us the 4 rows in the Truth Table. The Truth Table is shown in figure 1.

We note from the Truth Table of fig. 1 that the exclusive-OR: and the equivalence functions are complements of each other. Also, from the Truth Table, we can write the equations:

a)Expressions for exclusive-OR

A × B = A' ∙ B + A ∙ B' . (This is a sum of products form of the expression obtained by considering entries of column 2 which are equal to 1). Also,

A × B = (A+B) • (A '+B') . (This is a product of sums form, obtained by considering entries of column two which are equal to 0.)

b) Expressions for Equivalence:

A ≡ B = A'∙B' + A∙B (Sum of products form)

A ≡ B = (A+B') • (A'+B). (Product of sums form)

We shall now realize the exclusive-OR and the equivalent functions, using a) NAND gates only, and, b) NOR gates only


Related Solutions

What are the major species present and equilibrium expressions at the half equivalence point, equivalence point,...
What are the major species present and equilibrium expressions at the half equivalence point, equivalence point, and 3/2 equivalence point in titrations with: 0.10 M NaOH and a) 0.1M HCl b) 0.1M CH3COOH c) 0.05M H3PO4 d) hl-mandelic
What are the equivalence classes for a ∗ b ∗ ? • How many equivalence classes...
What are the equivalence classes for a ∗ b ∗ ? • How many equivalence classes are there? • Make each one into a state and show how one can construct a minimal deterministic finite automaton from them. • Explain how to choose the start state and accepting states and how to draw the arrows. • The resulting automaton is minimal for this language. How about for {a n b n : n ≥ 0}? What are the equivalence classes?
use properties of natural exponential and logarithm functions to obtain: a. x^-a = 1/x^a b. (xy)^a...
use properties of natural exponential and logarithm functions to obtain: a. x^-a = 1/x^a b. (xy)^a = (x^a)(y^a) c. 1^a = 1 d. x^(a+b) = (x^a)(x^b) e. (x^a)^b = x^ab = (x^b)^a
Electromagnetic theory 2 (a) Obtain the expressions for Ex and Ey for the transverse electric case...
Electromagnetic theory 2 (a) Obtain the expressions for Ex and Ey for the transverse electric case and show that they satisfy the condition Ell *= 0 on the boundary. (b) A rectangular metallic waveguide has dimensions, a = 3.0 cm and b = 4.0 cm. Find out the modes (TE and TM) in which a free space wavelength of 4.5 cm could propagate through it. (c) A waveguide has an inside dimension of 6cm x 1cm. Find the first 3...
10. Obtain the expressions of electric and magnetic fields by performing the mode analysis for TM...
10. Obtain the expressions of electric and magnetic fields by performing the mode analysis for TM mode in two-side triangular cross-section transmission pipes. Find the attenuation for the dominant mode.
Identify the equivalence point on the titration curve shown here. A is the equivalence point B...
Identify the equivalence point on the titration curve shown here. A is the equivalence point B is the equivalence paint C is the equivalence point pH D is the equivalence point   Define the end point of a titration. It is the point at which the pH no longer changes. It is when a change that indicates equivalence is observed in the analyte solution. It is a synonym for equivalence point.
In the following expressions say which, if any, variables are bound (and to which λ), and...
In the following expressions say which, if any, variables are bound (and to which λ), and which are free. λs.s z λq.s q (λs. s z) λq. w λw. w q z s (λs.s) (λq.qs) λz. (((λs.sq) (λq.qz)) λz. (z z))
An operation * is defined for two-valued variables a and b as follows: a*b = ab+a’b’
An operation * is defined for two-valued variables a and b as follows:     a*b = ab+a’b’Let c = a*b. Determine which of the following identities are valid:a = b*ca*(bc) =1
A firm sells in two separate markets, A and B. The demand functions in the two...
A firm sells in two separate markets, A and B. The demand functions in the two Markets are: Qa=4,000-50Pa and Qb=3,200-160pB. The total Marginal revenue function is: 1. MRT=_____________________ 2. If the firm wants to produce 3,200 units of output, in order to maximize revenue from this output it should produce_____units in plant A and_____units in B. 3. The firm wishes to practice price price discrimination. The firm's marginal cost functions is MC=12.58+0.004Qt a. To Maximize profit the firm would...
A firm is considering two mutually exclusive projects, A and B. The projects are different in...
A firm is considering two mutually exclusive projects, A and B. The projects are different in that they have different returns depending on general economic conditions. The firm forecasts that return on the market, and the returns on each project, along with their associated probabilities will be given by the following table. You can assume a 5% risk free rate and a 6% market risk premium. Assume the CAPM holds. Compare the expected returns to the cost of capital for...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT