Answer: Use two 4-variable K-maps, one for A=0 (minterms 0-15) and one for A=1 (16-31), with B,C,D,E as map variables. Select these five prime implicants: (1) BC′ covers 8,9,10,11 and 24,25,26,27; (2) A′BE covers 9,11,13,15; (3) A B D covers 26,27,30,31; (4) AC′E′ covers 16,18,24,26; (5) AB′CD′E covers the isolated minterm 21. Their union is exactly {8,9,10,11,13,15,16,18,21,24,25,26,27,30,31}.
Minimising logic with a Karnaugh map. A Karnaugh map is a grid representation of a truth table arranged so that cells which differ in only one variable are physically adjacent, including the wraparound from the last column to the first and from the last row to the first. A four variable function uses sixteen cells labelled by Gray code, where consecutive labels change in one bit only. Each minterm given in the sum of products is marked with a one, and each don't care term is marked with a dash because it may be used as either zero or one. Groups are then formed of two, four, eight or sixteen adjacent cells, always a power of two and always rectangular. Larger groups eliminate more variables, so the goal is the fewest possible groups and the largest possible size. Don't care cells are used only when they enlarge a group and may be left unused. For each group, variables that take both values within the group cancel, while variables that remain constant appear in the product term, in complemented form when the constant is zero. The sum of these product terms is the minimized function. A practical example with ones at minterms one, two, four, six, nine, ten, eleven, twelve, thirteen, fourteen and fifteen yields a small set of groups whose terms cover every one and no zero. A good answer draws the map, labels rows and columns with Gray code, marks ones and don't cares, circles the groups and writes the resulting Boolean expression. It should then implement that expression with AND, OR and NOT gates or with universal gates. Mentioning that Karnaugh maps are convenient up to about five variables but become unwieldy beyond that explains when the Quine McCluskey method is preferred.
Result: F=BC′+A′BE+ABD+AC′E′+AB′CD′E, with A the MSB and E the LSB.
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.