CSC 217 Notes 1
CSC 217 Notes 1
Lecture Notes 1
(Logic Gates)
Boolean algebra is the category of algebra in which the variable’s values are the
truth values, true and false, ordinarily denoted 1 and 0 respectively. It is used to
analyze and simplify digital circuits or digital gates. It is also called Binary
Algebra or logical Algebra. It has been fundamental in the development of digital
electronics and is provided for in all modern programming languages. It is also
used in set theory and statistics.
OR + (or) ∨ Lowest
Suppose A and B are two Boolean variables, then we can define the three
operations as;
Boolean Expression
A logical statement that results in a Boolean value, either be True or False, is a
Boolean expression. Sometimes, synonyms are used to express the statement
such as ‘Yes’ for ‘True’ and ‘No’ for ‘False’. Also, 1 and 0 are used for digital circuits
for True and False, respectively.
Boolean expressions are the statements that use logical operators, i.e., AND, OR,
XOR and NOT. Thus, if we write X AND Y = True, then it is a Boolean expression.
Truth Table: The truth table is a table that gives all the possible values of logical
variables and the combination of the variables. It is possible to convert the
Boolean equation into a truth table. The number of rows in the truth table should
be equal to 2n, where “n” is the number of variables in the equation. For example, if
a Boolean equation consists of 3 variables, then the number of rows in the truth
table is 8. (i.e.,) 23 = 8.
A B A∧B A∨B
A ¬A
True False
False True
Related Links
• Commutative law
• Associative law
• Distributive law
• AND law
• OR law
• Inversion law
The first law states that the complement of the product of the variables is equal to
the sum of their individual complements of a variable.
The truth table that shows the verification of De Morgan’s First law is given as
follows:
A B A’ B’ (A.B)’ A’+B’
0 0 1 1 1 1
0 1 1 0 1 1
1 0 0 1 1 1
1 1 0 0 0 0
The second law states that the complement of the sum of variables is equal to the
product of their individual complements of a variable.
The following truth table shows the proof for De Morgan’s second law.
A B A’ B’ (A+B)’ A’. B’
0 0 1 1 1 1
0 1 1 0 0 0
1 0 0 1 0 0
1 1 0 0 0 0
Solved Examples
Question 2: Draw a truth table for A(B+D).
A B D B+D A(B+D)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 1 0
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
Stay tuned with BYJU’S – The Learning App and also explore more videos.