Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Difference between SOP and POS in Digital Logic
Next article icon

Difference between SOP and POS in Digital Logic

Last Updated : 28 Dec, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

In digital logic, the inputs and output of a function are in the form of binary numbers (Boolean values) i.e., the values are either zero (0) or one (1). Therefore, digital logic is also known as 'Boolean logic'. These inputs and output can be termed as 'Boolean Variables'. The output Boolean variable of a digital signal can be expressed in terms of input Boolean variables which forms the 'Boolean Expression'. 

Table of Content

  • SOP Vs POS
  • What is SOP?
  • What is POS?
  • Differences


SOP Vs POS in Digital Logic

Representation of Boolean expression can be primarily done in two ways. They are as follows: 

  1. Sum of Products (SOP) form
  2. Product of Sums (POS) form

NOTE
If the number of input variables are n, then the total number of combinations in Boolean algebra is 2n. 

If the input variable (let A) value is :  

  • Zero (0) - a is LOW -It should be represented as A' (Complement of A)
  • One (1) - a is HIGH -It should be represented as A

In Boolean logic,  

AND is represented as '.'
A AND B is written as 'A.B'

OR is represented as '+'
A OR B is written as 'A+B'


For example, Considering number of input variables =3, Say A, B and C. 
Total number of combinations are: 23=8. 


 Truth Table Representation

ABC
000
001
010
011
100
101
110
111


In digital logic, Sum of Products (SOP) and Product of Sums (POS) represent two different forms of Boolean expressions. SOP involves combining ANDed terms with OR gates, while POS uses ORed terms combined with AND gates. SOP is often simpler to implement in circuits, making it a popular choice for design, whereas POS can minimize gate usage in certain scenarios.

What is SOP?

 
It is one of the ways of writing a Boolean expression. As the name suggests, it is formed by adding (OR operation) the product terms. These product terms are also called as 'min-terms'. Min-terms are represented with 'm', they are the product(AND operation) of Boolean variables either in normal form or complemented form. 

Therefore, SOP is sum of minterms and is represented as: 
F in SOP = \Sigma  m(0, 3) 
Here, F is sum of minterm0 and minterm3. 

Example of SOP

For Example: 

A=0, B=0, C=0   Minterm is A'.B'.C'
A=1, B=0, C=1 Minterm is A.B'.C


SOP Truth Table

Consider a function X, whose truth table is as follows: 

ABCX
0000
0011
0100
0111
1000
1010
1101
1110

The function X can be written in SOP form by adding all the min-terms when X is HIGH(1). 
While writing SOP, the following convention is to be followed: 
 

If variable A is Low(0) - A'
A is High(1) - A


X (SOP) = \Sigma  m(1, 3, 6) 
= A'.B'.C + A'.B.C + A.B.C' 

What is POS?

As the name suggests, it is formed by multiplying(AND operation) the sum terms. These sum terms are also called as 'max-terms'. Maxterms are represented with 'M', they are the sum (OR operation) of Boolean variables either in normal form or complemented form. 

Therefore, POS is product of maxterms and is represented as: 
F in POS = \Pi  M(1, 2) Here, F is product of maxterm1 and maxterm2. 

Example of POS

For Example:  

A=0, B=1, C=0   Maxterm is A+B'+C
A=1, B=1, C=1 Maxterm is A'+B'+C'

POS Truth Table

Consider a function X, whose truth table is as follows: 

ABCX
0000
0011
0100
0111
1000
1010
1101
1110

The function X can be written in POS form by multiplying all the max-terms when X is LOW(0). 
While writing POS, the following convention is to be followed: 

If variable A is Low(0) - A
A is High(1) - A'

X (POS) = \PiM(0, 2, 4, 5, 7)

= (A+B+C).(A+B'+C).(A'+B+C).(A'+B+C').(A'+B'+C')


Difference between SOP and POS in Digital Logic

S.No.SOPPOS
1.A way of representing Boolean expressions as sum of product terms.A way of representing Boolean expressions as product of sum terms.
2.SOP uses minterms. Minterm is product of Boolean variables either in normal form or complemented form.POS uses maxterms. Maxterm is sum of Boolean variables either in normal form or complemented form.
3.It is sum of minterms. Minterms are represented as 'm'It is product of maxterms. Maxterms are represented as 'M'
4.SOP is formed by considering all the minterms, whose output is HIGH(1)POS is formed by considering all the maxterms, whose output is LOW(0)
5.While writing minterms for SOP, input with value 1 is considered as the variable itself and input with value 0 is considered as complement of the input.While writing maxterms for POS, input with value 1 is considered as the complement and input with value 0 is considered as the variable itself.

Conclusion

In the conclusion, SOP and POS are two forms of Boolean expression by using 2 or more variables. SOP stands for Sum of Product which is sum of minterms or number of 1s whereas POS stands for Product of Sum which is product of maxterms or number of 0s.



Next Article
Difference between SOP and POS in Digital Logic

M

manmayi
Improve
Article Tags :
  • Computer Subject
  • Difference Between
  • GATE CS
  • Digital Logic
  • Electronics Engineering
  • Digital Electronics - Implementations

Similar Reads

    List of “Difference Between” Digital Logic and Design Topics
    Digital Logic and Design are the main part of ultramodern electronic systems which enable the structure of complex circuits that power our world of digital and technology. This is a system in computers that uses simple values to produce I/ O operations. These distinctions include sense gates, circui
    4 min read
    Difference between MIS and DPS
    1. Management Information System (MIS) : MIS is an application of computer related technology to programs. It provides managers with information and support for effective decision-making and provides the feedback on daily operations. The outputs or reports are usually generated through accumulation
    2 min read
    Difference between OSPF and IGRP
    1. Open Shortest Path First (OSPF): OSPF uses a link-state routing algorithm. Using the link state information which is available in routers, it constructs the topology in which topology determines the routing table for routing decisions. It supports both variable-length subnet masking and classless
    3 min read
    Difference between POS and EPOS
    1. Point of Sale (POS) : Point of Sale (POS), as name suggest, is system where exchange or goods or services takes place manually. It includes both combination of hardware and software. 2. Electronic Point of Sale (EPOS) : Electronic Point of Sale (EPOS), as name suggests, is a software system that
    2 min read
    Difference Between SR Flip - flop and RS Flip - flop
    The flip-flop is nothing but a term that lies under digital electronics which is an electronic component that is used to store one bit of information. As we know Flip Flop is a sequential circuit, its input is based upon two parameters named as the current input and the output from the previous stat
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences