תכן לוגי מתקדם- פתרון תרגיל בית 2 - 2012
תכן לוגי מתקדם- פתרון תרגיל בית 2 - 2012
תכן לוגי מתקדם- פתרון תרגיל בית 2 - 2012
f ( x1 , x 2 , x3 ) = ( x 2 ~ x3 ) ( x1 x 2 ).
f ( x, y ) = x y = x + y = x + y f
6) Let f be a parity function of n variables. Show that the number of true minterms is 2 n 1
9) Prove that there are 2n+1 symmetric functions of n variables. (n+1 work number ) n+1 .... , , 0 ) ) n+1 , : n+1 . 2 , 10) Which of the following are monotone functions?
a )..xy xz x z; b)..x ( x y ),
c)( x y ) ~ ( x y );
n+1 ( (
n-
d ).x y ~ x y; e) xy x x z; f ) xy yz xz
11) In order to make a universal set, what kind of function should be added to the function f = xy z ?
12) Show that f and fd , the dual function of f, belong to the same NPN-equivalence class. . f ( x1 ,...xn ) NPN class
f ( x1 ,...xn )
13) Enumerate all the three-variable functions that belong to the following equivalence classes: a) An NP-equivalence class containing by xy yz zx; b) An NPN-equivalence class containing by xy yz zx; 8 8
x y z;
n:.
x y z )majority
( n1)
x1 x2 + x2 x3 + x1 x3 (
36 2 8
15)Which if the following functions belong to the same NPN class? f1 = a ' b ' d '+ a ' c ' d '+ a ' bd + bc ' d
f 2 = a ' b ' d '+ a ' c ' d '+ a ' bc '+ a ' bd + bc ' d f 3 = a ' d + a ' bc + ac '+ bcd f 4 = bc '+ abd + a ' b '+ c ' d f 5 = a ' b ' d '+ a ' bc '+ acd + a ' c ' d ' f 6 = a ' b ' d '+ abc ' d '+ ab ' c ' d + a ' b ' c + a ' bc ' d
y1 = ab ' c + abd + b ' c ' d + ac ' d '+ acd y2 = (a + b + c + d ) ( ab + ac + ad + bc + bd + cd ) abc + abd + acd + bcd + abcd y3 = ab (c + d ) cd (a + b)
))
) (
17) find RM expansion with positive polarity for the following function f = abd + abd '+ a ' cd
f = abd + abd '+ a ' cd = abd abd ' abdabd '+ a ' cd = abd abd '+ a ' cd = abd abd ' a ' cd (abd abd ')a ' cd = abd abd ' a ' cd