GATE Computer ScienceVery hardGATE CS (PYQ pattern)
F(A,B,C,D) = 1 when exactly two or exactly three of the four inputs are 1. How many literals does its minimal sum-of-products contain (fewest product terms first, then fewest literals)?
- A. 24
- B. 12
- C. 18
- D. 22
Correct answer: C. 18
The 1s are the 6 weight-2 and 4 weight-3 minterms. Each weight-3 minterm merges with weight-2 neighbours into a 3-literal term such as AB C' (the 0000 and 1111 cells are 0, so nothing larger exists). Every prime implicant has 3 literals and pairs one weight-2 minterm with one weight-3 minterm. Covering the 6 weight-2 minterms therefore needs at least 6 terms (each term holds only one of them), and 6 suffice: 6 × 3 = 18 literals. Exactly two alone needs 6 four-literal terms (24 literals).
More Digital Logic questions
- A 2-bit × 2-bit unsigned multiplier has inputs A1A0 and B1B0 and outputs P3P2P1P0. Each output is realised separately by its own minimal…
- A BCD-to-excess-3 converter has inputs A B C D (BCD digit 0-9, codes 10-15 are don't-cares) and outputs w x y z (excess-3 code, w the…
- In a BCD-to-seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) segment e is on for the digits 0, 2, 6, 8. When…
- In a BCD-to-seven-segment decoder (inputs A B C D, A the MSB; codes 10-15 are don't-cares) segment a is on for the digits 0, 2, 3, 5, 6…
- A ROM looks up the square of a 4-bit unsigned input (0 to 15), whose result has 8 bits. Some output bits are constant or are simply copies…
- A 13-input AND function is mapped onto 4-input look-up tables (LUT4). What is the minimum number of LUT4s, and the smallest logic depth…