The Wayback Machine - https://web.archive.org/web/20240925105814/https://www.geeksforgeeks.org/quine-mccluskey-method/
Open In App

Quine McCluskey Method

Last Updated : 26 Apr, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Boolean function simplification is one of the basics of Digital Electronics. The quine-McCluskey method also called the tabulation method is a very useful and convenient method for simplification of the Boolean functions for a large number of variables (greater than 4). This method is useful over K-map when the number of variables is larger for which K-map formation is difficult. This method uses prime implicants for simplification. 

In this method, we construct multiple tables according to the question and at the last, we make a prime implicant table which is used to obtain essential prime implicants which are present in the simplified boolean expression. This method requires prior knowledge of decimal to binary representation and the basics of boolean algebra. It is a suitable method for a large number of input variables which can be easily solved by this method but the computation complexity is high. Majorly, this method includes the use of minterms, and prime implicants and obtains essential prime implicants which are further used in the simplified boolean functions. 

Quine McCluskey Method (QMC):

  • Quine McCluskey method also known as the tabulation method is used to minimize the Boolean functions.
  • It simplifies boolean expression into the simplified form using prime implicants.
  • This method is convenient to simplify boolean expressions with more than 4 input variables.
  • It uses an automatic simplification routine.

Terminologies:

Implicant: Implicant is defined as a group of 1’s(for minterm).  

Prime implicant: It is the largest possible group of 1’s(for minterm).

Essential Prime implicant: Essential prime implicants are groups that cover at least one minterm which cannot be covered by other applicants.

Note: This method uses decimal to binary representation.

Steps for Quine McCluskey Method:

  1. Arrange the given minterms according to the number of ones present in their binary representation in ascending order.
  2. Take the minterms from the continuous group if there is only a one-bit change to make their pair. 
  3. Place the ‘-‘ symbol where there is a bit change accordingly and keep the remaining bits the same.
  4. Repeat steps 2 to 3 until we get all prime implicants (when all the bits present in the table are different).
  5. Make a prime implicant table that consists of the prime implicants (obtained minterms) as rows and the given minterms (given in problem) as columns.
  6. Place ‘1’ in the minterms (cell) which are covered by each prime implicant.
  7. Observe the table, if the minterm is covered by only one prime implicant then it is an essential to prime implicant.
  8. Add the essential prime implicants to the simplified boolean function. 

Example: Simplify using tabulation method : F(A,B,C,D) =∑ m(0,1,2,4,6,8,9,11,13,15)

Solution: Convert the given minterms into their binary representation and arrange them according to the number of ones present in the binary representation. 

                     TABLE 1
Group  Minterm  A  B  C  D
    0      0  0  0  0  0
   1

     1

     2

     4

     8

 0 

 0

 0

 1

 0

 0

 1

 0

 0

 1

 0

 0

 1

 0

 0

 0

   2

     6

     9

 0

 1

 1

 0

 1

 0

 0

 1

   3

     11

     13

 1

 1

 0

 1

 1

 0

 1

 1

   4      15  1  1  1  1

As 0 has no 1 in its representation it is kept in one group(0). Similarly, 1 2 4, and 8 contain one 1 in their representation so it is kept in the next group(1). 6 and 9 in the next group(2), 11, and 13 in the next group(3), 15 in the last group(4). 

