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

Minimization of Boolean Functions

Last Updated : 25 Nov, 2019
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report
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 expression from which the function is implemented, it is preferable to have the most simplified form of the algebraic expression. The process of simplifying the algebraic expression of a boolean function is called minimization. Minimization is important since it reduces the cost and complexity of the associated circuit. For example, the function F=x^\prime y^\prime z + x^\prime yz + xy^\prime can be minimized to F=x^\prime z + xy^\prime. The circuits associated with above expressions is – It is clear from the above image that the minimized version of the expression takes a less number of logic gates and also reduces the complexity of the circuit substantially. Minimization is hence important to find the most economic equivalent representation of a boolean function. Minimization can be done using Algebraic Manipulation or K-Map method. Each method has it’s own merits and demerits.

Minimization using Algebraic Manipulation –

This method is the simplest of all methods used for minimization. It is suitable for medium sized expressions involving 4 or 5 variables. Algebraic manipulation is a manual method, hence it is prone to human error. Common Laws used in algebraic manipulation :
  1. \:A + A^\prime = 1
  2. \:A + A^\prime B = A + B
  3. \:A + AB = A
  • Example 1 – Minimize the following boolean function using algebraic manipulation- F=ABC^\prime D^\prime + ABC^\prime D + AB^\prime C^\prime D + ABCD + AB^\prime CD + ABCD^\prime \\        + AB^\prime CD^\prime
  • Solution – Properties refer to the three common laws mentioned above.

         \begin{align*} F=\:&ABC^\prime(D^\prime + D) +AB^\prime C^\prime D + ACD(B + B^\prime) &&\\ &\:+ ACD^\prime(B + B^\prime)&&\\ =\:&ABC^\prime +AB^\prime C^\prime D + ACD +ACD^\prime && \text{Using Property-1}\\ =\:&ABC^\prime +AB^\prime C^\prime D + AC(D +D^\prime )&&\\ =\:&ABC^\prime +AB^\prime C^\prime D + AC && \text{Using Property-1}\\ =\:&A(BC^\prime +C)+AB^\prime C^\prime D &&\\ =\:&A(B+C)+AB^\prime C^\prime D&& \text{Using Property-2}\\ =\:&AB +AC+AB^\prime C^\prime D &&\\ =\:&AB + AC + A C^\prime D && \text{Using Property-2}\\ =\:&AB + AC + AD && \text{Using Property-2}\\ \end{align*}

Minimization using K-Map –

The Algebraic manipulation method is tedious and cumbersome. The K-Map method is faster and can be used to solve boolean functions of upto 5 variables. Please refer this link to learn more about K-Map.
  • Example 2 – Consider the same expression from example-1 and minimize it using K-Map.
  • Solution – The following is a 4 variable K-Map of the given expression. The above figure highlights the prime implicants in green, red and blue. The green one spans the whole third row, which gives us – AB The red one spans 4 squares, which gives us – AD The blue one spans 4 squares, which gives us – AC So, the minimized boolean expression is- AB+AC+AD

GATE CS Corner Questions

Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them. 1. GATE CS 2012, Question 30 2. GATE CS 2007, Question 32 3. GATE CS 2014 Set-3, Question 17 4. GATE CS 2005, Question 18 5. GATE CS 2004, Question 17 6. GATE CS 2003, Question 45 7. GATE CS 2002, Question 12

References-

K-Map – Wikipedia Digital Design, 5th edition by Morris Mano and Michael Ciletti

Previous Article
Next Article

Similar Reads

Minimization of DFA using Myhill-Nerode Theorem
Minimization of DFA using Myhill-Nerode Theorem :Minimization of DFA is Required to obtain the minimal and equivalent version of any DFA which consists of minimum number of states possible. Myhill-Nerode theorem can be used to convert a DFA to its equivalent DFA with minimum no of states. This method of minimization is also called Table filling met
5 min read
Number of Boolean functions
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 [Tex]2^n[/Tex] and set 'B' = {0, 1}. Now the numbe
2 min read
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
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
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
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
Axioms of Boolean Algebra
In this article, we are going to discuss Axioms of Boolean Algebra; these axioms/Theorems are important as these will be used in many different topics of Digital Electronics like Sequential Circuit Designing and Combinational Circuit Designing as well. These Axioms are the building blocks of Digital Electronics. So understand these axioms carefully
4 min read
Article Tags :
three90RightbarBannerImg