
Respuesta :
Answer:
a) [tex](\frac{}{x} .x_{1}.x_{0} ) + x_{2} .x_{1}.x_{0} + (x_2.\frac{}{x}x_{0})[/tex]
b) (ββ.ββ.ββ) + (ββ.β»ββ.ββ) +(β»ββ.ββ.β»ββ) + (β»ββ.β»ββ.ββ)
c) β»xβ
d) xβ
note β»x is the same as [tex]\frac{}{x}[/tex]
Explanation:
X contains only one 0
This means that either [tex]x_{2},x_{1}, or x_{0}[/tex] must be 0. Lets assume that [tex]x_{2} = 0[/tex]
then [tex]x_{1} = 1[/tex] and [tex]x_{0} = 1[/tex].
Therefore [tex]\frac{}{x} .x_{1}.x_{0} = 1[/tex]. lets apply the same reasoning for cases
[tex]x_{1} = 0[/tex] and [tex]x_{0} = 0[/tex]. Thus if X contains only one 0,
[tex](\frac{}{x} .x_{1}.x_{0} ) + x_{2} .x_{1}.x_{0} + (x_2.\frac{}{x}x_{0})=1[/tex].
On the other hand, if the above equality holds, then one of the "addends" must be 1. if [tex]\frac{}{x} .x_{1}.x_{0} = 1[/tex], we must have [tex]x_{0} = 1[/tex], [tex]x_{1} = 1[/tex] and [tex]\frac{}{x_{2} }[/tex] = 1, so [tex]x_{2} = 0[/tex]
therefore x contains only one 0.
proceeding similarly to other case.
The required logic function is [tex](\frac{}{x} .x_{1}.x_{0} ) + x_{2} .x_{1}.x_{0} + (x_2.\frac{}{x}x_{0})[/tex]
X contains even number of zeros
x has 3 digits, so x contains even number of zeros if and only if it contains 0 zeros or 2 zero.
suppose that it contains 0 zeros. Then [tex]x_{2} =x_{1} =x_{0} = 1[/tex] so [tex]x_{2} .x_{1} .x_{0} = 1.[/tex]
suppose that x contains 2 zeros then it contains exactly 1 one, similarly to the first subtask we conclude that then we have
(ββ.β»ββ.β»ββ)+(β»ββ.ββ.β»ββ)+(β»ββ.β»ββ.ββ) = 1
so if x contains even numbers of zeros then
(ββ.ββ.ββ) + (ββ.β»ββ.ββ) +(β»ββ.ββ.β»ββ) + (β»ββ.β»ββ.ββ) = 1
now suppose that the above equality holds, then at least one of the addends must be 1. if (ββ.ββ.ββ) = 1 Β we have ββ = ββ = ββ = 1
so x contains even numbers of zeros. If ββ.β»ββ.β»ββ = 1 we must have xβ = β»xβ= β»xβ = 1, so xβ = 1, xβ = 0, xβ = 0. So x contains even number of zeros similarly for the other addends.
Therefore we can conclude that the required logic function is
(xβ.xβ.xβ) + (xβ.β»xβ.β»xβ) + (β»xβ.xβ.β»xβ) + (β»xβ.β»xβ.xβ)
x interpreted as and unsigned integer is less that 4
using the properties of the binary base, we know that x < 4 if and only if xβ = 0. So x < 4 if and only β»xβ = 1, thus the required logic function is β»xβ
x interpreted as a signed integer is negative
using the definition of two complement it is easy to see that x is negative if and only if xβ=1, so therefore the required logic function is xβ.
Note β»x is the same as [tex]\frac{}{x}[/tex]