The Wayback Machine - https://web.archive.org/web/20241006110114/https://www.geeksforgeeks.org/canonical-and-standard-form/
Open In App

Canonical and Standard Form

Last Updated : 30 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Canonical Form – In Boolean algebra, the Boolean function can be expressed as Canonical Disjunctive Normal Form known as minterm and some are expressed as Canonical Conjunctive Normal Form known as maxterm. 
In Minterm, we look for the functions where the output results in “1” while in Maxterm we look for functions where the output results in “0”. 
We perform the Sum of minterm also known as the Sum of products (SOP). 
We perform Product of Maxterm also known as Product of sum (POS). 
Boolean functions expressed as a sum of minterms or product of maxterms are said to be in canonical form. 

Standard Form – A Boolean variable can be expressed in either true or complementary forms. In standard form Boolean function will contain all the variables in either true form or complemented form while in canonical number of variables depends on the output of SOP or POS. 

A Boolean function can be expressed algebraically from a given truth table by forming a : 

  • minterm for each combination of the variables that produces a 1 in the function and then takes the OR of all those terms.
  • maxterm for each combination of the variables that produces a 0 in the function and then takes the AND of all those terms.

Canonical and standard forms are crucial in Boolean algebra and digital logic design. These forms simplify the logical representation of digital circuits. To understand how these forms are applied in solving complex logic problems, the GATE CS Self-Paced Course offers in-depth tutorials on digital logic and Boolean algebra.

Truth table representing minterm and maxterm – 

From the above table it is clear that minterm is expressed in product format and maxterm is expressed in sum format. 

Sum of minterms – 
The minterms whose sum defines the Boolean function are those which give the 1’s of the function in a truth table. Since the function can be either 1 or 0 for each minterm, and since there are 2^n minterms, one can calculate all the functions that can be formed with n variables to be (2^(2^n)). It is sometimes convenient to express a Boolean function in its sum of minterm form. 
 

Product of maxterms –

When dealing with Boolean algebra, the product of maxterms is a handy way to express how combinations of inputs lead to a result of 0. Maxterms basically tell us which combinations of inputs won’t give us a 1 as an output. They are the opposite of minterms, which tell us when we get a 1.

  • Example – Express the Boolean function F = A + B’C as standard sum of minterms.
    • Solution –
      A = A(B + B’) = AB + AB’
      This function is still missing one variable, so
      A = AB(C + C’) + AB'(C + C’) = ABC + ABC’+ AB’C + AB’C’
      The second term B’C is missing one variable; hence,
      B’C = B’C(A + A’) = AB’C + A’B’C
      Combining all terms, we have
      F = A + B’C = ABC + ABC’ + AB’C + AB’C’ + AB’C + A’B’C
      But AB’C appears twice, and
      according to theorem 1 (x + x = x), it is possible to remove one of those occurrences. Rearranging the minterms in ascending order, we finally obtain
      F = A’B’C + AB’C’ + AB’C + ABC’ + ABC
      = m1 + m4 + m5 + m6 + m7
      SOP is represented as Sigma(1, 4, 5, 6, 7)
  • Example – Express the Boolean function F = xy + x’z as a product of maxterms
    • Solution –
      F = xy + x’z = (xy + x’)(xy + z) = (x + x’)(y + x’)(x + z)(y + z) = (x’ + y)(x + z)(y + z)
      x’ + y = x’ + y + zz’ = (x’+ y + z)(x’ + y + z’)
      x + z = x + z + yy’ = (x + y + z)(x + y’ + z)
      y + z = y + z + xx’ = (x + y + z)(x’ + y + z)
      F = (x + y + z)(x + y’ + z)(x’ + y + z)(x’ + y + z’)
      = M0*M2*M4*M5
      POS is represented as Pi(0, 2, 4, 5)
  • Example –
    • Solution – F(A, B, C) = Sigma(1, 4, 5, 6, 7)
      F'(A, B, C) = Sigma(0, 2, 3) = m0 + m2 + m3
      Now, if we take the complement of F’ by DeMorgan’s theorem, we obtain F in a different form:
      F = (m0 + m2 + m3)’
      = m0’m2’m3′
      = M0*M2*M3
      = PI(0, 2, 3)
  • Example – Convert Boolean expression in standard form F=y’+xz’+xyz
    • Solution – F = (x+x’)y'(z+z’)+x(y+y’)z’ +xyz
      F = xy’z+ xy’z’+x’y’z+x’y’z’+ xyz’+xy’z’+xyz

 Advantages of Canonical Form:

Uniqueness: The canonical form of a boolean function is unique, which means that there is only one possible canonical form for a given function.
Clarity: The canonical form of a boolean function provides a clear and unambiguous representation of the function.
Completeness: The canonical form of a boolean function can represent any possible boolean function, regardless of its complexity.
 

Disadvantages of Canonical Form:

Complexity: The canonical form of a boolean function can be complex, especially for functions with many variables.
Computation: Computing the canonical form of a boolean function can be computationally expensive, especially for large functions.
Redundancy: The canonical form of a boolean function can be redundant, which means that it can contain unnecessary terms or variables that do not affect the function.
 

