GATE Computer ScienceHardGATE CS
The majority function of five variables (f = 1 when at least three inputs are 1) is represented as a reduced ordered BDD with the natural variable order (the function is symmetric, so any order gives the same size). How many non-terminal nodes does it have?
- A. 9
- B. 10
- C. 15
- D. 11
Correct answer: A. 9
After reading k variables the only relevant information is the number of 1s so far (capped at the useful range), so each level holds only a few distinct nodes: 1, 2, 3, 2, 1 for the five levels, 9 in all.
More Digital Logic questions
- A PLA implements three functions of A, B, C, D (A is the MSB) with a shared AND plane: f1 = Σm(0, 1, 2, 3, 8, 9, 10, 11, 12); f2 = Σm(0…
- Two 2-input NAND gates G1 and G2 are used. Both inputs of G1 come from the signals a, b, c (the same signal may be used on both inputs)…
- A 5-bit Galois LFSR for the polynomial x⁵ + x² + 1 shifts right on each clock; whenever the bit shifted out (the LSB) was 1, the shifted…
- A synchronous 3-bit counter has next-state equations D2 = Q1 ⊕ Q0, D1 = Q2 and D0 = Q1' (state Q2 Q1 Q0). Let c be the number of states in…
- A ring of 6 combinational blocks with delays 4, 7, 3, 5, 2 and 6 ns has 3 registers that may be repositioned anywhere on the ring by…
- A transparent-high D latch and a rising-edge D flip-flop both receive the same D signal and clock. The clock is high during 0–10, 20–30…