The Wayback Machine - https://web.archive.org/web/20240718042354/https://www.geeksforgeeks.org/number-of-boolean-functions/
Open In App

Number of Boolean functions

Last Updated : 25 Nov, 2019
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report
In the below article, we are going to find the number of Boolean Functions possible from the given sets of binary number. Statement-1: Suppose two sets are set ‘A’ = {1, 2, 3, 4, …….., n} where each number will be either ‘0’ or ‘1’ and hence the total number of boolean variable possible will be 2^n and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be 2^{(2^n)}. Explanation: As we know that boolean variable is either ‘0’ or ‘1’ and in the set ‘A’ there are ‘n’ numbers and each number will be either ‘0’ or ‘1’ and hence the total number of possible boolean variable are 2^n. Now set ‘A’ contain 2^n boolean variable and set ‘B’ contain 2 boolean variable. This can be understood with help of below diagram: Each element of set ‘A’ makes a function with each element of set ‘B’ hence one element of set ‘A’ makes two function with set ‘B’ and hence total number of possible boolean functions are 2^{(2^n)} where 2^n is the number of element in set ‘A’. Statement-2: Suppose two sets of ternary variable are set ‘A’ = {1, 2, 3, 4, …….., n} where each number will be either ‘0’ or ‘1’ or ‘2’ and hence the total number of ternary variable possible will be 3^n and set ‘B’ = {0, 1}. Now the number of possible boolean function when counting is done from set ‘A’ to ‘B’ will be 2^{(3^n)}. Explanation: As we know that ternary variables are ‘0’ or ‘1’ or ‘2’ and in the set ‘A’ there are ‘n’ numbers and each number will be either ‘0’ or ‘1’ or ‘2’ and hence the total number of possible ternary variables are 3^n. Now set ‘A’ contain 3^n ternary numbers and set ‘B’ contain 2 boolean variable. This can be understood with help of below diagram: Each element of set ‘A’ makes a function with each element of set ‘B’ hence one element of set ‘A’ makes two functions with set ‘B’ and hence the total number of possible boolean functions are 2^{(3^n)} where 3^n is the number of elements in set ‘A’. Note:
Similarly for a set ‘A’ of ‘n’ numbers of k-ary variable and set ‘B’ of p-ary variable then the total number of p-ary possible function will be p^{(k^n)}.

Previous Article
Next Article

Similar Reads

Prime Implicant chart for minimizing Cyclic Boolean functions
Prerequisite - K-Map (Karnaugh Map), Implicants in K-Map A functions is said to be a Cyclic Boolean Function if there is no Essential prime Implicant in its respective K-Map. Properties of Cyclic functions: Every prime Implicant is of same size.Every minterm is covered by at least two prime Implicants (which means no essential prime Implicants).Hav
3 min read
Boolean Functions
Boolean Algebra was given by George Boole. It is a set of rules used to simplify a given logical expression without changing its functionality. It is mainly used when several variables present are less. The algebraic expression used in Boolean Algebra is known as Boolean Expression and it is used to describe Boolean Function. The Boolean expression
5 min read
Minimization of Boolean Functions
As discussed in the "Representation of Boolean Functions" every boolean function can be expressed as a sum of minterms or a product of maxterms. Since the number of literals in such an expression is usually high, and the complexity of the digital logic gates that implement a Boolean function is directly related to the complexity of the algebraic ex
3 min read
Representation of Boolean Functions
Boolean functions are expressions involving Boolean variables and operators, such as AND, OR, and NOT. These functions are fundamental in digital logic design, computer science, and engineering. What are Boolean Functions?Boolean functions are mathematical expressions involving Boolean variables that take on values of true or false, typically repre
5 min read
Mathematics | Unimodal functions and Bimodal functions
Unimodal Function : A function f(x) is said to be unimodal function if for some value m it is monotonically increasing for x≤m and monotonically decreasing for x≥m. For function f(x), maximum value is f(m) and there is no other local maximum. See figure (A) and (B): In figure (A), graph has only one maximum point and rest of the graph goes do
2 min read
Inverse functions and composition of functions
Inverse Functions - In mathematics a function, a, is said to be an inverse of another, b, if given the output of b a returns the input value given to b. Additionally, this must hold true for every element in the domain co-domain(range) of b. In other words, assuming x and y are constants, if b(x) = y and a(y) = x then the function a is said to be a
3 min read
Composite functions - Relations and functions
Let f : A->B and g : B->C be two functions. Then the composition of f and g, denoted by g o f, is defined as the function g o f : A->C given by g o f (x) = g{f(x)}, ∀ x ∈ A. Clearly, dom(g o f) = dom(f). Also, g o f is defined only when range(f) is a subset of dom(g). Evaluating composite functions We know composite function is written as
5 min read
Total Recursive Functions and Partial Recursive Functions in Automata
Total Recursive Functions: A recursive function is called total recursive function if it is defined for its all arguments.Let f(a1, a2, ...an) be a function defined on function g(b1, b2, ...bn).Then f is a total function if every element of f is assigned to some unique element of function g. A total function is called recursive or primitive recursi
2 min read
Classes of Functions | Injective, Surjective and Bijective Functions
Classes of Functions: Functions are fundamental in mathematics and have wide-ranging applications in engineering, computer science, and various other fields. Understanding the different classes of functions—injective, surjective, and bijective—is essential for analyzing mathematical models and solving complex problems. This article explores these c
4 min read
Counting Boolean function with some variables
Prerequisite - Canonical and Standard Form In the below articles, we will see some varieties of problems with three variables. Statement-1: Counting the number of Boolean functions possible with two variables such that there are exactly two min terms. Explanation: As we already know that from two variables (a and b) four [Tex](2^2)[/Tex] numbers (0
5 min read
three90RightbarBannerImg