54 54 votes What is the maximum number of different Boolean functions involving $n$ Boolean variables? $n^2$ $2^n$ $2^{2^n}$ $2^{n^2}$ Set Theory & Algebra gatecse-2007 combinatory functions normal + – Kathleen 16.8k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply KUSHAGRA गुप्ता commented Oct 3, 2019 reply Follow flag In terms of digital: n-variables # of minterms=$2^n$ # of boolean functions=$2^{2^{n}}$ 4 4 replyShare rajankakaniya commented Jun 15, 2021 reply Follow flag I am not sure my question is valid or not; but what if they ask What is the maximum number of different functions involving n Boolean variables? then answer is 2^n ? 0 0 replyShare palashbehra5 commented Oct 17, 2021 reply Follow flag rajankakaniya I believe your question is the same as the one mentioned above? if that's the case, it will be still 2^2^n. 1 1 replyShare Mohitdas commented Dec 15, 2021 reply Follow flag ……………………………………….. 7 7 replyShare Shukla_ commented Jun 4, 2023 reply Follow flag No of elements in the domain will be 2^n because there are total n boolean variables and for each variable we have two choices either to consider it in the boolean formula or not. No of possible functions will be |codomain|^|domain|. No of elements in codomain will be 2 so 2^(2^n) will be the answer. 2 2 replyShare yuyutsu commented Apr 28, 2024 reply Follow flag https://staff.cdms.westernsydney.edu.au/cgi-bin/cgiwrap/zhuhan/dmath/dm_readall.cgi?page=3 0 0 replyShare Please log in or register to add a comment.
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)}}$ ankitrokdeonsns answered Oct 4, 2014 • edited Nov 23, 2017 by pavan singh ankitrokdeonsns comment Share Follow See all 4 Comments 4 4 Comments reply Rishi yadav commented Aug 18, 2017 reply Follow flag According to u this is mapping btw domain (n ) to co-domain (2 ) i.e boolean is given so co domain have 2 elements right!! 3 3 replyShare Ayush Upadhyaya commented Apr 17, 2018 reply Follow flag We have n boolean variables So, we will have total of 2n combination of truth table values For each of these 2n values, to define a boolean function they may be 0 or 1. So we have 2 choices each for each 2n combination of truth table values Hence the total number of boolean functions possible with n variables is $2^{2^{n}}$ 51 51 replyShare rajarshi commented Sep 3, 2019 reply Follow flag Nicely explained thnx 1 1 replyShare Shubhamishere commented Sep 5, 2022 reply Follow flag @Ayush Upadhyaya this comment here should be an answer. Nice explanation. 0 0 replyShare Please log in or register to add a comment.
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). Warrior answered Aug 12, 2017 Warrior comment Share Follow See 1 comment 1 1 comment reply rahul saxena commented Oct 14, 2017 reply Follow flag Thanks for simplified explanation :) 1 1 replyShare Please log in or register to add a comment.
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). MiNiPanda answered Oct 11, 2017 • edited Oct 11, 2017 by MiNiPanda MiNiPanda comment Share Follow See 1 comment 1 1 comment reply talha hashim commented May 30, 2018 reply Follow flag Nice explanation@ mini 1 1 replyShare Please log in or register to add a comment.
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}}$ just_bhavana answered Oct 14, 2017 just_bhavana comment Share Follow See 1 comment 1 1 comment reply amitqy commented Sep 20, 2018 reply Follow flag consider we have 2 boolean variable a and b.--> n variables They can have 4 diff combinations ab,ab',a'b,a'b'.--> 2^n combinations possible example of boolean function can be ab+ab' or a'b or ab+ab'+a'b' and so on. Now to be part of a function each combination have 2 options.--->each of 2^n combinations have 2 options Therefore total functions are 2*2*2*2. I hope my approach is correct. 1 1 replyShare Please log in or register to add a comment.