GATE Computer ScienceVery hardGATE CSE
A function is unate if, for each variable, it is either monotone increasing or monotone decreasing in that variable (a variable it ignores counts as both). How many of the 256 Boolean functions of three variables are unate?
- A. 20
- B. 110
- C. 104
- D. 90
Correct answer: C. 104
A function is unate iff it becomes monotone after complementing some inputs; checking all 8 polarity vectors over 256 functions gives 104 (only 20 are monotone as they stand).
More Digital Logic questions
- A threshold function is f(x) = 1 iff w1·x1 + w2·x2 + w3·x3 ≥ T for some real weights and threshold. How many of the 256 Boolean functions…
- How many Boolean functions of 4 variables are both monotone (non-decreasing in every variable) and self-dual (f(x̄1,…,x̄4) = complement of…
- Five states of a sequential machine are encoded with distinct 3-bit codes. Two assignments are considered equivalent if one can be…
- A 3-bit Gray-code sequence lists all 8 codes exactly once, with consecutive codes differing in exactly one bit (the last need not be…
- A 3-bit synchronous circuit of D flip-flops has D2 = Q1, D1 = Q0 ⊕ Q2, D0 = NOT(Q2 · Q1). Starting from Q2Q1Q0 = 010, how many distinct…
- A Mealy machine has states A–G with (next state / output) entries for inputs 0 and 1: A: B/0, C/0; B: A/0, D/0; C: E/0, F/1; D: E/0, F/1…