Maxterms are defined as the sum of distinct literals, and they are used to represent Boolean functions that equal 0. In this article we will know What is Maxterm, how to find Maxterm designations and their cardinal form. This article covers two-variable, three-variable, four-variable maxterm with their K-Map, conversion from cardinal form to Maxterm expressions with examples and also the advantages and disadvantages of using Maxterms.
What is Maxterm?
Maxterm is a fundamental part of Boolean algebra. Maxterms are the sum of various distinct literals in which each literal occurs exactly once (in either its complement or un-complement form). The output result of the maxterm function is 0. It is represented by M. To represent a function, we perform the product of maxterms which is called the Product of Sum (POS) or maxterm expression.
Example:
(A+B).(A'+B).(A'+B')
The expression above, contains each term with the combination of both the variables used in the expression. Hence, it is a canonical Product of Sum (POS) expression of maxterm expression.
Maxterm Designation
This is another way to represent a maxterm. A binary pattern of maxterm is formed by using 0 corresponding to the variable and 1 corresponding to the complement of variable. The decimal equivalent of binary pattern used as subscript with letter M, is known as Maxterm designation.
Steps to obtain Maxterm designation:
- Find binary pattern by writing 0 for the variable and 1 for the complement of the variable.
- Find decimal equivalent of the binary pattern.
- Use decimal number as a subscript of the letter M.
Example:
Find Maxterm Designation of (A' + B + C)
Binary pattern of maxterm (A' + B + C): 100
Decimal Equivalent of binary pattern 100: 4
Hence, maxterm designation of (A' + B + C) is: M4
Find Maxterm Designation of (A + B + C)
Binary pattern of maxterm (A + B + C): 000
Decimal Equivalent of binary: 0
Hence, maxterm designation of (A + B + C) is: M0
Two-Variable Maxterm
Maxterms for two variables are called two-variable maxterm.
Two variable Maxterm Table:
|
|
0
| 0
| A+B
| M0
|
0
| 1
| A+B'
| M1
|
1
| 0
| A'+B
| M2
|
1
| 1
| A'+B'
| M3
|
Two variable Maxterm K-Map:
Two Variable K-Map
Three Variable Maxterm
Maxterms for three variables are called three variable maxterm.
Three variable Maxterm Table:
|
|
0
| 0
| 0
| A+B+C
| M0
|
0
| 0
| 1
| A+B+C'
| M1
|
0
| 1
| 0
| A+B'+C
| M2
|
0
| 1
| 1
| A+B'+C'
| M3
|
1
| 0
| 0
| A'+B+C
| M4
|
1
| 0
| 1
| A'+B+C'
| M5
|
1
| 1
| 0
| A'+B'+C
| M6
|
1
| 1
| 1
| A'+B'+C'
| M7
|
Three variable Maxterm K-Map:
Three variable Maxterm K-Map
Four Variable Maxterm
Maxterms for four variables are called four variable maxterm.
Four variable Maxterm Table:
|
|
0
| 0
| 0
| 0
| A+B+C+D
| M0
|
0
| 0
| 0
| 1
| A+B+C+D'
| M1
|
0
| 0
| 1
| 0
| A+B+C'+D
| M2
|
0
| 0
| 1
| 1
| A+B+C'+D'
| M3
|
0
| 1
| 0
| 0
| A+B'+C+D
| M4
|
0
| 1
| 0
| 1
| A+B'+C+D'
| M5
|
0
| 1
| 1
| 0
| A+B'+C'+D
| M6
|
0
| 1
| 1
| 1
| A+B'+C'+D'
| M7
|
1
| 0
| 0
| 0
| A'+B+C+D
| M8
|
1
| 0
| 0
| 1
| A'+B+C+D'
| M9
|
1
| 0
| 1
| 0
| A'+B+C'+D
| M10
|
1
| 0
| 1
| 1
| A'+B+C'+D'
| M11
|
1
| 1
| 0
| 0
| A'+B'+C+D
| M12
|
1
| 1
| 0
| 1
| A'+B'+C+D'
| M13
|
1
| 1
| 1
| 0
| A'+B'+C'+D
| M14
|
1
| 1
| 1
| 1
| A'+B'+C'+D'
| M15
|
Four variable Maxterm K-Map:
Four variable Maxterm K-Map
Cardinal Form of Maxterm Expression
A boolean function which is defined by using maxterm designations is known as cardinal form of maxterm expression.
Syntax:
f(variables) = Î (max term designations)
Example:
Let an expression be: (A+B'+C)(A+B'+C')(A'+B'+C)
Binary pattern of maxterm (A+B'+C) : 010 : 2
Binary pattern of maxterm (A+B'+C') : 011 : 3
Binary pattern of maxterm (A'+B'+C) : 110 : 6
Equivalent maxterm designation is: M2 . M3 . M6
Its cardinal form will be: f(A, B, C)= Î (2, 3, 6)
(where, Î denotes product)
Conversion from Cardinal Form to Max Term Expression
A maxterm expression can be obtained from a given boolean function in cardinal form by using the following steps:
- Convert maxterm designation into binary form keeping the total number of bits same as the number of variables used in the function.
- For 0 take the variable and for 1 take the complement of the variable.
- Add the variable and the complement for every bit to obtain the maxterm
- Multiply the maxterms to get maxterm expression.
Example:
Find the maxterm expression for the boolean function: F(A, B, C) = Î (7, 3)
Binary of 7 is 111: (A' + B' + C')
Binary of 3 is 011: (A + B' + C')
Hence, Max Term expression: (A' + B' + C')(A + B' + C')
Find the maxterm expression for the boolean function: F(A, B, C) = Î (0, 3, 5)
Binary of 0 is 000: (A + B + C)
Binary of 3 is 011: (A + B' + C')
Binary of 5 is 101: (A' + B + C')
Hence, Max Term expression: (A + B + C)(A + B' + C')(A' + B + C')
Advantages:
- Maxterms can be used to represent all possible Boolean functions.
- They can be used to simplify Boolean expressions.
Disadvantages:
- Maxterms can lead to more complex expressions than minterms.
- They can be more difficult to understand and analyze than minterms.
Q.1: Why are maxterms used for?
Answer:
Maxterms is used for canonical representation of Boolean functions.
Q.2: What is the difference between Minterm and Maxterm?
Answer:
Minterm is the term with the product of N literals occurring exactly once. Maxterm is the term with the sum of N literals occurring exactly once.
Refer this article for a detailed answer : minterm vs maxterm
Q.3: How we represent maxterms in K-maps?
Answer:
Maxterms are represented by 'M' in K-maps. The output result of maxterm function is 0.
Q.4: What is Product of Sum (POS) Form?
Answer:
It is way of representing boolean expressions as product of maxterms.
Similar Reads
What is Max Heap?
Max Heap is a type of binary heap where the key at the root must be the maximum among all keys present in the binary heap. The same property must be recursively true for all nodes in the binary tree. Max Heap Definition:Max Heap is a complete binary tree, where value of each node is greater than or
3 min read
Minterm vs Maxterm
Minterms and Maxterms are important parts of Boolean algebra. Minterm is the product of N distinct literals where each literal occurs exactly once. The output of the minterm functions is 1. Minterm is represented by m. Maxterm is the sum of N distinct literals where each literals occurs exactly once
6 min read
SQLite MAX() Function
MAX function is a type of Aggregate Function available in SQLite, which is primarily used to find out the maximum value from a given set (a column that is passed as its parameter). Other than that, the MAX function can also be used with other Aggregate functions like HAVING, GROUP BY, etc to sort or
5 min read
Tensorflow.js tf.maxPoolWithArgmax() Function
Tensorflow.js is an open-source library that is developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment. The .maxPoolWithArgmax() function is used to determine the 2D max pooling of an image along with argmax list i.e. index
3 min read
MariaDB MAX Function
In MariaDB MAX() Functions, We'll explore the MariaDB MAX() function â a powerful tool for finding the highest values in different data types. We'll break down its simple syntax and practical uses, showing how it helps uncover key insights from numeric, date, and string datasets. Join us on a journe
6 min read
Less.js Math max() Function
In this article, we are going to learn about the math max() function in Less.js. Less.js is an extension of CSS which comes with some exclusive additional features than CSS which will help us to write better CSS code. max(): The max() method in Less.js is used to get the maximum value among all the
2 min read
Tensorflow.js tf.layers.maximum() Function
Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. It also helps the developers to develop ML models in JavaScript language and can use ML directly in the browser or Node.js. The tf.lay
2 min read
Maximum of Two Numbers in JavaScript
Finding the maximum of two numbers is a popular JavaScript operation used in many different programming tasks. This can be accomplished in a variety of ways, each having unique benefits and applications. There are several approaches for determining the maximum of two numbers in JavaScript which are
2 min read
Java Runtime maxMemory() Method with Examples
In the Runtime class of Java, the maxMemory() Method returns the maximum memory designed for the Java Virtual Machine (JVM). In other words, we can say that it returns the maximum amount of memory JVM can use. This method returns a 'long' value representing the maximum amount of memory JVM can use.
4 min read
Max Heap meaning in DSA
A max heap is a complete binary tree in which every parent node has a value greater than or equal to its children nodes. Example of Max HeapProperties of a Max Heap :A max heap is a complete binary tree, meaning that all levels of the tree are completely filled, except possibly the last level which
3 min read