• retagged by
16,771 views
54 54 votes

What is the maximum number of different Boolean functions involving $n$ Boolean variables?

  1. $n^2$
  2. $2^n$
  3. $2^{2^n}$
  4. $2^{n^2}$

4 Answers

Best answer
63 63 votes
answer - C

size of domain = number of different combinations of inputs  $=2^{n}.$

size of codomain $= 2 ( \{0,1\} ).$

number of functions $= \text{(size of co-domain)}^{\text{(size of domain)}}$
• edited by
36 36 votes

With n boolean variables total number of rows in the truth table = 2^n

Each row of truth table can be taken or not taken (only 2 choices) .

So, maximum no of different boolean functions possible = 2^(2^n)

The correct answer is,(C) 2^(2^n).

21 21 votes
We know that a K-map is used to represent and simplify a boolean function. Given 'n' no. of boolean variables, number of cells in the K-map is 2^n. Now each cell has two options. Either 1(True) or 0(False) [in case of SOP]. Different combinations of cells each having value=1 will give generate different functions (which later can be simplified but that is not our concern here). So in that way total number of functions will be 2^(2^n).
• edited by
7 7 votes

The number of m-ary functions in p-valued algebra having n-variables is given by $m^{p^{n}}$

Here, m = 2 (boolean functions), p = 2 (boolean variables) and n = n (number of variables)

So, total functions = $2^{2^{n}}$

 Alternative approach :

With n boolean variables, we can have ${2^{n}}$ combinations for functions. And now since each of these is designed to be a boolean function, it's output value can be either 1 or 0, i.e. 2 choices for each function. So total such functions = $2^{2^{n}}$

Answer:
Position:
Show:

Related questions

43 43 votes
6 answers 6 answers
17.0k
17.0k views
Kathleen asked Sep 23, 2014
17,012 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above
51 51 votes
6 answers 6 answers
13.6k
13.6k views
Misbah Ghaya asked Nov 29, 2016
13,571 views
How many substrings (of all lengths inclusive) can be formed from a character string of length $n$? Assume all characters to be distinct, prove your answer.
51 51 votes
8 answers 8 answers
17.5k
17.5k views
Kathleen asked Sep 14, 2014
17,474 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...
58 58 votes
7 answers 7 answers
18.1k
18.1k views
go_editor asked Apr 23, 2016
18,113 views
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit right, i.e., if it is at $(i,j)$ then it can move...