Advantages of Standard Form:

Simplicity: The standard form of a boolean function is simpler than the canonical form, making it easier to understand and work with.
Efficiency: The standard form of a boolean function can be implemented using fewer logic gates than the canonical form, which makes it more efficient in terms of hardware and computation.
Flexibility: The standard form of a boolean function can be easily modified and combined with other functions to create new functions that meet specific design requirements.
 

Disadvantages of Standard Form:

Non-uniqueness: The standard form of a boolean function is not unique, which means that there can be multiple possible standard forms for a given function.
Incompleteness: The standard form of a boolean function may not be able to represent some complex boolean functions.
Ambiguity: The standard form of a boolean function can be ambiguous, especially if it contains multiple equivalent expressions.
 


Previous Article
Next Article

Similar Reads

Minimal to Canonical Form Conversion
Canonical Form is also called standard form, we directly obtained it from truth table and hence we have all the variable in normal or complimented form in each minterm. There are 3 steps for conversion of minimal form to canonical form. Find the Total Number of variable present in minimal form. Find the variables absent in each minterm. Try to appl
2 min read
Mean, Variance and Standard Deviation
Mean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data's central tendency, dispersion, and spread, which are crucial for making informed decisions in various engineering fields. This article explores the defini
8 min read
IEEE Standard 754 Floating Point Numbers
The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point computation which was established in 1985 by the Institute of Electrical and Electronics Engineers (IEEE). The standard addressed many problems found in the diverse floating point implementations that made them difficult to use reliably and reduced
5 min read
Modifications to standard Turing Machine
A standard Turing Machine is a machine which on providing an input moves either to the left or right and it may overwrite the existing symbol. A standard TM can be described as a 7-tuple: (Q, X, *, f, q0, B, F) where Q is a finite set of states X is the tape alphabet * is the input alphabet f is a transition function; f: Q × X --> Q × X × {Left_
4 min read
Strength of Data encryption standard (DES)
Data encryption standard (DES) is a symmetric key block cipher algorithm. The algorithm is based on Feistel network. The algorithm uses a 56-bit key to encrypt data in 64-bit blocks. There are mainly two categories of concerns about the strength of Data encryption standard. They are: Concerns about the particular algorithm used. Concerns about the
2 min read
Converting Context Free Grammar to Chomsky Normal Form
Prerequisite - Simplifying Context Free Grammars A context free grammar (CFG) is in Chomsky Normal Form (CNF) if all production rules satisfy one of the following conditions: A non-terminal generating a terminal (e.g.; X->x) A non-terminal generating two non-terminals (e.g.; X->YZ) Start symbol generating Îĩ. (e.g.; S-> Îĩ) Consider the following gra
4 min read
Domain Key Normal Form in DBMS
Prerequisites - Normal Forms, 4th and 5th Normal form, find the highest normal form of a relation It is basically a process in database to organize data efficiently. Basically there are two goals of doing normalization these are as follows: To remove repeated data or in simple words we can say to remove redundant data.Second one is to ensure that t
4 min read
DDR Full Form
DDR stands for Double Data Rate. It is a technique in computing with which a computer bus transfers data at double the rate sending data at rising and falling edges of a clock cycle. This method allows for sending 2 signals per clock cycle. The simplest way to design an electronic circuit is to make it perform one transfer per clock cycle (SDR tech
2 min read
OSI Full Form
The Open System Interconnection (OSI) Reference Model was created as the first step towards the standardization of protocols by the International Standards Organization (ISO) in 1984. It is also called as the OSI Seven Layer Model as it divides the network architecture into seven distinct layers. Characteristics : The OSI model has layered architec
2 min read
RAG Full Form
RAG is the abbreviation for Resource Allocation Graph in operating systems. RAG is a directed graph which can be used to represent the state of a system in the form of picture. Deadlocks can be described more precisely in terms of a directed graph(RAG). The graph(V, E) consists a set of vertices which can be partitioned into two different types of
3 min read
SNMP Full Form
Simple Network Management Protocol (SNMP) is majorly used by the administrator to monitor the networking devices. Implementing this protocol would reduce the efforts to login to each of the devices and verify all the logs and ensures that the network is reliable at all times by informing the administrator about any suspicious logs/activity based on
3 min read
Clausal Form in Deductive Databases
In clausal form, the formula is made up of a number of clauses, where each clause is composed of a number of literals connected by OR logical connectives only. A formula can have the following quantifiers: Universal quantifier - It can be understood as - "For all x, P(x) holds", meaning P(x) is true for every object x in the universe. Example: All
2 min read
FIFO Full Form
FIFO stands for First In, First Out. FIFO is a type of data handling where element that is first to come will be first element to be processed. In technical terms, FIFO means that element which was stored as first element will befirst to be removed. It happens so because FIFO follows a queue type data structure. Thus, oldest element or element that
2 min read
ESN Full Form
ESN stands for Electronic Serial Number History : ESN was assigned by U.S Federal Communications Commission generally known as FCC in United States in early 1980's, and were originally used for very first analog mobile phone technology named as AMPS. ESN and a Mobile Identification Number (MIN) are both automatically transmitted to wireless network
4 min read
SSTF Full Form
SSTF (Shortest Seek Time First) is an abbreviation that selects the request which is closest to the current head position before moving the head away to service other requests. This is done by selecting the request which has the least seek time from the current head position. SSTF scheduling priority is given to those processes which have the short
3 min read
What is Product of Sum (POS) Form?
The POS (Product Of Sum) form is a procedure by which we can simplify any Boolean Expression. From the name itself, we can understand that the POS form is the product of all the sums. Here, the sum does not mean traditional addition, the sum here refers to the 'OR' operation, and the product here refers to the 'AND' operation. Thus, in POS form, we
5 min read
Minimum Relations Satisfying First Normal Form (1NF)
A relation that does not contain any composite or multivalued attribute, then the relation is in its First Normal Form. Relations that contain a single-valued attribute comes under First Normal Form. In this article, we will be going to discuss the minimum relations satisfying the First Normal Form. Before proceeding to First Normal Form, let's dis
4 min read
How to find the highest normal form of a relation
To understand this topic, you should have a basic idea about Functional Dependency & Candidate keys and Normal forms .Steps to find the highest normal form of relation: Find all possible candidate keys of the relation.Divide all attributes into two categories: prime attributes and non-prime attributes.Check for 1st normal form then 2nd and so o
5 min read
SQL Full Form
SQL stands for Structured Query Language and is used to manage and manipulate relational databases. SQL provides a standardized way to interact with databases, allowing users to create, retrieve, update, and delete data efficiently. SQL commands are used to perform various operations on databases. What is SQL?Structured Query Language (SQL) is a sp
3 min read
Boyce-Codd Normal Form (BCNF)
Pre-Requisite: First Normal Form, Second Normal Form, Third Normal Form Application of the general definitions of 2NF and 3NF may identify additional redundancy caused by dependencies that violate one or more candidate keys. However, despite these additional constraints, dependencies can still exist that will cause redundancy to be present in 3NF r
6 min read
Converting Context Free Grammar to Greibach Normal Form
Context-free grammar (CFG) and Greibach Normal Form (GNF) are fundamental concepts in formal language theory, particularly in the field of compiler design and automata theory. This article delves into what CFG and GNF are, provides examples, and outlines the steps to convert a CFG into GNF. What is Context Free Grammar?Context-Free Grammar (CFG) is
6 min read
FPGA Full Form
FPGA stands for Field Programmable Gate Array which is an IC that can be programmed to perform a customized operation for a specific application. They have thousands of gates. In the field of VLSI FPGAs have been very popular. Languages such as VHDL and Verilog are used to write the code for FPGA programming. Architecture of FPGA It consists of tho
3 min read
DBMS Full Form
DBMS stands for Database Management System. DBMS is the software that is used to manage databases. For example, MySQL, Oracle, PostgreSQL, etc., are popular commercial DBMSs used in different applications. It is a reliable, easy, and efficient way of data processing and management. History of DBMSIn the year 1960, the first form of DBMS was designe
3 min read
DML Full Form
Database Management System offers a framework of functions or dialects to modify or alter the data, called the Data Manipulation Language. Data manipulation could be done perhaps by typing SQL queries or by using, a typically called Query-by-Example graphical interface. Data manipulation includes introducing data into tables, altering the table's d
6 min read
SDH Full Form
SDH stands for Synchronous Digital Hierarchy, a standardized protocol used in telecommunication networks to transmit large volumes of data over optical fiber. It was developed in the late 1980s. SDH become the backbone for high-speed data transmission in telecommunication systems. That enables the efficient and reliable transport of digital signals
4 min read
PCB Full Form
PCB stands for Process Control Block which is a data structure used by an operating system to control information about a process. In other words, Printed circuit boards (PCBs) are the boards that are used as the base in most electronics both as a physical support piece. They are also used as the wiring area for the socketed and surface-mounted com
3 min read
Third Normal Form (3NF)
In the realm of database design, normalization is a critical process for organizing data to minimize redundancy and improve data integrity. The Third Normal Form (3NF) is an advanced step in this process building on the principles of the First and Second Normal Forms (1NF and 2NF). Achieving 3NF ensures that a database schema is both efficient and
4 min read
Second Normal Form (2NF)
Normalization is a structural method whereby tables are broken down in a controlled manner with an aim of reducing data redundancy while at the same time enhancing the quality of stored data. It refers to the process of arranging the attributes and relations of a database in order to minimize data anomalies such as update, insert and delete anomali
7 min read
First Normal Form (1NF)
If a table has data redundancy and is not properly normalized, then it will be difficult to handle and update the database, without facing data loss. It will also eat up extra memory space and Insertion, Update, and Deletion Anomalies are very frequent if the database is not normalized. Normalization is the process of minimizing redundancy from a r
3 min read
POP Full Form
POP stands for Point of Presence (or Post Office Protocol). It refers to a connection point where many devices communicate and share a network. "Point of presence" describes the separation point between a service provider's public network and the customer's private network. We can say that it is a man-made separation point. It consists of high-spee
6 min read
Article Tags :