your image

Minimization of Boolean Functions - GeeksforGeeks

Chirag Manwani
geeks for geeks
Related Topic
:- Computer Basics

Minimization of Boolean Functions

  • Difficulty Level : Easy
  • Last Updated : 25 Nov, 2019

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  can be minimized to . 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.  
  2.  
  3.  
  • Example 1 – Minimize the following boolean function using algebraic manipulation-
  • Solution – Properties refer to the three common laws mentioned above.

      

     

     

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 – 
    The red one spans 4 squares, which gives us – 
    The blue one spans 4 squares, which gives us – 
    So, the minimized boolean expression is- 

 

Comments