GATE / CS ARCHIVE

GATE CSE 2014 SET 1 / QUESTION 50

GATE CSE 2014 Set 1 Q50

Discrete Mathematics · Sets, Relations & Functions · Full GATE CSE 2014 Set 1 paper

GATE 2014 Set 1, Q50 2 marks · NAT
Report issue

Sets, Relations & Functions

Question 50, GATE 2014: Let S be the set of functions f:{0,1}⁴→{0,1}. Let N be the number of functions from S to {0,1}. Find log₂(log₂ N).
Tap to enlarge
Answer & solution

Official answer: 16

1. Method and setup. For a function from an m-element domain to {0,1}, each input independently chooses one of two outputs, so there are 2ᵐ functions. Apply this rule twice: first to the sixteen four-bit inputs, then to the resulting set of Boolean functions. Keep the two exponentiation levels distinct before taking logarithms.

2. Work through the result and its assumptions. The domain{0, 1}^4 has 16 elements, so S contains 216 Boolean functions. The number of functions from S to{0, 1} is N=22^16. Therefore log2(log2 N)=16.

Original paper, page 20 · Answer key