Question

Let SS denote the set of all functions f:{0,1}4→{0,1}f: \{0,1\}^4 \to \{0,1\}. Denote by NN the number of functions from SS to the set {0,1}\{0,1\}. The value of log⁡2log⁡2N\log_2 \log_2 N is ______.

Official answer and solution
Official answer
16
From
Official GATE 2014 answer key

Solution

Determine the cardinality of the function spaces step by step using the formula ∣BA∣=∣B∣∣A∣|B^A| = |B|^{|A|}.

  1. The domain of functions in SS is {0,1}4\{0, 1\}^4, which has size:

    ∣{0,1}4∣=24=16|\{0, 1\}^4| = 2^4 = 16
  2. The set SS consists of all functions from {0,1}4\{0, 1\}^4 to {0,1}\{0, 1\}:

    ∣S∣=216|S| = 2^{16}
  3. NN is the number of functions from SS to {0,1}\{0, 1\}:

    N=2∣S∣=2216N = 2^{|S|} = 2^{2^{16}}
  4. Taking the base-2 logarithm of NN:

    log⁡2N=216\log_2 N = 2^{16}
  5. Taking the base-2 logarithm again:

    log⁡2log⁡2N=log⁡2(216)=16\log_2 \log_2 N = \log_2 (2^{16}) = 16

Thus, the value of log⁡2log⁡2N\log_2 \log_2 N is 16.

Final answer

16

Common trap

Computing log⁡2N=216=65536\log_2 N = 2^{16} = 65536 and forgetting to take the second log⁡2\log_2.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 1
Question
60 of 65, printed as CS Q.50
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.