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?

  1. A. 32
  2. B. 30
  3. C. 8
  4. 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

Exams that ask this topic