15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 298<br />

# A B C D V<br />

0 F F F F F<br />

1 F F F T F<br />

2 F F T F F<br />

3 F F T T F<br />

4 F T F F F<br />

5 F T F T F<br />

6 F T T F T<br />

7 F T T T F<br />

8 T F F F T<br />

9 T F F T T<br />

10 T F T F T<br />

11 T F T T T<br />

12 T T F F T<br />

13 T T F T T<br />

14 T T T F T<br />

15 T T T T F<br />

The corresponding KV-map:<br />

AB AB AB AB<br />

CD F F T T<br />

CD F F T T<br />

CD F F F T<br />

CD F T T T<br />

in the red/brown group<br />

A does not change, so include A<br />

B changes, so do not include it<br />

C does not change, so include C<br />

D changes, so do not include it<br />

So the monomial is A C<br />

in the green/brown group we have A B<br />

in the blue group we have B C D<br />

The minimal polynomial for E(6, 8, 9, 10, 11, 12, 13, 14) is A B + A C + B C D<br />

KV-maps Caveats<br />

c○: Michael Kohlhase 171<br />

groups are always rectangular of size 2 k (no crooked shapes!)<br />

a group of size 2 k induces a monomial of size n − k (the bigger the better)<br />

groups can straddle vertical borders for three variables<br />

groups can straddle horizontal and vertical borders for four variables<br />

picture the the n-variable case as a n-dimensional hypercube!<br />

c○: Michael Kohlhase 172<br />

89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!