• retagged by
19,845 views
84 84 votes

Let ܵ$S$ denote the set of all functions $f:\{0,1\}^4 \to \{0,1\}$. Denote by $N$ the number of functions from S to the set $\{0,1\}$. The value of $ \log_2 \log_2N $ is _______.

9 Answers

Best answer
127 127 votes
For a function from set $A$ to set $B$, we need to have a mapping for all elements of $A$ and mapping must be unique.
Let number of elements in $A$ be $m$ and that in $B$ be $n$

So, if we consider an element from $A,$ it can be mapped to any of the element from $B.$ i.e., it has $n$ possibilities when a function is formed. Similarly, for all other members also there are $n$ possibilities as one element from $A$ can be mapped to  only a single element in $B$ (though reverse need not true). So, for $m$ elements in $A,$ we totally have $\underbrace{n \times \dots \times n}_{m \text{ times}} = n^m$ possible functions.

In the question Number of elements (functions) in $f$ is $2^{2^4}$ as $\{0,1\}^4$ contains $2^4$ elements. So, number of functions from $S$ to $\{0,1\}$ will be $2^{2^{2^4}}$. So, $\log_2 \log_2 N = 2^4 = 16.$
• edited by
25 25 votes

If anybody wondering why it is 2^2^16 and not just 2^16, here is explanation.

From above two answer number of functions are 2^16 .{f1 , f2 , f3 , f4, ...............f2^16}

And if you read question carefully they asking number of functions from S to the set {0,1}

and set S is .{f1 , f2 , f3 , f4, ...............f2^16} which has to mapped to set {0, 1}

Therefore answer is 2^2^16.

I have written this answer according to my understanding , please correct me if i am wrong

4 4 votes
$f:\{{0,1}\}^4→\{0,1\} $

$\{0,1\}^4$ contains total $24$ elements  

so $16$ elements and S will be $[co-domain]^{domain}  = 216$

$\text{N is S to } \{0,1\} \text { so } 2^{216}$

$log_2log_2N  = 16$
• edited by
Answer:
Position:
Show:

Related questions

78 78 votes
11 answers 11 answers
33.6k
33.6k views
go_editor asked Sep 28, 2014
33,632 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
7 7 votes
2 answers 2 answers
5.8k
5.8k views
go_editor asked Jul 1, 2016
5,843 views
Let $\text{A}$ be a finite set having $x$ elements and let $\text{B}$ be a finite set having $y$ elements. What is the number of distinct functions mapping $\text{B}$ int...
92 92 votes
17 answers 17 answers
23.1k
23.1k views
go_editor asked Sep 28, 2014
23,143 views
A pennant is a sequence of numbers, each number being $1$ or $2$. An $n-$pennant is a sequence of numbers with sum equal to $n$. For example, $(1,1,2)$ is a $4-$pennant. ...
43 43 votes
5 answers 5 answers
14.5k
14.5k views
gatecse asked Sep 15, 2014
14,542 views
When a point inside of a tetrahedron (a solid with four triangular surfaces) is connected by straight lines to its corners, how many (new) internal planes are created wit...