



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




ECE 474a/575aSusan Lysecky 2 of 14
Calculated all prime implicants to derive the optimal solution(s) Petrick’s Method derives all covers to determine minimum cover set(s) Number of prime implicants grow quickly -- solution space is huge! Finding the minimum cover set in a class of NP complete problems
Look at generating a quality solution quickly (not necessarily optimal)
ECE 474a/575aSusan Lysecky 3 of 14
K-maps (Graphical) Quine-McCluskey (Exact Algorithm) Espresso (Heuristic)
Branch-and-bound Simulated Annealing Dynamic Programming many more exists … ze
ECE 474a/575aSusan Lysecky 4 of 14
This technique is called a algorithm local search
Search space or solution space - set of allpossible values and cost associated with solution Start with an initial value Search all points in neighborhood for a feasiblepoint whose cost is less than current
cost of a solution
possible solutions
x
F(x)
ECE 474a/575aSusan Lysecky 7 of 14
Deleting one (or more) of itsliterals Check for validity
Fa (^) bc ab
Fa bc abc
Fa (^) bc (^000 011 110 100) bc 0 0
Fa (^) bc abc
ECE 474a/575aSusan Lysecky 8 of 14
00 01 11 10 1 0 0 1 0 X
Fa bc^ a’b’c’
Expand a’b’c’ by removing a’Is it valid? Yes.
(^01 0011 0110 1100 101) X
Fa (^) bc^ b’c’
Expand b’c’ by removing b’Is it valid? Yes. (^001 011 110 ) 1 0 0 1 0 X
Fa (^) bc^ c’
c’ is an prime implicant
ECE 474a/575aSusan Lysecky 9 of 14
Adding one or more literals Check for validity 1 1 1 1
Fa (^) bc a’b’ (^001 011 111 ) 0 0
Fa bc a’
Fa (^) bc a’c (^001 011 111 ) 0 0
Fa (^) bc a’
ECE 474a/575aSusan Lysecky 10 of 14
(^000 011 111 ) 1 1 0 1 0 1
Fx (^) yz^ x’z^ x’y
xy’ xz’
Reduce x’y to x’yz’
No implicant can be expanded Is it valid? Yes. (^000 011 111 ) 1 1 0 1 0 1
Fx (^) yz^ x’z^ x’yz’
xy’ xz’
Is it valid? Yes.Reduce xz’ to xyz’
Is it valid? Yes.Expand x’yz’ to yz’
(^01 0001 0111 1110 )
Fx (^) yz^ x’z
xy’ yz’
F = x’z + yz’ + xy’ Reduction helped find a bettersolution!
(^000 011 111 ) 1 1 0 1 0 1
Fx yz^ x’z^ x’yz’
xy’ xyz’
ECE 474a/575aSusan Lysecky 13 of 14
Fa bc (^0 1 0 0) ab
Fa bc abc
(^000 011 110 ) 0 0
Fa (^) bc
Fx yz^ x’z^ x’y
xy’
yz’ xz’
ECE 474a/575aSusan Lysecky 14 of 14
espresso(F,D) { R = complement(F U D); F = expand(F,R); // initial expansion F = irredundant(F,D); // initial irredundant cover E = essentials(F,D); // detect essential prime implicants F = F – E; // remove prime implicants from f D = D U E; // add essential prime implicants to D repeat { φ 1 = |F |; F = reduce(F,D); F = expand(F,R); F = irredundant(F,D); } until (|F | ≥ φ 1 ); F = F U E; D = D – E; RETURN F; }