Académique Documents
Professionnel Documents
Culture Documents
f = x1 x2 x3 + x2 x3 x4 x1 x2 x3 x4
0 0 0 0
0 0 0 1
* Determine positive 0 0 1 0
function 0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0 False
f = x1 x2 x3 + x2 x3 x4 0 1 1 1 True (Minimum)
1 0 0 0
1 0 0 1 f = x1 x2 x3 + x2 x3 x4
* Find all Minimum True and Maximal 1 0 1 0
False vertices. 1 0 1 1 False
1 1 0 0
1 1 0 1 False
1 1 1 0 True (Minimum)
Two Minimum true p = Number of Mini-
vertices mum True vertices
0 1 1 1 q = Number of Maxi-
1 1 1 0 mum False vertices
Three Maximal False vertices * For each pair of vertices A ( a1, a2,...,
an) and B ( b1, b2, ..., bn) where a and b
1 1 0 1 are respectively Min. True and Max.
1 0 1 1 False vertices, write the inequality
0 1 1 0 a1 w1 + a2 w2 +...+ an wn > b1 w1 + b2 w2
+...+ bn wn
In the example, f = Σ ( 0, 1, 3, 4, 5, 6, 7,
12, 13)
inputs x3 and x4
f = x1 x2 + x1 x4 + x2
appear in f in compli x3 + x1 x3
Cascade Realization
x1x2
x3x4 00 01 11 10
00 1
f( x1, x2, x3, x4) = Σ ( 2, 3, 6, 7, 10, 12, 14,
01
15)
11 1
1 11
Plot on 4 -variable K - Map to find out 1 1
10 1 1
whether the function is unate or not.
Unate means it has a common impli-
cant.
* f is not unate
h ( x1, x2, x3, x4) = Σ
* We have to synthe- (10, 12, 14, 15)
size it as a cascade
of two threshold
elements.
g( x1, x2, x3, x4) = Σ ( 2, 3, 6, 7,15) The weight - threshold vector for the
function h is
The weight - threshold vector for the Vh = ( 2, 1, 1, -1; 2.5)
function g is
Vg = ( -2, 1, 3, 1; 2.5)
the minimal
x1 -2
x1 2 weighted sum must be larger than the
1
x2 g x2 h
1 2.5
2.5
3 x3 1
f
threshold of the second element.
x3
1 -1
x4 * Negative values affect the most.
wg + 0 > 5/2 is the
x1 x2 x3 x4 Sum of wts vital case
0 0 1 0 wg + 1 > 5/2 wg > 5/2
0 0 1 1 wg + 0 > 5/2 wg = 3
0 1 1 0 wg + 2 > 5/2
0 1 1 1 wg + 1 > 5/2 wg = 3
1 0 1 0 wg + 3 > 5/2
1 1 0 0 wg + 3 > 5/2 * This is the minimum weighted sum.
1 1 1 0 wg + 4 > 5/2
1 1 1 1 wg + 3 > 5/2 So wg is calculated from this.
* As a general rule
f( x1, x2, x3, x4) = Σ (
weight of wg should 3, 5, 7, 10, 12, 14, 15)
x1x2
* We have to synthe-
x3x4 00 01 11 10 size it as a cascade
1
00 of two threshold
01
1
elements.
11 1 11
1 g( x1, x2, x3, x4) = Σ ( 3, 5, 7,15)
1 1
10
The weight - threshold vector for the
function g is
Vg = ( -1, 1, 1, 2; 2.5)
x1 x1 2
-1
1
The weight - threshold vector for the x2 1 g x2 h
2.5 2.5
function h is 1
3.5
x3 1
f
x3
Vh = ( 2, 1, 1, -1; 2.5) 2 -1
x4
wg = 3.5
g
f (x1,x2,x3,x4) = x1 x2
x3x4
(2, 3, 6, 7, 8, 00 01 11 10
9, 13, 15) 00
01 1 1 1
11 1 1
h fg = x2 x3 x4+ x1 x3
x1x2 To make it positive and
x3 x4 00 01 11 10
1
ordered, compliment x1
00
01 1 1 fg = x2 x3 x4+ x1 x3
11
10
fh = x1 x3 x4+ x1x2 x3
fg = x2 x3 x4+ x1 x3 w1 = 2
w2 = 1
Min True vertices : w3= 3
0111, 1010 w4 = 1
Max False vertices : T = 4.5-2= 2.5
0011, 0110, 1101
With x2 and x3
fh = x1 x3 x4+ x1x2 x3 complimented
Min True vertices : h = ( 2,-1, -2, 1; 1.5)
1011, 1110
Max False vertices : wg > 1.5 - ( -1 -2)
0111, 1010, 1101 > 4.5
Solving for inequalities,
we get x1 -2 x1 2
-1
w1 = 2, w2 =1, x2 1 g x2 1.5 h
2.5
w3 = 2, w4 = 1 x3
3
x3 -2
1
T = 4.5 1
x4