Now, for table-2 take minterms from successive groups(simultaneous group only) which have an only a 1-bit difference in their representation and form their pair by merging them and making a group of the pairs which are from the same groups that are merged (for example 0 is from group 0 and 1 is from group 1 so it is added to the group 0. 0 belongs to group 0 in table 1 and 2 belongs to group 1 in table 1 so its kept in the same group in table 2. Similarly, make all the possible pairs with the help of the above table and mark – where there is a bit difference. 

                   TABLE-2
Group Pair  A  B  C  D
    0

(0,1)

(0,2)

(0,4)

(0,8)

 0

 0

 0

 –

 0

 0

 –

 0

 0

 –

 0

 0

 –

 0

 0

 0

    1

(1,9) 

(2,6)

(4,6)

(8,9)

 –

 0

 0

 1

 0

 –

 1

 0

 0

 1

 –

 0

 1

 0

 0 

 –

    2

(9,11)

(9,13)

 1

 1 

 0

 –

 –

 0

 1

 1

    3

(11,15)

(13,15)

 1

 1

 –

 1

 1

 –

 1

 1

For table 3 repeat the same step by taking pairs of successive groups merging them where there is only a 1-bit difference and keeping them in groups according to the groups from where they are merged and placed – in bit difference.

                      TABLE-3
Group    Quad  A  B  C  D
    0

  (0,1,8,9)

  (0,2,4,6)

 –

 0

 0 

 –

 0

 –

 –

 0

    1 (9,11,13,15)  1  –   –  1

After table 3 the process is stopped as there is no 1-bit difference in the remaining group minterms in the simultaneous groups of table 3.

Now, the remaining quads present in table 3 represent the prime implicants for the given boolean function. So, we construct prime implicants table which contains the obtained prime implicants as rows and the given minterms as columns. Place 1 in the corresponding place which the minterm can represent. Add the minterm to the simplified boolean expression if the given minterm is only covered by this prime implicant.  

                  PRIME IMPLICANT TABLE

Minterms ⇢

Prime Implicants ⇣

 0  1  2  4  6  8  9  11  13  15
       B’C’ (0,1,8,9)  1  1              1   1
       A’D'(0,2,4,6)  1      1  1  1
       AD(9,11,13,15)                           1    1    1     1
Simplified Boolean function = B’C’ + A’D’ + AD

B’C’ is in simplified function as minterm 1 is only covered by B’C’. Similarly, minterms 2,4,6 are only covered by A’D’ and minterms 11,13,15 are only covered by AD.

Example: Simplify using tabulation method : F(A,B,C,D,E,F,G) = ∑m(20,28,52,60)

Solution: Convert the given minterms in their binary representation and arrange them according to number of one’s present in the binary representation. 

                                  TABLE-1
Group Minterms  A  B  C  D  E   F  G
    0      20  0   0  1   0  1  0   0
    1

     28

     52

 0

 0

 0

 1

 1 

 1

 1

 0

 1

 1

 0

 0 

 0

 0

    2      60  0  1  1   1   1  0  0

As 20 has 2 1s in its representation it is kept in one group(0). Similarly, 28 and 52 contain 3 1s in their representation so it is kept in the next group(1). 60 in the next group(2).

Now, for table-2 take minterms from successive groups(simultaneous group only) which have an only a 1-bit difference in their representation and form their pair by merging them and making a group of the pairs which are from the same groups that are merged (for example 20 is from group 0 and 28 is from group 1 so it is added to the group 0. 20 belongs to group 0 in table 1 and 52 belongs to group 1 in table 1 so its kept in the same group in table 2. Similarly, make all the possible pairs with the help of the above table and mark – where it is a bit different. 

                                TABLE-2
Group   Pair  A  B  C  D  E   F  G
    0

 (20,28)

 (20,52)

 0

 0

 0

 –

 1

 1

 –

 0

 1

 1

 0

 0

 0

 0

    1

 (28,60)

 (52,60)

 0

 0

 –

 1

 1

 1

 1

 –

 1

 1

 0

 0

 0

 0

For table 3 repeat the same step by taking pairs of successive groups merging them where there is only a 1-bit difference and keeping them in groups according to the groups from where they are merged and placed – in bit difference.

                                  TABLE-3
Group    Quad  A  B  C  D  E   F  G
    0 (20,28,52,60)  0   –  1  –  1  0  0

After table 3 the process is stopped as there is no 1-bit difference in the remaining group minterms in the simultaneous groups of table 3.

Now, the remaining quads present in table 3 represent the prime implicants for the given boolean function. So, we construct prime implicants table which contains the obtained prime implicants as rows and the given minterms as columns. Place 1 in the corresponding place which the minterm can represent. Add the minterm to the simplified boolean expression if the given minterm is only covered by this prime implicant. 

A’CEF’G’ is obtained from table 3 as A, F, G contains 0 so A’F’G’, C, and E contain 1 so CE. 

              Prime Implicants Table

Minterms ⇢

Prime Implicants ⇣

 20  28  52  60
 A’CEF’G'(20,28,52,60)   1    1    1     1
Simplified Boolean Function = A’CEF’G’

A’CEF’G’ is in simplified function as it is the only prime implicant that covers all minterms.

Advantages of Quine McCluskey Method:

  • This method is suitable for a large number of inputs(n>4) for which K-map construction is a tedious task.
  • It does not require pattern recognition.

Disadvantages of Quine McCluskey Method:

  • The computational complexity of this method is high.


Previous Article
Next Article

Similar Reads

Even Odd method & Winding number Method-Inside & Outside Test of a Polygon
Introduction :A polygon may be represented as a number of line segments connected, end to form a closed figure.Polygons can be represented in two ways - (i) outline from using move commands and (ii) as a solid objects by setting the pixels high inside the polygon including pixels on the boundary. To determine a point lies inside a polygon or not, i
4 min read
Difference Between Bisection Method and Regula Falsi Method
The bisection method is used to find the roots of non-linear equations of the form f(x) = 0 non-linear equations based on the repeated application of the intermediate value property. Let f(x) be a continuous function in the closed interval [x1,x2], if f(x1), and f(x2) are of opposite signs, then there is at least one root α in the interval (x1,x2),
9 min read
Alternate method to find DBA from given IP address
One more drawback in the previous method finding DBA from IP address is that if we have to find only DBA of the network and not Net Id of the network but by using that method DBA of the network can't be obtained without finding Net Id of the network. In this approach we will use shortcut approach for finding the both NetId and DBA. Using this appro
2 min read
TreeMap firstEntry() Method in Java with Examples
TreeMap firstEntry() refers to the method used to retrieve the key-value pairs mapped with the lowest key value element that exists in the TreeMap, if there are no key-value pairs within the Map, simply returns null. The method name 'firstEntry()' explains itself that it will return entry having the least key element with its value. Syntax: public
2 min read
State Elimination Method convert DFA/NFA/Ɛ-NFA into Regular Expression
State Elimination Method : Rules to convert a DFA/NFA//Ɛ-NFA into corresponding Regular Expression. Arden's Method is not capable of converting Ɛ-NFA. By state elimination method you can conveniently and quickly find RE without writing anything just by imagination. Rule-1 : If there are no incoming edges to the start state proceed further to check
3 min read
VLOOKUP On Multiple Criteria Columns Using Helper Method & CHOOSE Function
In this article, we will see how we can combine multiple values, and use them as lookup criteria for searching specific value(s) in the excel dataset. For this purpose, we will use the VLOOKUP formula, the most basic formula to perform a lookup for value(s) on excel. We will see a modified form of VLOOKUP to perform a lookup using multiple values.
4 min read
How to solve time complexity Recurrence Relations using Recursion Tree method?
The Recursion Tree Method is a way of solving recurrence relations. In this method, a recurrence relation is converted into recursive trees. Each node represents the cost incurred at various levels of recursion. To find the total cost, costs of all levels are summed up. Steps to solve recurrence relation using recursion tree method: Draw a recursiv
4 min read
Error Detection Codes: Parity Bit Method
Error Detection Codes: The binary information is transferred from one location to another location through some communication medium. The external noise can change bits from 1 to 0 or 0 to 1. This change in values changes the meaning of the actual message and is called an error. For efficient data transfer, there should be error detection and corre
6 min read
GATE CS Notes (According to GATE 2025 Syllabus)
GATE stands for Graduate Aptitude Test in Engineering . GATE is a national-level exam conducted by IISc-Bangalore and the seven old IITs; GATE 2025 is going to be conducted by IIT Roorkee. The official notification of GATE 2025 has been released by IIT Roorkee. After clearing the GATE exam, candidates are eligible for Master of Technology (M.Tech)/
15+ min read
DBMS Tutorial – Learn Database Management System
Database Management System is a software or technology used to manage data from a database. Some popular databases are MySQL, Oracle, MongoDB, etc. DBMS provides many operations e.g. creating a database, Storing in the database, updating an existing database, delete from the database. DBMS is a system that enables you to store, modify, and retrieve
8 min read
Operating System Tutorial
An Operating System(OS) is software that manages and handles the hardware and software resources of a computer system. It provides interaction between users of computers and computer hardware. An operating system is responsible for managing and controlling all the activities and sharing of computer resources. An operating system is a low-level Soft
7 min read
Computer Network Tutorial
A computer network is a collection of computers or devices connected to share resources. Any device which can share or receive the data is called a Node. Through which the information or data propagate is known as channels, It can be guided or unguided. In this Computer network tutorial, you’ll learn basic to advanced concepts like the Basics of co
10 min read
XNOR Gate
In digital electronics, the XNOR gate is a type of logic gate used to perform an exclusive NOR gate. It is a special type of logic gate used in digital circuits. An XNOR gate, also known as an equivalence gate or an EX-NOR gate, is a digital logic gate that outputs true (1) when an even number of true inputs are present. It produces a true output i
10 min read
Top 100+ Computer Keyboard Shortcut Keys List (A to Z), PDF Available
Computer Shortcut Keys significantly enhance productivity and efficiency. These handy combinations of keys provide quick access to various functions and commands, allowing us to navigate in Computers. One must know Computer Shortcut keys to work more easily and quickly with computers. In this Computer Keyboard Shortcut Keys Guide, you will learn al
15+ min read
GATE 2025 Syllabus For CSE (Computer Science & Engineering)
GATE Exam 2025 Syllabus for CSE - GATE stands for Graduate Aptitude Test in Engineering, an entrance exam conducted each year for getting admission into the most prestigious institutes across the country including IISc Banglore, IITs, NITs, IIITs, and many others. The GATE authority (IIT Roorkee for this year) has released the official notification
8 min read
What is an Operating System?
Operating System lies in the category of system software. It basically manages all the resources of the computer. An operating system acts as an interface between the software and different parts of the computer or the computer hardware. The operating system is designed in such a way that it can manage the overall resources and operations of the co
9 min read
ASCII Values Alphabets ( A-Z, a-z & Special Character Table )
ASCII (American Standard Code for Information Interchange) is a standard character encoding used in telecommunication. The ASCII pronounced 'ask-ee', is strictly a seven-bit code based on the English alphabet. ASCII codes are used to represent alphanumeric data. The code was first published as a standard in 1967. it was subsequently updated and pub
7 min read
Kernel in Operating System
A kernel is a central component of an operating system that manages the operations of computers and hardware. It basically manages operations of memory and CPU time. It is a core component of an operating system. Kernel acts as a bridge between applications and data processing performed at the hardware level using inter-process communication and sy
10 min read
Aptitude for Placements
An aptitude test is quite vital for placements as it helps in enhancing the logical skills of the person and if someone is preparing for interviews then aptitude preparation is very much required. Hiring can be both off-campus and on-campus but the procedure of selection is almost the same that is sorting out candidates on the basis of basic aptitu
4 min read
Functions of Operating System
An Operating System acts as a communication bridge (interface) between the user and computer hardware. The purpose of an operating system is to provide a platform on which a user can execute programs conveniently and efficiently. An operating system is a piece of software that manages the allocation of Computer Hardware. The coordination of the har
12 min read
Types of Operating Systems
An Operating System performs all the basic tasks like managing files, processes, and memory. Thus, the operating system acts as the manager of all the resources, i.e. resource manager. Thus, the operating system becomes an interface between the user and the machine. It is one of the most required software that is present in the device. Operating Sy
11 min read
Types of Transmission Media
Transmission media refer to the physical pathways through which data is transmitted from one device to another within a network. These pathways can be wired or wireless. The choice of medium depends on factors like distance, speed, and interference. In this article, we will discuss the transmission media. What is Transmission Media? A transmission
8 min read
TCP/IP Model
The TCP/IP model is a fundamental framework for computer networking. It stands for Transmission Control Protocol/Internet Protocol, which are the core protocols of the Internet. This model defines how data is transmitted over networks, ensuring reliable communication between devices. It consists of four layers: the Link Layer, the Internet Layer, t
13 min read
Supervised and Unsupervised learning
Machine learning is a field of computer science that gives computers the ability to learn without being explicitly programmed. Supervised learning and unsupervised learning are two main types of machine learning. In supervised learning, the machine is trained on a set of labeled data, which means that the input data is paired with the desired outpu
15 min read
What is OSI Model? - Layers of OSI Model
OSI stands for Open Systems Interconnection , where open stands to say non-proprietary. It is a 7-layer architecture with each layer having specific functionality to perform. All these 7 layers work collaboratively to transmit the data from one person to another across the globe. The OSI reference model was developed by ISO - 'International Organiz
15+ min read
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or devices in a computer network. It defines how these components are connected and interact with each other. Understanding various types of network topologies helps in designing efficient and robust networks. Common types include bus, star, ring, mesh, and tree top
12 min read
Types of Keys in Relational Model (Candidate, Super, Primary, Alternate and Foreign)
Keys are one of the basic requirements of a relational database model. It is widely used to identify the tuples(rows) uniquely in the table. We also use keys to set up relations amongst various columns and tables of a relational database. Different Types of Database Keys Candidate Key Primary Key Super Key Alternate Key Foreign Key Composite Key To
6 min read
ACID Properties in DBMS
This article is based on the concept of ACID properties in DBMS that are necessary for maintaining data consistency, integrity, and reliability while performing transactions in the database. Let's explore them. A transaction is a single logical unit of work that accesses and possibly modifies the contents of a database. Transactions access data usi
7 min read
Introduction of ER Model
Peter Chen developed the ER diagram in 1976. The ER model was created to provide a simple and understandable model for representing the structure and logic of databases. It has since evolved into variations such as the Enhanced ER Model and the Object Relationship Model The Entity Relational Model is a model for identifying entities to be represent
10 min read
Normal Forms in DBMS
Normalization is the process of minimizing redundancy from a relation or set of relations. Redundancy in relation may cause insertion, deletion, and update anomalies. So, it helps to minimize the redundancy in relations. Normal forms are used to eliminate or reduce redundancy in database tables. Normalization of DBMSIn database management systems (
12 min read