Number System & Boolean Algebra
Number System & Boolean Algebra
BOOLEAN ALGEBRA
Presented by
S Mohanty
Number System
Why Number System is required?
What are the basic types of Number System?
- Non-Positional
- Positional
What are the types of Positional Number system?
- Decimal
- Binary
- Octal
- Hexadecimal
Non-Positional
Additive approach.
Symbols are used which represents same
value regardless their position in the number
and they are added to find out the value of a
number.
Positional
Base=10
At most 10 digits can be used to represent
any decimal no. i.e. 0 to 9.
Each position of digit in a decimal no.
represents a power of the base (10).
Binary Number System
Base=2
At most 2 digits can be used to represent any
binary no. i.e. 0 or 1.
Each position of digit in a binary no.
represents a power of the base (2).
Octal Number System
Base=8
At most 8 digits can be used to represent any
octal no. i.e. 0 to 7.
Each position of digit in a octal no. represents
a power of the base (8).
3 bits are used to represent any octal no. in
the computer memory.
Hexadecimal Number System
Base=16
At most 16 digits can be used to represent
any hexadecimal no. i.e. 0 to 9 of the decimal
no. and the remaining six digits are denoted
by the letters A, B, C, D, E, F.
Each position of digit in a hexadecimal no.
represents a power of the base (16).
4 bits are used to represent any hexadecimal
no. in the computer memory.
Conversion from one number system to
another
Any base no. to decimal no.
Decimal no. to any base no. (Division-
Remainder Method)
Base other than decimal no. to base other
than decimal no.
Binary to Octal & Vice-versa
Binary to Hexadecimal & Vice-versa
Binary Arithmetic
Addition
1. 0+0=0
2. 0+1=1
3. 1+0=1
4. 1+1=0 with a carry 1 to the next higher
column.
Exercise
1. 0-0=0
2. 1-1=0
3. 1-0=1
4. 0-1=1 with a borrow 1 from the next higher
column.
Exercise
10101 1011100
- 01110 - 0111000
Additive Method of Subtraction
(Complementary Subtraction)
Complement of a no.=
[ (Base)n – 1] – Given no.
(92)10 – (56)10
(18)10 – (35)10
(1011100)2 – (0111000)2
(010010)2 – (100011)2
(10101)2 – (01110)2
Multiplication
0x0=0
1x0=0
0x1=0
1x1=1
Exercise
0/1=0
1/1=1
Exercise
35/5
33/6
Boolean Algebra
A+B.C= (A+B). C
= A+(B.C)
If A=1, B=0, C=0 then first exp produces 0
and second exp produces 1.
Justify which exp is correct.
Postulates of Boolean Algebra
A=0 iff A!=1
A=1 iff A!=0
A+0=A
A.1=A
A+B=B+A (Commutative Law over Addition)
A.B=B.A (Commutative Law over Multiplication)
A+(B+C)= (A+B)+C (Associative Law over Addition)
A.(B.C)=(A.B).C (Associative Law over Multiplication)
A.(B+C)=(A.B)+(A.C) (Distributive Law over Multiplication)
A+(B.C)=(A+B).(A+C) (Distributive Law over Addition)
A+A’=1
A.A’=0
Principle of Duality
2. (a) A+1=1
(b) A.0=0
3. Absorption Law
(a) A+A.B=A
(b) A.(A+B)=A
4. Involution Law
(A’)’=A
5. (a) A.(A’+B)=A.B
(b) A+A’.B=A+B
6. De Morgan’s Law
(a) (A+B)’=A’.B’
(b) (A.B)’= A’+B’
Basic Boolean Identities
1. x+x’.y
2. x.(x’+y)
3. x’.y’.z+x’.y.z+x.y’
4. x.y+x’.z+y.z
5. (x+y).(x’+z).(y+z)
Complement of a Function
F= x’.y.z’+x’.y’.z
F1= x.(y’.z’+y.z)
Canonical Forms for Boolean
Algebra
Minterms(mj)- AND terms
Maxterms(Mj)- OR terms
Sum-of Products (SOP):
(a) Construct the TT for the given Boolean Function.
(b) Form a minterm for each combination of the
variables which produces 1 in the function.
(c) The desired exp. is sum (OR) of all the minterms
obtained in step-2.
Contd…