GATE Computer ScienceVery hardGATE CS
The function f = x1·x2 + x3·x4 + x5·x6 + x7·x8 is represented as a reduced ordered BDD with the variable order x1, x3, x5, x7, x2, x4, x6, x8. How many non-terminal (decision) nodes does it have?
- A. 32
- B. 30
- C. 8
- D. 16
Correct answer: B. 30
With the pairs adjacent the BDD has only 8 decision nodes, but with all first members of the pairs ahead of their partners it must remember which first inputs were 1. The level sizes are 1, 2, 4, 8, 8, 4, 2, 1 = 30 nodes. (32 would count the two terminal nodes.)
More Digital Logic questions
- 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…
- 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…